time range by date
POST https://airquality.googleapis.com/v1/history:lookup
The history
endpoint provides historical hourly air quality information for a specific location, for a given time range, up to a maximum of 30 days. You can control the which AQIs and pertinent information are returned (such as pollutants concentration level and health recommendations).
Request Body
{"period"=>{"startTime"=>"2023-09-10T08:00:00Z", "endTime"=>"2023-09-10T12:00:00Z"}, "pageSize"=>2, "pageToken"=>"", "location"=>{"latitude"=>38.876491, "longitude"=>-77.1794077}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |