QWeather Time Machine Weather
1 credits/call
ae_qweather_time_machine_weather
Retrieve historical weather data for a specific location and date within the last 10 days.
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 |
|---|---|---|---|---|
date | string | Yes | Date in yyyyMMdd format, limited to the most recent 10 days. | — |
lang | string | No | Language code. | — |
unit | enum (m | i) | No | Unit system. | — |
location | string | Yes | LocationID only. Historical APIs do not support free-form coordinates here. | — |
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_time_machine_weather' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"date": "20261110",
"lang": "zh",
"location": "101010100",
"unit": "m"
}
}'Response exampleresponse.json
{
"code": "200",
"fxLink": "https://www.qweather.com/historical/beijing-101010100.html",
"refer": {
"license": [
"QWeather Developers License"
],
"sources": [
"QWeather"
]
},
"weatherDaily": {
"date": "2026-11-10",
"humidity": "67",
"moonPhase": "蛾眉月",
"moonrise": "07:53",
"moonset": "17:11",
"precip": "0.0"
},
"weatherHourly": [
{
"humidity": "76",
"icon": "150",
"precip": "0.0",
"pressure": "1028",
"temp": "2",
"text": "晴"
}
]
}This example shows part of the response. Copied content is valid JSON.
