---
title: "Air quality API | APIFor"
description: "Latest air quality readings, one row per station, pollutant and averaging period, with the national index where one applies. 1 credit per call, REST and MCP, one API key."
canonical: "https://apifor.dev/services/air-quality/"
---

1. [Services](https://apifor.dev/services/)
2. [Air quality](https://apifor.dev/services/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-quality 1 credit About $0.001

[Get a free API key](https://app.apifor.dev/register) [Endpoint reference](https://apifor.dev/docs/reference/air-quality/)

## Try it

GET /v1/air-quality

```bash
curl 'https://api.apifor.dev/v1/air-quality?pollutant=no2,pm25' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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

| Endpoint | Credits | About |
| --- | --- | --- |
| GET `/v1/air-quality` | 1 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`](https://apifor.dev/docs/reference/air-quality/#get-air-quality-coverage), free with your API key. [How coverage works](https://apifor.dev/docs/coverage/)

## 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.

## Sources and licences

- **[NEA via data.gov.sg (PSI, PM2.5)](https://data.gov.sg/datasets/d_fe37906a0182569d891506e815e819b7/view)**: Singapore Open Data Licence v1.0
- **[Defra UK-AIR](https://uk-air.defra.gov.uk/data/)**: Open Government Licence v3.0

### Attribution

- Contains information from data.gov.sg, made available under the Singapore Open Data Licence v1.0 https://data.gov.sg/open-data-licence
- © Crown 2026 copyright Defra via uk-air.defra.gov.uk, licenced under the Open Government Licence (OGL)

## Also on MCP

Connect `https://mcp.apifor.dev/mcp` and your agent gets a tool for this service, billed the same way.

[MCP setup](https://apifor.dev/docs/mcp/)

## 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](https://apifor.dev/services/)

- [Weather forecast API](https://apifor.dev/services/weather/)
- [Weather alerts API](https://apifor.dev/services/weather-alerts/)
- [Earthquakes API](https://apifor.dev/services/earthquakes/)
- [Tsunami alerts API](https://apifor.dev/services/tsunami-alerts/)
- [Volcano alert levels API](https://apifor.dev/services/volcanoes/)
