In this article
Get Ozone Pollution (OpenWeatherMAP)
This endpoint with get Ozone Pollution at a specific place and time using the Open Weather Map API.
URL
https://{{HOST}}/weather/openweathermap/pollution/v1/o3/{lat},{lon}/{datetime}.json
Method
GET
Required IMS Scopes
- weatherapi_all
URL Path Params
| Name | Description | Schema |
|---|---|---|
| lat required |
latitude coordinates | Location Format |
| lon required |
longitude coordinates | Location Format |
| datetime required |
ISO 8601 Date time in UTC | Date Format |
Request Header Parameters
| Type | Value | Description |
|---|---|---|
| Authorization | Bearer {access_token} required |
IMS access token |
Example
Request
curl -X GET
'https://{{HOST}}/weather/openweathermap/pollution/v1/o3/43,-87/current.json'
-H 'Authorization: Bearer {{access_token}}'
Response
{
"time": "2016-03-03T12:00:00Z",
"location": {
"latitude": 0.0,
"longitude": 10.0
},
"data": 259.3334655761719
}