空气质量实时监测数据接口JSON返回示例

空气质量实时监测数据能够反映实时空气质量,空气质量实时监测数据接口可以查询不同城市的空气质量最新结果、最近几周的空气质量数据和各监测点的数据。

接口名称:空气质量实时监测数据

接口平台:聚合数据

接口地址:http://web.juhe.cn:8080/environment/air/cityair

支持格式:JSON

请求方式:GET

请求示例:http://web.juhe.cn:8080/environment/air/cityair?city=城市名称&key=您申请的APPKEY值

接口备注:有的城市可能没有监测点实时监测的数据

空气质量实时监测数据接口JSON返回示例:

{
    "resultcode": "200",
    "reason": "SUCCESSED!",
    "error_code": 0,
    "result": [
        {
            "citynow": {
                "city": "suzhou",
                "AQI": "77",
                "quality": "良",
                "date": "2014-05-09 14:00"
            },
            "lastTwoWeeks": {
 
                "1": {
                    "city": "suzhou",
                    "AQI": "100",
                    "quality": "良",
                    "date": "2014-05-08"
                },
                "2": {
                    "city": "suzhou",
                    "AQI": "99",
                    "quality": "良",
                    "date": "2014-05-07"
                },
                "3": {
                    "city": "suzhou",
                    "AQI": "77",
                    "quality": "良",
                    "date": "2014-05-06"
                },
                "4": {
                    "city": "suzhou",
                    "AQI": "75",
                    "quality": "良",
                    "date": "2014-05-05"
                },
                "5": {
                    "city": "suzhou",
                    "AQI": "78",
                    "quality": "良",
                    "date": "2014-05-04"
                },
                "6": {
                    "city": "suzhou",
                    "AQI": "84",
                    "quality": "良",
                    "date": "2014-05-03"
                },
                "7": {
                    "city": "suzhou",
                    "AQI": "135",
                    "quality": "轻度污染",
                    "date": "2014-05-02"
                },
                "8": {
                    "city": "suzhou",
                    "AQI": "126",
                    "quality": "轻度污染",
                    "date": "2014-05-01"
                },
                "9": {
                    "city": "suzhou",
                    "AQI": "87",
                    "quality": "良",
                    "date": "2014-04-30"
                },
                "10": {
                    "city": "suzhou",
                    "AQI": "97",
                    "quality": "良",
                    "date": "2014-04-29"
                },
                "11": {
                    "city": "suzhou",
                    "AQI": "77",
                    "quality": "良",
                    "date": "2014-04-28"
                },
                "12": {
                    "city": "suzhou",
                    "AQI": "84",
                    "quality": "良",
                    "date": "2014-04-27"
                },
                "13": {
                    "city": "suzhou",
                    "AQI": "45",
                    "quality": "优",
                    "date": "2014-04-26"
                },
                "14": {
                    "city": "suzhou",
                    "AQI": "56",
                    "quality": "良",
                    "date": "2014-04-25"
                },
                "15": {
                    "city": "suzhou",
                    "AQI": "83",
                    "quality": "良",
                    "date": "2014-04-24"
                },
                "16": {
                    "city": "suzhou",
                    "AQI": "95",
                    "quality": "良",
                    "date": "2014-04-23"
                },
                "17": {
                    "city": "suzhou",
                    "AQI": "101",
                    "quality": "轻度污染",
                    "date": "2014-04-22"
                }
            },
            "lastMoniData": {
                "1": {
                    "city": "上方山",
                    "AQI": "77",
                    "quality": "良",
                    "PM2.5Hour": "46μg/m
时间: 2024-12-23 13:06:05

空气质量实时监测数据接口JSON返回示例的相关文章

nginx下请求模拟接口json返回405

修改nginx配置文件,在 server 块中添加以下内容: error_page 405 =200 @405; location @405 { proxy_method GET; proxy_pass http://localhost;# 此处应为你本地的地址 } 重启nginx,就能继续工作了~ 原文地址:https://www.cnblogs.com/HeCG95/p/12000093.html

iOS版本PM2.5空气质量监控仪

前言 鉴于柴静版<苍穹之下>的火爆,或许更多的人会关心环境,空气质量等环保因素,参考某学院的Swift版本的PM2.5的获取,本人自己写个Objective-C版本的. 基本原理 从服务器获取当前的空气质量数据,气象中心开放接口, 亚洲空气质量实时监控, 参照人家的教程使用亚洲空气质量监控. 本地解析数据,获取PM2.5数值,进行显示. 具体实现 NSNumber *str; -(void) loadData{ self.msgText.text = @"loading....&qu

空气质量监测接口演示代码

空气质量监测接口 空气质量监测可以查询到全国各地的空气质量情况,空气等级情况,以及空气城市排名情况等! 详情请参考:http://www.haoservice.com/docs/13 示例: {    "error_code": 0,    "reason": "成功",    "result": {        "Ranking": 83,        "CityName": &q

聚合数据Android SDK 空气质量查询演示示例

1.聚合SDK是聚合数据平台,为移动开发者提供的免费数据接口.使用前请先到聚合平台(http://www.juhe.cn/)注册,申请相关数据. 2.下载聚合数据SDK,将开发包里的juhe_sdk_v_1_1.jar拷贝到libs根目录下,将libJuheSDK_v_1_0.so拷贝到libs\armeabi目录下,如图: 3. 根据接口说明文档找到以下方法: Java代码   /** * 城市空气质量 * * @param city *            城市名称的中文名称或拼音,如:上

火车票查询接口演示示例及返回示例代码

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Net; using System.IO; using System.IO.Compression; using System.Text.Re

空气质量管理系统ssm(mybatis+spring+springMVC)框架+前后端分离

1.目录结构: 2.需要注意的地方 2.1在WEB-INFO下新建 2.1.1 springMVC-servlet.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc

快递鸟API接口调用代码示例(免费不限量)

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEn

火车票演示示例及返回示例代码

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Net; using System.IO; using System.IO.Compression; using System.Text.Re

空气质量在线检测系统制作 之Smart Airbox 制作流程

已刊登在<无线电>8月刊 在帝都生活的小伙伴们,想必对空气质量一定是不能再敏感,十几米的能见度想想也是醉了.一遇到久违的蓝天,朋友圈就被各种炫蓝天的照片刷屏.既然已经无法奢望室外空气,就在室内空气上下点功夫吧,毕竟一天中的大多数时间还是在室内度过的.于是乎,小熊决定做一个智能空气盒子,实时检测家里的空气是否达标.关爱绳命,从一呼一吸开始- 项目简介 智能空气盒子(Smart AirBox)是空气质量在线检测系统的雏形.该系统可以监测周围的空气质量(VOC.PM2.5.温度.湿度等),并将参数数