QWeather Weather Hourly Forecast
1 credits/call
ae_qweather_weather_hourly_forecast
Get a 24-hour hourly weather forecast, including temperature, wind, humidity, and precipitation probability.
1 credits/call
Pricing
1 credits/call
| Condition | Charge |
|---|---|
| Each call | 1 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
lang | string | No | Language setting. See [Language](https://dev.qweather.com/en/docs/resource/language/) for behavior, configuration, and data availability | — |
location | string | Yes | The location to be queried, support [LocationID](https://dev.qweather.com/en/docs/resource/glossary/#locationid) or comma-separated [longitude and latitude](https://dev.qweather.com/en/docs/resource/glossary/#coordinate) (decimal, up to 2 decimal places), LocationID can be obtained by [GeoAPI](https://dev.qweather.com/en/docs/api/geoapi/). Example: `location=101010100` or `location=116.41,39.92` | — |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_qweather_weather_hourly_forecast' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"lang": "zh",
"location": "104.07,30.57"
}
}'Response exampleresponse.json
{
"code": "200",
"fxLink": "https://www.qweather.com/weather/chengdu-101270101.html",
"hourly": [
{
"cloud": "100",
"dew": "14",
"fxTime": "2026-11-07T12:00+08:00",
"humidity": "79",
"icon": "101",
"pop": "7"
}
],
"refer": {
"license": [
"QWeather Developers License"
],
"sources": [
"QWeather"
]
},
"updateTime": "2026-11-07T11:53+08:00"
}This example shows part of the response. Copied content is valid JSON.
