Global Air Quality & AQI Forecast
Fetch real-time US AQI, European AQI, PM2.5, PM10, ozone, NO2, CO, UV index, and hourly air-quality forecasts for any coordinates via Open-Meteo.
curl -sG "https://api.agentapigate.ai/v1/weather/air_quality/global" \ --data-urlencode "latitude=37.7749" \ --data-urlencode "longitude=-122.4194" \ --data-urlencode "forecast_days=2" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Global Air Quality & AQI Forecast (`weather.air_quality.global`) **latitude**: 37.800003 · **longitude**: -122.399994 ## current - **time**: 2026-11-30T08:00 - **us_aqi**: 37 - **european_aqi**: 27 - **pm2_5**: 8.5 - **pm10**: 14.4 - **carbon_monoxide**: 133 - **nitrogen_dioxide**: 2.7 - **sulphur_dioxide**: 0.3 - **ozone**: 72 - **uv_index**: 0 ## hourly_sample - [1] time: 2026-11-30T00:00, us_aqi: 51, pm2_5: 4, pm10: 6.6, ozone: 69 - [2] time: 2026-11-30T01:00, us_aqi: 50, pm2_5: 4.4, pm10: 7.3, ozone: 68 - [3] time: 2026-11-30T02:00, us_aqi: 49, pm2_5: 5.3, pm10: 8.8, ozone: 66 - [4] time: 2026-11-30T03:00, us_aqi: 47, pm2_5: 6.4, pm10: 10.4, ozone: 65 - [5] time: 2026-11-30T04:00, us_aqi: 45, pm2_5: 7, pm10: 11.6, ozone: 66 - [6] time: 2026-11-30T05:00, us_aqi: 43, pm2_5: 7.4, pm10: 12.4, ozone: 68 - [7] time: 2026-11-30T06:00, us_aqi: 41, pm2_5: 7.6, pm10: 12.7, ozone: 70 - [8] time: 2026-11-30T07:00, us_aqi: 39, pm2_5: 7.9, pm10: 13.3, ozone: 71 - [9] time: 2026-11-30T08:00, us_aqi: 37, pm2_5: 8.5, pm10: 14.4, ozone: 72 - [10] time: 2026-11-30T09:00, us_aqi: 36, pm2_5: 8.8, pm10: 15, ozone: 72 - [11] time: 2026-11-30T10:00, us_aqi: 36, pm2_5: 9.5, pm10: 16.2, ozone: 72 - [12] time: 2026-11-30T11:00, us_aqi: 36, pm2_5: 9.8, pm10: 16.8, ozone: 73 - [13] time: 2026-11-30T12:00, us_aqi: 36, pm2_5: 9.2, pm10: 15.6, ozone: 72 - [14] time: 2026-11-30T13:00, us_aqi: 37, pm2_5: 8.4, pm10: 14.2, ozone: 69 - [15] time: 2026-11-30T14:00, us_aqi: 37, pm2_5: 7.8, pm10: 13.1, ozone: 66
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:weather.air_quality.global · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| latitude | number | required | 37.7749 | Latitude (-90 to 90, e.g. 37.7749 for San Francisco) |
| longitude | number | required | -122.4194 | Longitude (-180 to 180, e.g. -122.4194) |
| forecast_days | number | optional | 2 | Forecast horizon in days (1-5) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | weather_air_quality_global | OAuth 2.1 Hub & /mcp/local |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 400 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 1386t → 422t (-70%) | Partner credit: eligible |
More Maps & Reviews Real-Time APIs
Search Google Maps places and local businesses with ratings, review counts, addresses, phones, and websites.
Inspect detailed place profile, operating hours, contact links, and coordinates for a business name and city.
Fetch recent customer ratings, review titles, app versions, and review text from the Apple iOS App Store.
Inspect company TrustScore rating, review count, and recent verified customer reviews on Trustpilot.
Search real-time hotel availability, total stay pricing, guest review scores, star class, and check-in windows by city destination and dates.
Inspect live FAA National Airspace System (NAS) airport ground stops, arrival/departure delays, and carrier flight-number routing metadata (commercial ADS-B live track feed in partner onboarding preview).
Frequently Asked Questions
How do I call Global Air Quality & AQI Forecast (weather.air_quality.global) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/weather/air_quality/global with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool weather_air_quality_global on https://mcp.agentapigate.ai/mcp.
What does weather.air_quality.global cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on weather.air_quality.global?
Passing ?format=md transforms the response into normalized Markdown (~422 tokens vs ~1386 raw tokens, saving 70% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only local endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["local"], optional allowed_endpoints: ["weather.air_quality.global"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.