{"uid":"cap_0QNuaTBpK4ByqOa_M-ipW","slug":"tbs-weather-climate-api-air-quality-3349efd2","name":"TBS Weather & Climate API – Air Quality","description":"Air quality, pollution and environmental data for any city or lat/lon. Returns European and US AQI (air quality index), particulate matter PM2.5 and PM10, ozone (O3), nitrogen dioxide (NO2), sulphur dioxide (SO2), and carbon monoxide (CO). Real-time index for health, allergy, pollution-monitoring and environmental agents.","url":"https://x402.tbs-digital.com/weather/air-quality?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"lat":{"type":"number","description":"Latitude -90..90 (requires lon)"},"lon":{"type":"number","description":"Longitude -180..180 (requires lat)"},"city":{"type":"string","description":"City name (alternative to lat/lon)"},"timezone":{"type":"string","description":"Optional IANA timezone"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"payer":{"type":"object","properties":{"address":{"type":"string","nullable":true},"network":{"type":"string"}}},"source":{"type":"string"},"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"name":{"type":"string"},"country":{"type":"string"}}},"request_id":{"type":"string"},"air_quality":{"type":"object"},"generated_at":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"payer":{"address":"0x0000000000000000000000000000000000000000","network":"base"},"source":"open-meteo","location":{"lat":48.85,"lon":2.35,"name":"Paris","country":"FR"},"request_id":"0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55","air_quality":{"co":140,"no2":12,"so2":1.2,"pm10":9.4,"ozone":68,"pm2_5":5.1,"aqi_us":35,"aqi_european":20},"generated_at":"2026-08-09T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PQpKT9AKzc6U68MQWHxBb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time air quality index (European and US AQI), particulate matter (PM2.5, PM10), ozone, NO2, SO2, and CO for any city or lat/lon coordinate.","exampleAgentPrompt":"What's the current air quality in Chicago — give me the US AQI, PM2.5, PM10, and ozone levels?","exampleUseCases":[{"title":"Outdoor exercise safety check","prompt":"Is the air quality good enough to go for a run outside in Los Angeles today? I want the US AQI and PM2.5 levels."},{"title":"Allergy and pollution alert agent","prompt":"Check the air quality at latitude 48.8566, longitude 2.3522 — that's Paris — and tell me the NO2, ozone, and European AQI readings so I can warn allergy sufferers."},{"title":"Industrial site environmental compliance","prompt":"Pull the current SO2 and CO pollution readings for the area near Sheffield, UK — I need them for an environmental compliance report."}],"resultDescription":"Returns a JSON object with the location (name, country, lat/lon), a timestamp, and an air_quality block containing European AQI, US AQI, PM2.5, PM10, O3, NO2, SO2, and CO values. Also includes request metadata such as request_id and payer address.","failureModes":["Invalid or unresolvable city name returns an error or empty location","Lat/lon out of range (-90..90, -180..180) returns a validation error","Missing both city and lat/lon returns a required parameter error","Coverage gaps for remote areas may return null or missing pollutant values","Network or upstream data source outages may return a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need real-time, structured air quality and pollution data (AQI, particulates, gases) for any global city or coordinate, especially when building health, allergy, environmental monitoring, or outdoor-activity recommendation agents. It provides both European and US AQI standards in a single call, making it suitable for international applications. Prefer over general weather endpoints when pollution-specific metrics (PM2.5, PM10, NO2, SO2, CO, O3) are the primary requirement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:55:01.089Z","isFirstParty":false,"canonicalSlug":"tbs-weather-climate-api-air-quality-3349efd2"}