{"uid":"cap_fwkaqurZ3XQ-i-xklP0rg","slug":"agentutility-air-quality-api-709388f0","name":"AgentUtility Air Quality API","description":"Returns current air quality readings and AQI category for any latitude/longitude, with optional hourly forecast rows for the next 1-72 hours. Air-quality data from Open-Meteo. Use it as an air quality API covering US AQI, European AQI, PM2.5, PM10, ozone, nitrogen dioxide, sulphur dioxide, and carbon monoxide.","url":"https://x402.agentutility.ai/air-quality","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["latitude","longitude"],"properties":{"hourly":{"type":"boolean","description":"If true, include hourly pollutant/AQI rows. Default false."},"latitude":{"type":"number","description":"Decimal degrees, range [-90, 90]. Positive north."},"longitude":{"type":"number","description":"Decimal degrees, range [-180, 180]. Positive east."},"forecast_hours":{"type":"number","description":"Hourly forecast horizon when hourly=true. 1-72. Default 24."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"units":{"type":"object","properties":{"pm2_5":{"type":"string"},"us_aqi":{"type":"string"}}},"source":{"type":"string"},"current":{"type":"object","properties":{"pm10":{"type":"number"},"time":{"type":"string"},"ozone":{"type":"integer"},"pm2_5":{"type":"number"},"us_aqi":{"type":"integer"},"european_aqi":{"type":"integer"},"carbon_monoxide":{"type":"integer"},"sulphur_dioxide":{"type":"integer"},"us_aqi_category":{"type":"string"},"nitrogen_dioxide":{"type":"integer"}}},"location":{"type":"object","properties":{"latitude":{"type":"number"},"timezone":{"type":"string"},"longitude":{"type":"number"}}}}}}}}},"responseSchema":{"type":"json","example":{"units":{"pm2_5":"μg/m³","us_aqi":"USA AQI"},"source":"Open-Meteo Air Quality","current":{"pm10":14.1,"time":"2026-06-18T12:00","ozone":72,"pm2_5":6.2,"us_aqi":42,"european_aqi":28,"carbon_monoxide":210,"sulphur_dioxide":1,"us_aqi_category":"good","nitrogen_dioxide":11},"location":{"latitude":37.77,"timezone":"America/Los_Angeles","longitude":-122.42}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tR3l8Cp5y6TYNWkapo1ap","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current air quality readings and AQI category (US and European) plus optional hourly forecast for any latitude/longitude coordinate","exampleAgentPrompt":"What's the current air quality at coordinates 34.05 latitude, -118.24 longitude, and give me an hourly AQI forecast for the next 24 hours?","exampleUseCases":[{"title":"Outdoor event safety check","prompt":"Can you check the air quality at 37.77 latitude, -122.42 longitude in San Francisco right now and tell me the US AQI category — I need to know if it's safe to hold an outdoor event there today?"},{"title":"Air pollution hourly forecast","prompt":"I need the PM2.5 and ozone readings for the next 48 hours at 40.71 latitude, -74.01 longitude — can you pull the hourly air quality forecast for that location?"},{"title":"Cross-border AQI comparison","prompt":"What are both the US AQI and European AQI readings right now at 48.85 latitude, 2.35 longitude in Paris? I want to compare the two standards for this location."}],"resultDescription":"A JSON response containing current air quality measurements including US AQI value and category, European AQI, PM2.5, PM10, ozone, nitrogen dioxide, sulphur dioxide, and carbon monoxide concentrations. If forecast hours are requested (1–72), the response also includes timestamped hourly rows for each pollutant and AQI index over that period.","failureModes":["Invalid or out-of-range latitude/longitude returns an error indicating bad coordinates","Forecast hours outside the 1–72 range may return a validation error","Upstream Open-Meteo service unavailability may result in a 502 or timeout","Missing required coordinate fields returns a 400-level error","x402 payment failure or insufficient USDC balance blocks request before execution"],"whenToPreferThis":"Choose this endpoint when you need real-time or near-future air quality data for any global coordinate, especially when you need multiple pollutant dimensions (PM2.5, PM10, ozone, NO2, SO2, CO) alongside both US and European AQI standards in a single call. It is particularly suitable for agents operating in automated, USDC-settled workflows via x402 payment protocol. Prefer this over general weather APIs when air quality specifics (not just weather) are the primary concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:10:42.209Z","isFirstParty":false}