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.

Weather
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
datestringYesDate in yyyyMMdd format, limited to the most recent 10 days.—
langstringNoLanguage code.—
unitenum (m | i)NoUnit system.—
locationstringYesLocationID 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-Key
Request 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
JSONPartial content
{
  "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.