Developers

API reference

Country ranking

The cities of a country ranked by daily PM2.5 for the last completed day, most polluted or cleanest first; large cities or every settlement.

Country ranking

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

Query parameters

country string required

Country name in any of the site languages, or its ISO code.

order string optional

most_polluted or cleanest first.

Default: most_polluted

settlements string optional

cities — large cities only; all — every settlement with enough sensors.

Default: cities

limit integer optional

How many cities, up to 50.

Default: 10

lang string optional

Language of city and country names and of the page link.

Default: en

GET/ranking?country=Germany&limit=10
curl "https://api.atmy.ai/v1/ranking?country=Germany&limit=10"
200Response
{
  "country": "Germany",
  "date": "2026-10-26",
  "period": "2026-10-26T00:00:00Z/2026-10-27T00:00:00Z",
  "order": "most_polluted",
  "settlements": "cities",
  "unit": "ug/m3",
  "method": "datahub_daily",
  "category_scale": "US_EPA_2024",
  "count": 76,
  "cities": [
    {
      "rank": 1,
      "id": 52005,
      "name": "Flensburg",
      "pm25": 39.2,
      "level": "unhealthy_for_sensitive_groups",
      "sensors": 10
    },
    {
      "rank": 2,
      "id": 52151,
      "name": "Würzburg",
      "pm25": 22.2,
      "level": "moderate",
      "sensors": 5
    }
  ]
}