Pushbuild

Air Quality API - US AQI, Forecasts, PM2.5, Ozone

Official US air quality from EPA AirNow: current AQI and next-day forecasts for every US reporting area (plus US embassy cities abroad), and hourly readings from about 2,000 monitors: AQI, PM2.5, PM10, ozone, NO2, CO and SO2. Filter by state, city, pollutant, AQI or radius.

$0.08 per 1,000 readings

Get an API key

What it returns

Official air quality data from EPA AirNow, the US government's national air quality system run with state, local and tribal agencies. Covers every US reporting area and US embassy and consulate cities abroad. Updated hourly.

Common uses

Health and fitness apps, smart home and HVAC, real estate and travel sites, schools and outdoor event planning, wildfire smoke alerts and dashboards. Pay per row returned.

Request

POST https://api.pushbuild.com/us-air-quality/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
modestring: current, forecast, monitorsWhat to return. Default: "current".
statesstringTwo-letter codes, comma separated, e.g. CA,NY
citystringText match on the reporting area name, e.g. Denver
nearstringOnly areas or monitors within the radius of this point, e.g. 34.05,-118.24 (sorted by distance).
radiusMilesnumberUsed with Near. Default: 50.
pollutantslist of stringsEmpty for all.
minAqiintegerOnly rows at or above this AQI, e.g. 101 for unhealthy for sensitive groups.
sortstring: default, worstIgnored when Near is set. Default: "default".
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/us-air-quality/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.08 per 1,000 readings. No charge for errors or empty searches.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.