{"uid":"cap_pOwWDnc6oGlswOSUF9xY_","slug":"statepulse-air-quality-lookup-52e782f8","name":"StatePulse Air Quality Lookup","description":"Retrieves live localized air quality indices (AQI) and pollutant levels for a given latitude/longitude using OpenAQ.","url":"https://statepulse-api.hahavoid0.workers.dev/environment/air-quality","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"result":{"aqi":42,"label":"Good","coordinates":{"lat":34.05,"lng":-118.24},"measurements":[{"unit":"µg/m³","value":9.8,"parameter":"pm25"}]},"supported":true,"confidence":"medium"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sFxTUNIZsJ8zs1YcrGmgs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time air quality index (AQI), label, and pollutant measurements (e.g. PM2.5) for a given geographic coordinate","exampleAgentPrompt":"What's the current air quality index at coordinates 34.05 latitude, -118.24 longitude — is it safe to be outside right now?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the AQI score (integer), a human-readable air quality label (e.g. 'Good'), the queried coordinates, a list of pollutant measurements including parameter name, value, and unit (e.g. PM2.5 in µg/m³), whether the location is supported, and a confidence level string.","failureModes":["Location not supported — 'supported: false' returned with no AQI data","Coordinates out of valid range — bad request or error response","No recent sensor data available for the region — low confidence or partial result","Payment failure via x402 — request rejected before processing","Network timeout on upstream air quality data source"],"whenToPreferThis":"Use this endpoint when an AI agent needs real-time, pay-per-call air quality data keyed to a specific geographic coordinate without requiring account setup. Prefer this over subscription-based AES services when cost-per-call is acceptable and no API key management is desired. Best suited for spot checks rather than continuous polling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:57:16.535Z","isFirstParty":false}