# 天气预报

**请求方式:** GET

**接口地址:** https://api.lvxiaodong.com/api/weather

**接口描述:** 免费API提供准确的天气预报服务,支持获取全球各地的实时天气数据,帮助用户了解天气趋势,适用于应用开发、网站集成和个人使用。

## 请求参数

| 参数名 | 可传值说明 | 传入位置 | 是否必填 | 示例值 | 默认值 | 参数说明 |
|--------|----------|----------|----------|--------|--------|----------|
| city | 城市名称 | query | 必传 | — | — | 传入城市名称 例如:海淀区、滕州市、济南市天桥区 |

## 返回示例

```json
{
  "code": 200,
  "msg": "数据请求成功",
  "data": {
    "city": "滕州市",
    "data": [
      {
        "date": "周六",
        "temperature": "4-24℃",
        "weather": "多云",
        "wind": "北风4-5级",
        "air_quality": "轻度"
      },
      {
        "date": "周日",
        "temperature": "2-11℃",
        "weather": "晴",
        "wind": "北风4-5级",
        "air_quality": "良"
      },
      {
        "date": "周一",
        "temperature": "5-18℃",
        "weather": "晴",
        "wind": "西南风4-5级",
        "air_quality": "良"
      },
      {
        "date": "周二",
        "temperature": "10-23℃",
        "weather": "多云",
        "wind": "南风3-4级",
        "air_quality": "良"
      },
      {
        "date": "周三",
        "temperature": "5-17℃",
        "weather": "多云",
        "wind": "东北风3-4级",
        "air_quality": "良"
      },
      {
        "date": "周四",
        "temperature": "5-12℃",
        "weather": "小雨",
        "wind": "东风3-4级",
        "air_quality": "良"
      }
    ]
  }
}
```