API简介:查询目标区域当前/未来的天气情况,数据来源是中国气象局

接口问题联系相关负责人沟通修复:查看该接口开发者

接口地址:https://tools.mgtv100.com/external/v1/weathers/query

返回格式:JSON

请求方式:GET

请求参数:https://tools.mgtv100.com/external/v1/weathers/query?city=深圳&extensions=all&output=JSON

非官方接口,请联系开发者获取技术支持

Bug修复:非官方接口,Bug反馈请联系开发者

会员线路:因调用量剧增,定制独享优质线路请 参考定制方案

专属线路 成本透明 0服务费

接口信息

接口名称 是否必填 接口类型 接口说明
output string 可选值:JSON,XML, 默认 JSON
city string 城市 深圳
extensions string 可选值:base/all base:返回实况天气 all:返回预报天气

返回示例

{
    "status": "success",
    "code": 200,
    "data": {
        "status": "1",
        "count": "1",
        "info": "OK",
        "infocode": "10000",
        "forecasts": [
            {
                "city": "\u6df1\u5733\u5e02",
                "adcode": "440300",
                "province": "\u5e7f\u4e1c",
                "reporttime": "2023-09-10 14:30:15",
                "casts": [
                    {
                        "date": "2023-09-10",
                        "week": "7",
                        "dayweather": "\u9635\u96e8",
                        "nightweather": "\u9635\u96e8",
                        "daytemp": "28",
                        "nighttemp": "24",
                        "daywind": "\u4e1c\u5357",
                        "nightwind": "\u4e1c\u5357",
                        "daypower": "1-3",
                        "nightpower": "1-3",
                        "daytemp_float": "28.0",
                        "nighttemp_float": "24.0"
                    },
                    {
                        "date": "2023-09-11",
                        "week": "1",
                        "dayweather": "\u591a\u4e91",
                        "nightweather": "\u591a\u4e91",
                        "daytemp": "31",
                        "nighttemp": "26",
                        "daywind": "\u5317",
                        "nightwind": "\u5317",
                        "daypower": "1-3",
                        "nightpower": "1-3",
                        "daytemp_float": "31.0",
                        "nighttemp_float": "26.0"
                    },
                    {
                        "date": "2023-09-12",
                        "week": "2",
                        "dayweather": "\u591a\u4e91",
                        "nightweather": "\u591a\u4e91",
                        "daytemp": "32",
                        "nighttemp": "26",
                        "daywind": "\u5317",
                        "nightwind": "\u5317",
                        "daypower": "1-3",
                        "nightpower": "1-3",
                        "daytemp_float": "32.0",
                        "nighttemp_float": "26.0"
                    },
                    {
                        "date": "2023-09-13",
                        "week": "3",
                        "dayweather": "\u591a\u4e91",
                        "nightweather": "\u591a\u4e91",
                        "daytemp": "31",
                        "nighttemp": "26",
                        "daywind": "\u5317",
                        "nightwind": "\u5317",
                        "daypower": "1-3",
                        "nightpower": "1-3",
                        "daytemp_float": "31.0",
                        "nighttemp_float": "26.0"
                    }
                ]
            }
        ]
    }
}

返回参数

接口名称 接口类型 接口说明
// 暂无层级展示,仅供参考 
null

小白教程

本教程帮助用户快速对接天气查询接口,仍有疑问请联系开发者获取技术协助

实时调试

部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口

在线调试

温馨提示:请修改请求参数,未修改可能返回报错

参数名称 参数值(修改后测试)
{
    "status": "success",
    "code": 200,
    "data": {
        "status": "1",
        "count": "1",
        "info": "OK",
        "infocode": "10000",
        "forecasts": [
            {
                "city": "深圳市",
                "adcode": "440300",
                "province": "广东",
                "reporttime": "2023-09-10 14:30:15",
                "casts": [
                    {
                        "date": "2023-09-10",
                        "week": "7",
                        "dayweather": "阵雨",
                        "nightweather": "阵雨",
                        "daytemp": "28",
                        "nighttemp": "24",
                        "daywind": "东南",
                        "nightwind": "东南",
                        "daypower": "1-3",
                        "nightpower": "1-3",
                        "daytemp_float": "28.0",
                        "nighttemp_float": "24.0"
                    },
                    {
                        "date": "2023-09-11",
                        "week": "1",
                        "dayweather": "多云",
                        "nightweather": "多云",
                        "daytemp": "31",
                        "nighttemp": "26",
                        "daywind": "北",
                        "nightwind": "北",
                        "daypower": "1-3",
                        "nightpower": "1-3",
                        "daytemp_float": "31.0",
                        "nighttemp_float": "26.0"
                    },
                    {
                        "date": "2023-09-12",
                        "week": "2",
                        "dayweather": "多云",
                        "nightweather": "多云",
                        "daytemp": "32",
                        "nighttemp": "26",
                        "daywind": "北",
                        "nightwind": "北",
                        "daypower": "1-3",
                        "nightpower": "1-3",
                        "daytemp_float": "32.0",
                        "nighttemp_float": "26.0"
                    },
                    {
                        "date": "2023-09-13",
                        "week": "3",
                        "dayweather": "多云",
                        "nightweather": "多云",
                        "daytemp": "31",
                        "nighttemp": "26",
                        "daywind": "北",
                        "nightwind": "北",
                        "daypower": "1-3",
                        "nightpower": "1-3",
                        "daytemp_float": "31.0",
                        "nighttemp_float": "26.0"
                    }
                ]
            }
        ]
    }
}