Epa Aqs

v0.2.1
io.github.pipeworx-io/epa-aqs Checked 3 days ago Published 1 month ago

EPA 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.

ParameterTypeDescription
list *stringWhich list: "classes" (parameter groups), "parametersByClass" (needs pc), "states", "countiesByState" (needs state), "sitesByCounty" (needs state + county), "cbsas", "pqaos", "mas"
_apiKeystringEPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email>
countystringThree-digit county FIPS, e.g. "183"
emailstringThe email the AQS key was issued to, if not folded into _apiKey
pcstringParameter class, e.g. "CRITERIA", "AQI POLLUTANTS", "ALL" — required for parametersByClass
statestringTwo-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.

ParameterTypeDescription
bdate *stringStart date YYYY-MM-DD (converted to the AQS YYYYMMDD form for you)
edate *stringEnd date YYYY-MM-DD — must be in the SAME calendar year as bdate
param *stringPollutant parameter code(s), comma-separated, max 5. e.g. "44201" (ozone), "88101" (PM2.5), "42401" (SO2), "14129" (lead)
_apiKeystringEPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email>
bboxstringFor by=box: "minLon,minLat,maxLon,maxLat"
bystringGeography: "state" (default), "county", "site", "cbsa", "box"
cbsastringFive-digit CBSA code — required for by=cbsa
countystringThree-digit county FIPS — required for by=county/site
emailstringThe email the AQS key was issued to, if not folded into _apiKey
limitnumberMax sample rows to return (default 200, max 2000)
sitestringFour-digit site number — required for by=site
statestringTwo-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.

ParameterTypeDescription
bdate *stringStart date YYYY-MM-DD
edate *stringEnd date YYYY-MM-DD — same calendar year as bdate
param *stringPollutant parameter code(s), comma-separated, max 5, e.g. "44201"
_apiKeystringEPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email>
bboxstringFor by=box: "minLon,minLat,maxLon,maxLat"
bystringGeography: "state" (default), "county", "site", "cbsa", "box"
cbsastringFive-digit CBSA code
countystringThree-digit county FIPS
emailstringThe email the AQS key was issued to, if not folded into _apiKey
limitnumberMax summary rows to return (default 200, max 2000)
sitestringFour-digit site number
statestringTwo-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.

ParameterTypeDescription
bdate *stringStart date YYYY-MM-DD
edate *stringEnd date YYYY-MM-DD — same calendar year as bdate
param *stringPollutant parameter code(s), comma-separated, max 5, e.g. "44201"
_apiKeystringEPA AQS credential as "<email>:<key>", or just "<key>" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=<your-email>
bboxstringFor by=box: "minLon,minLat,maxLon,maxLat"
bystringGeography: "state" (default), "county", "site", "cbsa", "box"
cbsastringFive-digit CBSA code
countystringThree-digit county FIPS
emailstringThe email the AQS key was issued to, if not folded into _apiKey
limitnumberMax monitor rows to return (default 200, max 2000)
sitestringFour-digit site number
statestringTwo-digit state FIPS