可用于机器学习、人工智能数据分析。提供天气实况,通过坐标区域、IP、地名、景点名称、电话区号或邮编等有效信息可查询天气情况(天气状况、湿度、天气图标、实时温度、风向、风级、紫外线、穿衣指南、空气指数)。可查询到当前天气、未来24小时、7天、15天、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