API संदर्भ
देश के शहरों की रैंकिंग
पिछले पूरे दिन के दैनिक औसत PM2.5 के अनुसार देश के शहरों की रैंकिंग, सबसे प्रदूषित या सबसे साफ़ शहर पहले; केवल बड़े शहर या सभी बस्तियाँ।
देश के शहरों की रैंकिंग
GEThttps://api.atmy.ai/v1/ranking
क्वेरी पैरामीटर
country string आवश्यक
साइट की किसी भी भाषा में देश का नाम या उसका ISO कोड।
order string वैकल्पिक
पहले most_polluted या cleanest।
डिफ़ॉल्ट: most_polluted
settlements string वैकल्पिक
cities — केवल बड़े शहर; all — पर्याप्त सेंसर वाली हर बस्ती।
डिफ़ॉल्ट: cities
limit integer वैकल्पिक
कितने शहर, 50 तक।
डिफ़ॉल्ट: 10
lang string वैकल्पिक
शहर और देश के नामों और पेज लिंक की भाषा।
डिफ़ॉल्ट: en
GET/ranking?country=Germany&limit=10
curl "https://api.atmy.ai/v1/ranking?country=Germany&limit=10"const response = await fetch("https://api.atmy.ai/v1/ranking?country=Germany&limit=10");
const data = await response.json();import requests
data = requests.get("https://api.atmy.ai/v1/ranking?country=Germany&limit=10").json()200उत्तर
{
"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
}
]
}