China Weather REST API
Get current weather and short-term forecast for a specific point.
Endpoints
POST
/api/weatherBody { latitude, longitude }. Returns latest "now" weather for that point.
POST
/api/weather/forecastBody { latitude, longitude, granularity, hours, days }. Returns short-term forecast for that point.
Response example
{
"location": {
"latitude": 23.031389,
"longitude": 113.137222,
"country": "中国",
"province": "广东省",
"city": "佛山市",
"district": "南海区",
"name": "佛山·南海区"
},
"now": {
"observedAt": "2025-01-15T08:00:00Z",
"condition": "rain",
"conditionText": "小雨",
"temperature": 18,
"feelsLike": 17,
"humidity": 92,
"windSpeed": 3.2,
"windDirection": "NE",
"precipitation": 1.5,
"precipitationProbability": 0.9
}
}Playground
Send requests and view responses.