In this article
Get Nitrogen Dioxide Pollution
This endpoint with get Nitrogen Dioxide Pollution at a specific place and time using the Open Weather Map API.
URL
https://{{HOST}}/weatherapi/openweathermap/pollution/v1/no2/{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/no2/43,-87/current.json'
-H 'Authorization: Bearer {{access_token}}'
Response
{
"time": "2016-03-03T12:00:00Z",
"location": {
"latitude": 0.0,
"longitude": 10.0
},
"data": {
"no2":{
"precision":1.436401748934656e+15,
"value":2.550915831693312e+15
},
"no2_strat":{
"precision":2.00000000753664e+14,
"value":1.780239650783232e+15
},
"no2_trop":{
"precision":1.464945698930688e+15,
"value":7.7067618091008e+14
}
}
}