OpenWeatherMap Get Historical Air Pollution
1 credits/call
ae_openweathermap_get_historical_air_pollution
View OpenWeather historical air pollution data for a location and UTC time range.
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 |
|---|---|---|---|---|
end | integer | Yes | End date (unix time, UTC). | — |
lat | number | Yes | Latitude of the location. | — |
lon | number | Yes | Longitude of the location. | — |
start | integer | Yes | Start date (unix time, UTC). | — |
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_historical_air_pollution' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"end": 1,
"lat": 1,
"lon": 1,
"start": 1
}
}'Response exampleresponse.json
{
"coord": {
"lat": 1,
"lon": 1
},
"list": []
}

