Introduction
Beginning
Access key is required to work with API. The key can be obtained in the personal account of the platform CityAir. More details in Authorization section
Retrieving list of station objects
curl -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" https://mycityair.ru/harvester/v2/Posts
To improve readability of output, install the program jq
curl -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" https://mycityair.ru/harvester/v2/Posts | jq
Response
[
{
"id": 1,
"name": "address",
"description": "any description",
"isOnline": true,
"geo": {
"gmtOffsetSeconds": 25200,
"timeZoneIana": "Europe/Istanbul",
"latitude": 50.01,
"longitude": 60.01
}
}
]