aqs_sample_data_by_cbsa
Retrieve air quality sample measurements from all monitoring sites within a Core Based Statistical Area (CBSA) for specified parameters and date ranges.
Instructions
Get raw sample data for all monitoring sites in a Core Based Statistical Area (CBSA). WARNING: Sample data can be very large for metropolitan areas. Strongly recommend limiting date ranges to one week or one month. Returns individual sample measurements from all sites in the specified CBSA.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Email address for API authentication. Optional if AQS_EMAIL environment variable is set. | ||
| key | No | API key for authentication. Optional if AQS_API_KEY environment variable is set. | |
| param | Yes | Parameter code (e.g., 44201 for Ozone, 88101 for PM2.5, 42401 for SO2, 42101 for CO, 42602 for NO2, 81102 for PM10). | |
| bdate | Yes | Begin date in YYYYMMDD format. Must be in the same calendar year as edate. | |
| edate | Yes | End date in YYYYMMDD format. Must be in the same calendar year as bdate. | |
| cbsa | Yes | Core Based Statistical Area code (e.g., "31080" for Los Angeles-Long Beach-Anaheim). |