全国天气预报API为企业提供准确、稳定、丰富的天气数据服务。通过API接口,天气数据可以被轻松整合进手机应用,桌面应用或网站。聚合数据API整合多个数据源,智能融合天气数据,让数据更加准确,服务更加稳定。
接口地址:http://v.juhe.cn/weather/index
支持格式:json/xml
请求方法:get
请求参数说明:
名称 必填 类型 说明 cityname Y string 城市名或城市ID,如:"苏州",需要utf8 urlencode dtype N string 返回数据格式:json或xml,默认json format N int 未来7天预报(future)两种返回格式,1或2,默认1 key Y string 在个人中心->我的数据,接口名称上方查看
请求示例:http://v.juhe.cn/weather/index?format=2&cityname=%E8%8B%8F%E5%B7%9E&key=您申请的KEY
返回参数说明:
名称 类型 说明
返回示例:JSON返回示例:
{ "resultcode": "200", "reason": "查询成功!", "result": { "sk": { /*当前实况天气*/ "temp": "21", /*当前温度*/ "wind_direction": "西风", /*当前风向*/ "wind_strength": "2级", /*当前风力*/ "humidity": "4%", /*当前湿度*/ "time": "14:25" /*更新时间*/ }, "today": { "city": "天津", "date_y": "2014年03月21日", "week": "星期五", "temperature": "8℃~20℃", /*今日温度*/ "weather": "晴转霾", /*今日天气*/ "weather_id": { /*天气唯一标识*/ "fa": "00", /*天气标识00:晴*/ "fb": "53" /*天气标识53:霾 如果fa不等于fb,说明是组合天气*/ }, "wind": "西南风微风", "dressing_index": "较冷", /*穿衣指数*/ "dressing_advice": "建议着大衣、呢外套加毛衣、卫衣等服装。", /*穿衣建议*/ "uv_index": "中等", /*紫外线强度*/ "comfort_index": "",/*舒适度指数*/ "wash_index": "较适宜", /*洗车指数*/ "travel_index": "适宜", /*旅游指数*/ "exercise_index": "较适宜", /*晨练指数*/ "drying_index": ""/*干燥指数*/ }, "future": [ /*未来几天天气*/ { "temperature": "28℃~36℃", "weather": "晴转多云", "weather_id": { "fa": "00", "fb": "01" }, "wind": "南风3-4级", "week": "星期一", "date": "20140804" }, { "temperature": "28℃~36℃", "weather": "晴转多云", "weather_id": { "fa": "00", "fb": "01" }, "wind": "东南风3-4级", "week": "星期二", "date": "20140805" }, { "temperature": "27℃~35℃", "weather": "晴转多云", "weather_id": { "fa": "00", "fb": "01" }, "wind": "东南风3-4级", "week": "星期三", "date": "20140806" }, { "temperature": "27℃~34℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "东南风3-4级", "week": "星期四", "date": "20140807" }, { "temperature": "27℃~33℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "东北风4-5级", "week": "星期五", "date": "20140808" }, { "temperature": "26℃~33℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "北风4-5级", "week": "星期六", "date": "20140809" }, { "temperature": "26℃~33℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "北风4-5级", "week": "星期日", "date": "20140810" } ] }, "error_code": 0 }
接口地址:http://v.juhe.cn/weather/uni
支持格式:json/xml
请求方法:http get
请求参数说明:
名称 必填 类型 说明 key 是 string 在个人中心->我的数据,接口名称上方查看 dtype 否 string 返回数据的格式,xml或json,默认json
请求示例:http://v.juhe.cn/weather/uni?key=xxxxxx
返回参数说明:
名称 类型 说明 error_code int 返回码 reason string 返回说明 data - 返回结果集 wid string 天气唯一标识 weather string 天气
返回示例:JSON返回示例:
{ "resultcode": "200", "reason": "successed", "result": [ { "wid": "00", "weather": "晴" }, { "wid": "01", "weather": "多云" }, { "wid": "02", "weather": "阴" }, { "wid": "03", "weather": "阵雨" }, { "wid": "04", "weather": "雷阵雨" }, { "wid": "05", "weather": "雷阵雨伴有冰雹" }, { "wid": "06", "weather": "雨夹雪" }, { "wid": "07", "weather": "小雨" }, { "wid": "08", "weather": "中雨" }, { "wid": "09", "weather": "大雨" }, { "wid": "10", "weather": "暴雨" }, { "wid": "11", "weather": "大暴雨" }, { "wid": "12", "weather": "特大暴雨" }, { "wid": "13", "weather": "阵雪" }, { "wid": "14", "weather": "小雪" }, { "wid": "15", "weather": "中雪" }, { "wid": "16", "weather": "大雪" }, { "wid": "17", "weather": "暴雪" }, { "wid": "18", "weather": "雾" }, { "wid": "19", "weather": "冻雨" }, { "wid": "20", "weather": "沙尘暴" }, { "wid": "21", "weather": "小雨-中雨" }, { "wid": "22", "weather": "中雨-大雨" }, { "wid": "23", "weather": "大雨-暴雨" }, { "wid": "24", "weather": "暴雨-大暴雨" }, { "wid": "25", "weather": "大暴雨-特大暴雨" }, { "wid": "26", "weather": "小雪-中雪" }, { "wid": "27", "weather": "中雪-大雪" }, { "wid": "28", "weather": "大雪-暴雪" }, { "wid": "29", "weather": "浮尘" }, { "wid": "30", "weather": "扬沙" }, { "wid": "31", "weather": "强沙尘暴" }, { "wid": "53", "weather": "霾" } ], "error_code": 0 }
接口地址:http://v.juhe.cn/weather/geo
支持格式:json/xml
请求方法:http get/post
请求参数说明:
名称 必填 类型 说明 lon Y string 经度,如:116.39277 lat Y string 纬度,如:39.933748 format N int 未来6天预报(future)两种返回格式,1或2,默认1 dtype Y string 返回数据格式:json或xml,默认json key Y string 在个人中心->我的数据,接口名称上方查看
请求示例:http://v.juhe.cn/weather/geo?format=2&key=您申请的KEY&lon=116.39277&lat=39.933748
返回参数说明:
名称 类型 说明
返回示例:JSON返回示例:
{ "resultcode": "200", "reason": "查询成功!", "result": { "sk": { /*当前实况天气*/ "temp": "21", /*当前温度*/ "wind_direction": "西风", /*当前风向*/ "wind_strength": "2级", /*当前风力*/ "humidity": "4%", /*当前湿度*/ "time": "14:25" /*更新时间*/ }, "today": { "city": "天津", "date_y": "2014年03月21日", "week": "星期五", "temperature": "8℃~20℃", /*今日温度*/ "weather": "晴转霾", /*今日天气*/ "weather_id": { /*天气唯一标识*/ "fa": "00", /*天气标识00:晴*/ "fb": "53" /*天气标识53:霾 如果fa不等于fb,说明是组合天气*/ }, "wind": "西南风微风", "dressing_index": "较冷", /*穿衣指数*/ "dressing_advice": "建议着大衣、呢外套加毛衣、卫衣等服装。", /*穿衣建议*/ "uv_index": "中等", /*紫外线强度*/ "comfort_index": "", "wash_index": "较适宜", /*洗车指数*/ "travel_index": "适宜", /*旅游指数*/ "exercise_index": "较适宜", /*晨练指数*/ "drying_index": "" }, "future": { /*未来几天天气*/ "day_20140321": { "temperature": "8℃~20℃", "weather": "晴转霾", "weather_id": { "fa": "00", "fb": "53" }, "wind": "西南风微风", "week": "星期五", "date": "20140321" }, "day_20140322": { "temperature": "9℃~21℃", "weather": "霾转多云", "weather_id": { "fa": "53", "fb": "01" }, "wind": "东北风微风转东南风微风", "week": "星期六", "date": "20140322" }, "day_20140323": { "temperature": "9℃~19℃", "weather": "阴", "weather_id": { "fa": "02", "fb": "02" }, "wind": "南风微风", "week": "星期日", "date": "20140323" }, "day_20140324": { "temperature": "8℃~19℃", "weather": "晴转多云", "weather_id": { "fa": "00", "fb": "01" }, "wind": "西南风微风转南风微风", "week": "星期一", "date": "20140324" }, "day_20140325": { "temperature": "9℃~20℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "南风微风", "week": "星期二", "date": "20140325" }, "day_20140326": { "temperature": "10℃~19℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "南风微风", "week": "星期三", "date": "20140326" }, "day_20140327": { "temperature": "11℃~20℃", "weather": "阴转多云", "weather_id": { "fa": "02", "fb": "01" }, "wind": "南风微风转无持续风向微风", "week": "星期四", "date": "20140327" } } }, "error_code": 0 }
接口地址:http://v.juhe.cn/weather/citys
支持格式:json/xml
请求方法:http get
请求参数说明:
名称 必填 类型 说明 dtype N string 返回数据格式:json或xml,默认json key Y string 在个人中心->我的数据,接口名称上方查看
请求示例:http://v.juhe.cn/weather/citys?key=您申请的KEY
返回参数说明:
名称 类型 说明
返回示例:JSON返回示例:
{ "resultcode":"200", "reason":"successed", "result":[ { "id":"1", /*城市ID*/ "province":"北京",/*省份名称*/ "city":"北京", /*城市*/ "district":"北京" /*城市/区名称*/ }, { "id":"2", "province":"北京", "city":"北京", "district":"海淀" }, { "id":"3", "province":"北京", "city":"北京", "district":"朝阳" }, { "id":"4", "province":"北京", "city":"北京", "district":"顺义" }, { "id":"5", "province":"北京", "city":"北京", "district":"怀柔" }, { "id":"6", "province":"北京", "city":"北京", "district":"通州" }, { "id":"7", "province":"北京", "city":"北京", "district":"昌平" }, { "id":"8", "province":"北京", "city":"北京", "district":"延庆" }, { "id":"9", "province":"北京", "city":"北京", "district":"丰台" }, { "id":"10", "province":"北京", "city":"北京", "district":"石景山" }, { "id":"11", "province":"北京", "city":"北京", "district":"大兴" }, { "id":"12", "province":"北京", "city":"北京", "district":"房山" }, { "id":"13", "province":"北京", "city":"北京", "district":"密云" }, { "id":"14", "province":"北京", "city":"北京", "district":"门头沟" }, { "id":"15", "province":"北京", "city":"北京", "district":"平谷" }, { "id":"16", "province":"上海", "city":"上海", "district":"上海" }, { "id":"17", "province":"上海", "city":"上海", "district":"闵行" }, { "id":"18", "province":"上海", "city":"上海", "district":"宝山" }, { "id":"19", "province":"上海", "city":"上海", "district":"嘉定" }, { "id":"20", "province":"上海", "city":"上海", "district":"南汇" }, { "id":"21", "province":"上海", "city":"上海", "district":"金山" }, { "id":"22", "province":"上海", "city":"上海", "district":"青浦" }, { "id":"23", "province":"上海", "city":"上海", "district":"松江" }, { "id":"24", "province":"上海", "city":"上海", "district":"奉贤" }, { "id":"25", "province":"上海", "city":"上海", "district":"崇明" }, { "id":"26", "province":"上海", "city":"上海", "district":"徐家汇" }, { "id":"27", "province":"上海", "city":"上海", "district":"浦东" } ], "error_code":0 }
聚合数据是互联网专业数据科技服务商,致力于用数据科技赋能行业升级,驱动产业发展。主要向不同行业的企业客户提供大数据服务和系统的解决方案。经营范围是数据技术服务。
聚合数据作为天聚地合(苏州)数据股份有限公司旗下的互联网专业数据科技服务商,于2018年上线,总部位于苏州,在北京、杭州均设有数据处理中心。聚合数据主要提供两种核心服务:第一、数据技术服务。依托聚合云数据平台,以API数据接口的形式,向下游客户提供数据查询、信息验证和充值接口等服务;第二、数据应用。以大数据清洗、分析、挖掘等技术为主要技术手段,为企业客户提供数据应用系统或定制化的数据分析成果,帮助企业进行经营决策。目前可以为金融科技、汽车后市场、智慧城市等领域提供大数据解决方案。
企业和程序员可以通过进制数据封装的API或SDK极速接入其他数据资源,同时进制数据提供数据交易等服务。通过进制数据,不仅开发成本极大降低,而且可以获得其他丰富的数据服务:数据交易,数据分析,区块链Token管理等服务。
电话:173-6457-5198
QQ① 群:792473404
客服 QQ:1643296538
微信客服:binstds
扫描二维码添加客服微信
周一至周五 9:00 - 21:00(其中周三为 9:00 - 18:00)
周六 9:00 - 12:00(节假日除外)
进制数据团队
2020.01.01