1. Services
  2. Air quality

Air quality API

Latest air quality readings, one row per station, pollutant and averaging period, with the national index where one applies.

GET /v1/air-quality1 creditAbout $0.001

Try it

GET/v1/air-quality
curl 'https://api.apifor.dev/v1/air-quality?pollutant=no2,pm25' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "gb-4886",
      "country": "GB",
      "station": "Aberdeen Erroll Park",
      "latitude": 57.1574,
      "longitude": -2.09477,
      "pollutant": "no2",
      "value": 26.775,
      "unit": "µg/m³",
      "averaging": "1h",
      "index": 1,
      "measured_at": "2026-11-30T16:00:00.000Z",
      "rules": {
        "regime": "DAQI",
        "legal_basis": "Defra Daily Air Quality Index (COMEAP 2011). index is set only for NO2, the one pollutant whose DAQI band uses the hourly mean",
        "effective_from": null,
        "effective_to": null,
        "source_url": "https://uk-air.defra.gov.uk/air-pollution/daqi"
      }
    },
    {
      "id": "sg-north-pm25-24h",
      "country": "SG",
      "station": "Singapore North",
      "latitude": 1.41803,
      "longitude": 103.82,
      "pollutant": "pm25",
      "value": 9,
      "unit": "µg/m³",
      "averaging": "24h",
      "index": 39,
      "measured_at": "2026-11-30T16:00:00.000Z",
      "rules": {
        "regime": "PSI",
        "legal_basis": "NEA Pollutant Standards Index (PSI), 24-hour and sub-indices",
        "effective_from": null,
        "effective_to": null,
        "source_url": "https://www.haze.gov.sg/"
      }
    }
  ],
  "meta": {
    "total": 2,
    "page": 1,
    "per_page": 50,
    "total_pages": 1,
    "attribution": {
      "source": "National Environment Agency via data.gov.sg (https://data.gov.sg); Defra UK-AIR (https://uk-air.defra.gov.uk)",
      "licence": "SG: Singapore Open Data Licence v1.0; GB: Open Government Licence v3.0",
      "notice": "Contains information from the PSI and PM2.5 datasets accessed from data.gov.sg (National Environment Agency), made available under the te..."
    }
  }
}

A real response from our OpenAPI file, with long lists and strings shortened.

Endpoints and price

EndpointCreditsAbout
GET /v1/air-quality1 credit$0.001
GET /v1/air-quality/coverage (Free)Free$0

USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.

Coverage today

Singapore and United Kingdom.

Leave country out to get every covered country, or pass one to narrow it.

Sources, row counts and country-only fields per country: GET /v1/air-quality/coverage, free with your API key. How coverage works

Limits

  • Read live and cached for 5 to 15 minutes.
  • Hourly data can be provisional.
  • index follows the national scheme named in rules.regime, and is null where it does not apply.

Questions

Which pollutants are there?

psi, pm25, pm10, no2, o3, so2 and co, depending on the country.

Do I have to credit the source?

Yes. The licence notices are in every response. Keep them when you show the data.

Related services

All services