提供天气实况与预报,支持通过坐标、IP、地名等查询天气、湿度、温度、风向、风力、紫外线、穿衣指南及空气指数,可获取当前至40天预报及历史数据。
此功能支持通过区域code或区域名查询未来40天天气预报,推荐优先使用区域code以避免重名。未来15天天气数据每日更新三次,时间分别为7点、12点、18点。
showapi_res_body
curl -X POST "https://route.showapi.com/9-12?appKey=YOUR_APPKEY" \ -H "content-type: application/x-www-form-urlencoded" \ -d "areaCode=530700&area=%E4%B8%BD%E6%B1%9F"
{ "showapi_res_code": 0, "showapi_res_error": "", "showapi_res_id":"ce135f6739294c63be0c021b76b6fbff", "showapi_res_body": { "ret_code": 0, "area": "南安", "areaid": "", "areaCode":"350500", "day40List": [ { "night_weather_code": "01", "day_weather": "多云", "night_weather": "多云", "night_wind_power": "微风", "day_wind_power": "微风", "day_weather_code": "01", "daytime": "20161106", "day_weather_pic": "http://appimg.showapi.com/images/weather/icon/day/01.png", "night_air_temperature": "21", "day_air_temperature": "27", "day_wind_direction": "无持续风向", "night_weather_pic": "http://appimg.showapi.com/images/weather/icon/night/01.png", "night_wind_direction": "北风" }, { "night_weather_code": "01", "day_weather": "晴", "night_weather": "多云", "night_wind_power": "3-4级", "day_wind_power": "微风", "day_weather_code": "00", "daytime": "20161107", "day_weather_pic": "http://appimg.showapi.com/images/weather/icon/day/00.png", "night_air_temperature": "21", "day_air_temperature": "27", "day_wind_direction": "无持续风向", "night_weather_pic": "http://appimg.showapi.com/images/weather/icon/night/00.png", "night_wind_direction": "北风" } ] } }
在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。
{ "mcpServers": { "showapi-mcp-9": { "url": "http://www.showapi.com.cn/mcp/9/{your_appKey}" } } }
标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。
客服热线请拨打
400-998-8033