OpenWeatherMap Get Current Air Pollution

1 credits/call
ae_openweathermap_get_current_air_pollution

Check current air quality for a location using latitude and longitude, including the Air Quality Index and pollutant concentrations.

Weather
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
latnumberYesLatitude of the location.—
lonnumberYesLongitude of the location.—

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_current_air_pollution' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "lat": 1,
    "lon": 1
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "coord": {
    "lat": 1,
    "lon": 1
  },
  "list": [
    {
      "components": {
        "co": 151.31,
        "nh3": 0,
        "no": 0.01,
        "no2": 0.02,
        "o3": 30.77,
        "pm10": 7.3
      },
      "dt": 1791454632,
      "main": {
        "aqi": 1
      }
    }
  ]
}

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