https://github.com/fu-hsi/pjp-api
Polish Air Quality API (REST).
https://github.com/fu-hsi/pjp-api
air-quality aqi caqi dust pm10 pollution
Last synced: 2 months ago
JSON representation
Polish Air Quality API (REST).
- Host: GitHub
- URL: https://github.com/fu-hsi/pjp-api
- Owner: fu-hsi
- Created: 2019-01-16T18:40:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-25T16:18:48.000Z (over 7 years ago)
- Last Synced: 2024-01-30T13:27:40.140Z (over 2 years ago)
- Topics: air-quality, aqi, caqi, dust, pm10, pollution
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PJP API
Polish Air Quality API (REST).
## Official API
No special requirements. Available only GET method.
```
http://api.gios.gov.pl/pjp-api/rest/station/findAll
http://api.gios.gov.pl/pjp-api/rest/station/sensors/{stationId}
http://api.gios.gov.pl/pjp-api/rest/data/getData/{sensorId}
http://api.gios.gov.pl/pjp-api/rest/aqindex/getIndex/{stationId}
```
More information: http://powietrze.gios.gov.pl/pjp/content/api.
### Measuring stations
**Request**
```
http://api.gios.gov.pl/pjp-api/rest/station/findAll
```
**Response**
```
[{
"id": 14,
"stationName": "Działoszyn",
"gegrLat": "50.972167",
"gegrLon": "14.941319",
"city": {
"id": 192,
"name": "Działoszyn",
"commune": {
"communeName": "Bogatynia",
"districtName": "zgorzelecki",
"provinceName": "DOLNOŚLĄSKIE"
}
},
"addressStreet": null
}]
```
### Sensors
**Request**
```
http://api.gios.gov.pl/pjp-api/rest/station/sensors/14
```
**Response**
```
[{
"id": 92,
"stationId": 14,
"param": {
"paramName": "pył zawieszony PM10",
"paramFormula": "PM10",
"paramCode": "PM10",
"idParam": 3
}
},
{
"id": 88,
"stationId": 14,
"param": {
"paramName": "dwutlenek azotu",
"paramFormula": "NO2",
"paramCode": "NO2",
"idParam": 6
}
}]
```
### Measurements
**Request**
```
http://api.gios.gov.pl/pjp-api/rest/data/getData/92
```
**Response**
```
{
"key": "PM10",
"values": [
{
"date": "2017-03-28 11:00:00",
"value": 30.3018
},
{
"date": "2017-03-28 12:00:00",
"value": 27.5946
}]
}
```
### Air Quality Index
**Request**
```
http://api.gios.gov.pl/pjp-api/rest/aqindex/getIndex/52
```
**Response**
```
{
"id": 52,
"stCalcDate": "2017-03-28 12:00:00",
"stIndexLevel": {
"id": 2,
"indexLevelName": "Umiarkowany"
},
"stSourceDataDate": "2017-03-28 12:00:00",
"so2CalcDate": "2017-03-28 12:00:00",
"so2IndexLevel": null,
"so2SourceDataDate": "2017-03-28 12:00:00",
"no2CalcDate": "2017-03-28 12:00:00",
"no2IndexLevel": null,
"no2SourceDataDate": "2017-03-28 12:00:00",
"coCalcDate": "2017-03-28 12:00:00",
"coIndexLevel": null,
"coSourceDataDate": "2017-03-28 12:00:00",
"pm10CalcDate": "2017-03-28 12:00:00",
"pm10IndexLevel": null,
"pm10SourceDataDate": "2017-03-28 12:00:00",
"pm25CalcDate": "2017-03-28 12:00:00",
"pm25IndexLevel": null,
"pm25SourceDataDate": null,
"o3CalcDate": "2017-03-28 12:00:00",
"o3IndexLevel": null,
"o3SourceDataDate": "2017-03-28 12:00:00",
"c6h6CalcDate": "2017-03-28 12:00:00",
"c6h6IndexLevel": null,
"c6h6SourceDataDate": "2017-03-28 12:00:00"
}
```
## Demo
http://pjp.powietrze.lomza.pl/