In this article
Get Carbon Monoxide Pollution
This endpoint with get Carbon Monoxide Pollution at a specific place and time using the Open Weather Map API.
URL
https://{{HOST}}/weather/openweathermap/pollution/v1/co/{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/co/43,-87/current.json'
-H 'Authorization: Bearer {{access_token}}'
Response
{
"time": "2016-03-03T12:00:00Z",
"location": {
"latitude": 0.0,
"longitude": 10.0
},
"data": [
{
"precision": -4.999999987376214e-7,
"pressure": 1000,
"value": 8.168363052618588e-8
},
...
{
"precision": -4.999999987376214e-7,
"pressure": 681.2920532226562,
"value": 8.686949115599418e-8
}
]
}