欢迎使用「api/weather-data」接口,该接口提供实时气象信息查询功能。以下是使用指南:

📌 接口说明

  • 路径: /api/weather-data
  • 方法: GET
  • 参数:
    • city (必填): 城市名称(如 北京
    • unit (可选): 温度单位(默认 ,支持

📦 返回示例

{
  "status": "success",
  "data": {
    "city": "上海",
    "temperature": 25,
    "humidity": "65%",
    "weather": "多云",
    "forecast": "https://cloud-image.ullrai.com/q/天气预报/"
  }
}

📚 相关链接

天气数据
气象信息

本接口数据来源于中国气象局,确保准确性和权威性 ☁️🌦️