Air Quality API
The Air Quality API.
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
The Air Quality API.
Endpoints 4
currentConditions
- POSTThe Current Conditions endpoint provides hourly air quality information in more than 100 countries, up to a 500 x 500…
/v1/currentConditions:lookupThe Current Conditions endpoint provides hourly air quality information in more than 100 countries, up to a 500 x 500 meters resolution. Includes over 70…
forecast
- POSTReturns air quality forecast for a specific location for a given time range.
/v1/forecast:lookupReturns air quality forecast for a specific location for a given time range.
history
- POSTReturns air quality history for a specific location for a given time range.
/v1/history:lookupReturns air quality history for a specific location for a given time range.
mapTypes.heatmapTiles
- GETReturns a bytes array containing the data of the tile PNG image.
/v1/mapTypes/:mapType/heatmapTiles/:zoom/:x/:yReturns a bytes array containing the data of the tile PNG image.
API details
- Base URL
https://airquality.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter - Operations
- 4 operations on 4 pathsPOST 3GET 1
- Main resources
- currentConditions 1forecast 1history 1mapTypes.heatmapTiles 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Air Quality API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Air Quality API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “The Current Conditions endpoint provides hourly air quality information in more than 100 countries, up to a 500 x 500…” (POST /v1/currentConditions:lookup), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Air Quality API?
The Air Quality API. It is listed under Maps & location and has 4 endpoints.
Who publishes the Air Quality API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Air Quality API?
Requests go to https://airquality.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Air Quality API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.
How many endpoints does the Air Quality API have?
4 operations on 4 paths (3 POST, 1 GET). The largest groups are currentConditions, forecast, history, mapTypes.heatmapTiles.
Is forking the Air Quality API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.