天气预报国际版

天气预报国际版

免费服务

通过与多个全球天气服务商及高分辨率本地天气模型合作,提供覆盖全球数百万个地点的天气信息访问,助力各类应用场景的天气数据需求。

免费本接口注册后默认可免费调用,为防止滥用设有使用档次限制。
了解积分与档位详情 ›

权益档次可使用平台积分兑换更高调用档位,多种积分获取方式请查看积分与档位详情。

查询14天预报
接入点说明
提供基于经纬度或城市名称的未来14天天气预报查询服务,辅助用户了解未来两周天气状况,为出行或活动安排提供参考。
接口地址
https://route.showapi.com/3540-3?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST/GET
请求参数
URI 参数
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://route.showapi.com/3540-3?appKey=YOUR_APPKEY"
返回示例
JSON
{
  "showapi_res_error": "",
  "showapi_res_id": "6a59cb5bfb638c93475536c7",
  "showapi_res_code": 0,
  "showapi_fee_num": 1,
  "showapi_res_body": {
    "dayList": [
      {
        "max_temperature": 29.4,
        "visibility": 10,
        "moon_phase": "蛾眉月",
        "moonrise": "08:42",
        "humidity": 47,
        "rain_prop": 2,
        "weather": "晴天",
        "date": "2026-07-17",
        "uv": 6.6,
        "total_snow": 0,
        "sunrise": "05:03",
        "moon_illumination": 15,
        "moonset": "22:37",
        "total_precip": 0,
        "sunset": "21:09",
        "max_wind_speed": 4.7,
        "snow_prob": 0,
        "weather_en": "Sunny",
        "temperature": 22.6,
        "min_temperature": 16.2,
        "moon_phase_en": "Waxing Crescent"
      },
      {
        "max_temperature": 27.6,
        "visibility": 9.8,
        "moon_phase": "蛾眉月",
        "moonrise": "10:10",
        "humidity": 54,
        "rain_prop": 57,
        "weather": "晴天",
        "date": "2026-07-18",
        "uv": 6.8,
        "total_snow": 0,
        "sunrise": "05:04",
        "moon_illumination": 23,
        "moonset": "22:50",
        "total_precip": 1.53,
        "sunset": "21:08",
        "max_wind_speed": 7,
        "snow_prob": 0,
        "weather_en": "Sunny",
        "temperature": 20,
        "min_temperature": 14.9,
        "moon_phase_en": "Waxing Crescent"
      },
      {
        "max_temperature": 23.9,
        "visibility": 10,
        "moon_phase": "上弦月",
        "moonrise": "11:35",
        "humidity": 49,
        "rain_prop": 2,
        "weather": "晴天",
        "date": "2026-07-19",
        "uv": 6.5,
        "total_snow": 0,
        "sunrise": "05:06",
        "moon_illumination": 33,
        "moonset": "23:03",
        "total_precip": 0,
        "sunset": "21:07",
        "max_wind_speed": 5.3,
        "snow_prob": 0,
        "weather_en": "Sunny",
        "temperature": 17.6,
        "min_temperature": 11.7,
        "moon_phase_en": "First Quarter"
      },
      {
        "max_temperature": 24.1,
        "visibility": 10,
        "moon_phase": "上弦月",
        "moonrise": "12:57",
        "humidity": 46,
        "rain_prop": 3,
        "weather": "晴天",
        "date": "2026-07-20",
        "uv": 6.7,
        "total_snow": 0,
        "sunrise": "05:07",
        "moon_illumination": 43,
        "moonset": "23:16",
        "total_precip": 0,
        "sunset": "21:06",
        "max_wind_speed": 5.1,
        "snow_prob": 0,
        "weather_en": "Sunny",
        "temperature": 18.1,
        "min_temperature": 12.3,
        "moon_phase_en": "First Quarter"
      }
    ],
    "cityInfo": {
      "time_zone": "Europe/London",
      "city": "London",
      "region": "City of London Greater London",
      "country": "United Kingdom",
      "longitude": -0.106,
      "localtime": "2026-07-17 07:27:34",
      "latitude": 51.517
    },
    "remark": "查询成功",
    "ret_code": 0
  }
}
MCP 服务集成接口级

在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。

MCP JSON
{
  "mcpServers": {
    "showapi-mcp-3540": {
      "url": "http://www.showapi.com.cn/mcp/3540/{your_appKey}"
    }
  }
}
OpenAPI 文档接口级

标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。