AI-generated Key Takeaways
-
The Air Quality API provides access to current, forecast, and historical air quality data.
-
Developers can retrieve hourly air quality information for numerous locations worldwide.
-
The API offers endpoints for querying air quality forecasts and historical records within specific timeframes.
-
It includes functionality to access heatmap tiles for visualizing air quality data on maps.
-
The service is accessible through the endpoint
https://airquality.googleapis.com
and is best utilized with Google-provided client libraries.
The Air Quality API.
- REST Resource: v1.currentConditions
- REST Resource: v1.forecast
- REST Resource: v1.history
- REST Resource: v1.mapTypes.heatmapTiles
Service: airquality.googleapis.com
To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.
Service endpoint
A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:
https://airquality.googleapis.com
REST Resource: v1.currentConditions
Methods | |
---|---|
lookup |
POST /v1/currentConditions:lookup The Current Conditions endpoint provides hourly air quality information in more than 100 countries, up to a 500 x 500 meters resolution. |
REST Resource: v1.forecast
Methods | |
---|---|
lookup |
POST /v1/forecast:lookup Returns air quality forecast for a specific location for a given time range. |
REST Resource: v1.history
Methods | |
---|---|
lookup |
POST /v1/history:lookup Returns air quality history for a specific location for a given time range. |
REST Resource: v1.mapTypes.heatmapTiles
Methods | |
---|---|
lookupHeatmapTile |
GET /v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y} Returns a bytes array containing the data of the tile PNG image. |