Epa Aqs
v0.2.1EPA AQS MCP — the Air Quality System, EPA's regulatory-grade air monitoring archive
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
aqs_list_parameters
Look up the EPA AQS code lists the other tools in this pack need — pollutant parameter codes, parameter classes, states, counties, sites and monitoring agencies. Call this FIRST to turn "ozone" into 44201 or "North Carolina" into 37. Sourced from the EPA Air Quality System. Requires an EPA AQS email + key.
| Parameter | Type | Description |
|---|---|---|
list * | string | Which list: "classes" (parameter groups), "parametersByClass" (needs pc), "states", "countiesByState" (needs state), "sitesByCounty" (needs state + county), "cbsas", "pqaos", "mas" |
_apiKey | string | EPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email> |
county | string | Three-digit county FIPS, e.g. "183" |
email | string | The email the AQS key was issued to, if not folded into _apiKey |
pc | string | Parameter class, e.g. "CRITERIA", "AQI POLLUTANTS", "ALL" — required for parametersByClass |
state | string | Two-digit state FIPS, e.g. "37" for North Carolina |
aqs_sample_data
Raw measured air-pollutant sample values from EPA AQS for a date range — the regulatory record, by site, county, state or CBSA. AUTHORITATIVE for "what was the actual ozone/PM2.5/lead concentration here on these dates"; this is the quality-assured archive, not the provisional real-time AQI. Sourced from the EPA Air Quality System. Requires an EPA AQS email + key.
| Parameter | Type | Description |
|---|---|---|
bdate * | string | Start date YYYY-MM-DD (converted to the AQS YYYYMMDD form for you) |
edate * | string | End date YYYY-MM-DD — must be in the SAME calendar year as bdate |
param * | string | Pollutant parameter code(s), comma-separated, max 5. e.g. "44201" (ozone), "88101" (PM2.5), "42401" (SO2), "14129" (lead) |
_apiKey | string | EPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email> |
bbox | string | For by=box: "minLon,minLat,maxLon,maxLat" |
by | string | Geography: "state" (default), "county", "site", "cbsa", "box" |
cbsa | string | Five-digit CBSA code — required for by=cbsa |
county | string | Three-digit county FIPS — required for by=county/site |
email | string | The email the AQS key was issued to, if not folded into _apiKey |
limit | number | Max sample rows to return (default 200, max 2000) |
site | string | Four-digit site number — required for by=site |
state | string | Two-digit state FIPS — required for by=state/county/site |
aqs_annual_summary
EPA AQS annual summary statistics for a pollutant and area — arithmetic mean, maximum, 98th/99th percentile, exceedance counts, observation completeness and the certification status behind each. This is what attainment and trend statements are built on. Sourced from the EPA Air Quality System. Requires an EPA AQS email + key.
| Parameter | Type | Description |
|---|---|---|
bdate * | string | Start date YYYY-MM-DD |
edate * | string | End date YYYY-MM-DD — same calendar year as bdate |
param * | string | Pollutant parameter code(s), comma-separated, max 5, e.g. "44201" |
_apiKey | string | EPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email> |
bbox | string | For by=box: "minLon,minLat,maxLon,maxLat" |
by | string | Geography: "state" (default), "county", "site", "cbsa", "box" |
cbsa | string | Five-digit CBSA code |
county | string | Three-digit county FIPS |
email | string | The email the AQS key was issued to, if not folded into _apiKey |
limit | number | Max summary rows to return (default 200, max 2000) |
site | string | Four-digit site number |
state | string | Two-digit state FIPS |
aqs_monitors
EPA AQS monitor metadata for an area — which pollutants are measured where, by which agency, with what method and network membership (NCore, PAMS, SLAMS), the monitoring objective, and each monitor's open and close dates. Use it to find the site codes aqs_sample_data needs and to check whether a place is monitored at all. Sourced from the EPA Air Quality System. Requires an EPA AQS email + key.
| Parameter | Type | Description |
|---|---|---|
bdate * | string | Start date YYYY-MM-DD |
edate * | string | End date YYYY-MM-DD — same calendar year as bdate |
param * | string | Pollutant parameter code(s), comma-separated, max 5, e.g. "44201" |
_apiKey | string | EPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email> |
bbox | string | For by=box: "minLon,minLat,maxLon,maxLat" |
by | string | Geography: "state" (default), "county", "site", "cbsa", "box" |
cbsa | string | Five-digit CBSA code |
county | string | Three-digit county FIPS |
email | string | The email the AQS key was issued to, if not folded into _apiKey |
limit | number | Max monitor rows to return (default 200, max 2000) |
site | string | Four-digit site number |
state | string | Two-digit state FIPS |