AgentAPIGate
Back to Catalog
GET /v1/weather/air_quality/globalPack: local·MCP Tool: weather_air_quality_global

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.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Latitude (-90 to 90, e.g. 37.7749 for San Francisco)
Longitude (-180 to 180, e.g. -122.4194)
Forecast horizon in days (1-5)
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-70% tokens
# 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
ParameterTypeReqSample / DefaultDescription
latitudenumberrequired37.7749Latitude (-90 to 90, e.g. 37.7749 for San Francisco)
longitudenumberrequired-122.4194Longitude (-180 to 180, e.g. -122.4194)
forecast_daysnumberoptional2Forecast horizon in days (1-5)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolweather_air_quality_globalOAuth 2.1 Hub & /mcp/local
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency400 ms$0 billed on empty or 4xx/5xx
Token Economy1386t → 422t (-70%)Partner credit: eligible

More Maps & Reviews Real-Time APIs

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.