Sviluppatori

Riferimento API

Reti

L’API è divisa per rete: /v1/networks elenca Sensor.Community, AirGradient e Atmy con il numero di sensori e la licenza, e ogni rete ha i propri indirizzi /v1/networks/{network}/sensors e /v1/networks/{network}/sensors/current. Negli altri metodi la rete si sceglie con network=sensor_community, airgradient o atmy.

Elenca le reti

GEThttps://api.atmy.ai/v1/networks

Le reti, i loro sensori e le licenze

GET/networks
curl "https://api.atmy.ai/v1/networks"
200Risposta
{
  "api_version": "2.0",
  "networks": [
    {
      "id": "sensor_community",
      "name": "Sensor.Community",
      "url": "https://sensor.community/",
      "license": "ODbL 1.0 / DbCL 1.0",
      "sensors": 9298,
      "passed": 7383,
      "links": {
        "sensors": "https://api.atmy.ai/v1/networks/sensor_community/sensors",
        "current": "https://api.atmy.ai/v1/networks/sensor_community/sensors/current"
      }
    },
    {
      "id": "airgradient",
      "name": "AirGradient",
      "url": "https://www.airgradient.com/",
      "license": "CC BY-SA 4.0",
      "sensors": 2801,
      "passed": 1644,
      "links": {
        "sensors": "https://api.atmy.ai/v1/networks/airgradient/sensors",
        "current": "https://api.atmy.ai/v1/networks/airgradient/sensors/current"
      }
    }
  ],
  "excluded": "PurpleAir: its terms do not allow redistribution.",
  "attribution": "Sensor data: Atmy (atmy.ai), from the networks named in each sensor's \"network\", under that network's license.",
  "terms": "https://atmy.ai/legal/data/"
}