{"uid":"cap_B1SkAH8DyI5ILElMkCfCe","slug":"environment-screen-air-quality-history-11aaa6f7","name":"Environment Screen Air Quality History","description":"Daily mean PM2.5, PM10, ozone, NO2 and US AQI over a date range, plus the count of days above an AQI threshold.","url":"https://environment-screen.x402tookit.com/air-quality-history?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","required":["lat","lon","start","end"],"properties":{"end":{"type":"string","description":"Last day, YYYY-MM-DD, at most 92 days after start"},"lat":{"type":"number","description":"Latitude"},"lon":{"type":"number","description":"Longitude"},"start":{"type":"string","description":"First day, YYYY-MM-DD (2013 onward)"},"threshold":{"type":"integer","description":"US AQI level to count days above (default 100, range 0-500)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"end":{"type":["null","string"]},"asOf":{"type":["null","string"]},"daily":{"type":["array","null"],"items":{"type":"object","properties":{"date":{"type":["null","string"]},"hours":{"type":["null","number"]},"pm10Mean":{"type":["null","number"]},"usAqiMax":{"type":["null","number"]},"ozoneMean":{"type":["null","number"]},"pm2_5Mean":{"type":["null","number"]},"usAqiMean":{"type":["null","number"]},"nitrogenDioxideMean":{"type":["null","number"]}}}},"start":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"meanPm10":{"type":["null","number"]},"worstDay":{"type":["null","object"],"properties":{"date":{"type":["null","string"]},"maxUsAqi":{"type":["null","number"]}}},"meanOzone":{"type":["null","number"]},"meanPm2_5":{"type":["null","number"]},"meanUsAqi":{"type":["null","number"]},"sourceUrl":{"type":["null","string"]},"threshold":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"daysWithData":{"type":["null","number"]},"daysRequested":{"type":["null","number"]},"concentrationUnit":{"type":["null","string"]},"daysAboveThreshold":{"type":["null","number"]},"meanNitrogenDioxide":{"type":["null","number"]},"daysWithAnyHourAboveThreshold":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.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_gimSe1MfAqn_TP-En8__e","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns daily mean PM2.5, PM10, ozone, NO2, and US AQI values over a date range plus a count of days exceeding a given AQI threshold.","exampleAgentPrompt":"Can you pull the daily air quality history for Los Angeles (34.05, -118.24) from January 1 to March 31, 2024, and tell me how many days the US AQI exceeded 100?","exampleUseCases":[{"title":"Real estate environmental due diligence","prompt":"I'm looking at buying a home in Phoenix, AZ (33.45, -112.07) — can you get me the daily PM2.5 and AQI history for the past 90 days and flag how many days the AQI was above 100 so I can assess air quality there?"},{"title":"Post-wildfire air quality assessment","prompt":"There were wildfires near Portland, OR (45.52, -122.68) this summer — pull the daily AQI and PM2.5 data from July 1 to September 30, 2024, and count how many days were above an AQI of 150 so I can see how bad the smoke was."},{"title":"Annual air quality report for a research site","prompt":"I need a full daily breakdown of PM2.5, PM10, ozone, and NO2 for our monitoring site at latitude 40.71, longitude -74.01 from January 1 through March 31, 2023 — include the worst day and average US AQI for the period."}],"resultDescription":"Returns a structured object containing: daily records with PM2.5 mean, PM10 mean, ozone mean, NO2 mean, US AQI mean and max; summary statistics (mean PM2.5, PM10, ozone, US AQI across the period); the worst day by max AQI; the count of days exceeding the specified AQI threshold; a text summary and verdict; data source URL; and a degraded flag if data quality is reduced.","failureModes":["Missing required parameters (lat, lon, start, end) returns a 400 error","Date range exceeding 92 days returns an error","Start date before 2013 may return no data or an error","Invalid coordinate values outside valid lat/lon bounds may fail","Network or upstream data provider unavailability may return degraded or null fields","Payment failure (x402) returns a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need historical air quality trends over a multi-day period (up to 92 days) for a specific geographic coordinate, including daily breakdowns of multiple pollutants (PM2.5, PM10, ozone, NO2) and a threshold-based day count. Prefer it over current-conditions endpoints when the user needs retrospective analysis, trend data, or exposure assessment over time rather than a real-time snapshot.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:31:09.346Z","isFirstParty":false,"canonicalSlug":"environment-screen-air-quality-history-11aaa6f7"}