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.
2 credits/call
Pricing
2 credits/call
| Condition | Charge |
|---|---|
| Each call | 2 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
dt | integer | Yes | 必填。Unix 秒级时间戳,表示从 1970-01-01 00:00:00 UTC 开始经过的秒数。必须大于等于 283996800,即 1979-01-01 00:00:00 UTC;可查询至当前时间之后 4 天。禁止传 0、1、test、日期字符串或毫秒时间戳。示例:1715000000。 | — |
lat | number | Yes | Latitude, decimal (-90; 90) | — |
lon | number | Yes | Longitude, decimal (-180; 180) | — |
lang | string | No | You can use the lang parameter to get the output in your language. | — |
units | enum (standard | metric | imperial) | No | Units 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-KeyRequest 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
{
"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.


