OpenWeatherMap Get Timemachine

2 credits/call
ae_openweathermap_get_timemachine

Retrieve OpenWeatherMap weather for a specific timestamp and location, from January 1, 1979 through four days ahead. Use a Unix timestamp in seconds and choose standard, metric, or imperial units.

Weather
2 credits/call

Pricing

2 credits/call
ConditionCharge
Each call2 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
dtintegerYes必填。Unix 秒级时间戳,表示从 1970-01-01 00:00:00 UTC 开始经过的秒数。必须大于等于 283996800,即 1979-01-01 00:00:00 UTC;可查询至当前时间之后 4 天。禁止传 0、1、test、日期字符串或毫秒时间戳。示例:1715000000。—
latnumberYesLatitude, decimal (-90; 90)—
lonnumberYesLongitude, decimal (-180; 180)—
langstringNoYou can use the lang parameter to get the output in your language.—
unitsenum (standard | metric | imperial)NoUnits of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default.standard

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_openweathermap_get_timemachine' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "dt": 1789516800,
    "lat": 29.5051598,
    "lon": 106.5068961,
    "units": "metric"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "data": [
    {
      "clouds": 100,
      "dew_point": 19.49,
      "dt": 1789516800,
      "feels_like": 20.89,
      "humidity": 95,
      "pressure": 1015
    }
  ],
  "lat": 29.5052,
  "lon": 106.5069,
  "timezone": "Asia/Shanghai",
  "timezone_offset": 28800
}

This example shows part of the response. Copied content is valid JSON.