# 城市天气预报获取 正常

# 请求URL

https://tenapi.cn/wether/

# 请求示例 GET

https://tenapi.cn/wether/?city=北京

# 返回数据 JSON

{
  "code": 200,
  "data": [
    {
      "city": "北京",
      "date": "2022-11-27",
      "weather": "多云",
      "temp": 3,
      "humidity": "26%",
      "wind": "东风2级",
      "pm25": 20,
      "pm10": 32,
      "low": 0,
      "high": 7,
      "airData": 32,
      "airQuality": "优",
      "dateLong": 1669478400000,
      "weatherType": 1,
      "windLevel": 2,
      "province": "北京"
    },
    {
      "city": "北京",
      "date": "2022-11-28",
      "weather": "多云",
      "humidity": "未知",
      "wind": "西北风",
      "pm25": 0,
      "low": -5,
      "high": 13,
      "airData": 40,
      "airQuality": "优",
      "dateLong": 1669564800000,
      "weatherType": 1,
      "windLevel": 3,
      "province": "北京"
    },
    {
      "city": "北京",
      "date": "2022-11-29",
      "weather": "晴",
      "humidity": "未知",
      "wind": "西北风",
      "pm25": 0,
      "low": -8,
      "high": -3,
      "airData": 30,
      "airQuality": "优",
      "dateLong": 1669651200000,
      "weatherType": 0,
      "windLevel": 4,
      "province": "北京"
    },
    {
      "city": "北京",
      "date": "2022-11-30",
      "weather": "晴",
      "humidity": "未知",
      "wind": "北风",
      "pm25": 0,
      "low": -9,
      "high": -1,
      "airData": 40,
      "airQuality": "优",
      "dateLong": 1669737600000,
      "weatherType": 0,
      "windLevel": 1,
      "province": "北京"
    }
  ]
}

# 调用效果

暂无

# 请求参数

参数名称 类型 参数值 描述
city 必填 city 即需要查询天气的城市名称