AirNow - AQI
This API uses the AIRNow API to get the current AQI for a specified zip code.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
format | string | Required |
The response format. |
| distance
| number | | Required
How big of an area should the API search in. Unit = Miles |
| API_KEY
| string | | Required
Authentication Key |
| zipCode
| string | | Required
The specified zip code. |
RESPONSES
status: OK
[{"DateObserved":"2021-06-14 ","HourObserved":20,"LocalTimeZone":"PST","ReportingArea":"San Jose","StateCode":"CA","Latitude":37.33,"Longitude":-121.9,"ParameterName":"O3","AQI":31,"Category":{"Number":1,"Name":"Good"}},{"DateObserved":"2021-06-14 ","HourObserved":20,"LocalTimeZone":"PST","ReportingArea":"San Jose","StateCode":"CA","Latitude":37.33,"Longitude":-121.9,"ParameterName":"PM2.5","AQI":28,"Category":{"Number":1,"Name":"Good"}}]