API リファレンス
天気と汚染物質蓄積の予報
都市の今後の天気を最大72時間先まで提供します。気温、風、湿度、降水量、汚染物質蓄積指数0–100 — 天気によって粒子が地表付近にどの程度とどまるかを示します。気象条件に基づく推定であり、PM2.5の予報ではありません。
天気と汚染物質蓄積の予報
GEThttps://api.atmy.ai/v1/air-quality/forecast
クエリパラメーター
city string 任意
サイトのいずれかの言語での都市名、slug(国/都市)、または id。
country string 任意
同名の都市を区別するための国名または slug。
hours integer 任意
先の時間数、72 まで。
既定値: 24
lang string 任意
都市名・国名とページリンクの言語。
既定値: en
GET/air-quality/forecast?city=germany/berlin&hours=24
curl "https://api.atmy.ai/v1/air-quality/forecast?city=germany/berlin&hours=24"const response = await fetch("https://api.atmy.ai/v1/air-quality/forecast?city=germany/berlin&hours=24");
const data = await response.json();import requests
data = requests.get("https://api.atmy.ai/v1/air-quality/forecast?city=germany/berlin&hours=24").json()200レスポンス
{
"city": {
"id": 50037,
"slug": "germany/berlin",
"name": "Berlin",
"country": "Germany",
"timezone": "Europe/Berlin",
"center": {
"lat": 52.5073,
"lon": 13.3979
},
"page": "https://atmy.ai/air-quality/germany/berlin/"
},
"generated_at": "2026-10-27T11:07:04+00:00",
"local_time": "2026-10-27 12:07",
"air_now": {
"value": 3.8,
"min": 0,
"max": 105.3,
"sensors": 173,
"level": "good",
"approximate": true,
"basis": "mean_of_latest_per_sensor",
"snapshot_at": "2026-10-27T11:00:01.147Z"
},
"weather_now": {
"temp": 14,
"feels_like": 11,
"humidity": 62,
"pressure": 1020,
"wind": 3,
"gust": 8,
"clouds": 90,
"precipitation": 0,
"condition": "cloudy",
"icon": "03d",
"wind_deg": 185,
"weather_id": 803
},
"hours": [
{
"time": "2026-10-27T11:00:00Z",
"temperature_c": 13,
"wind_m_s": 3.1,
"gust_m_s": 7.6,
"humidity_percent": 63,
"clouds_percent": 87,
"precipitation_mm": 0,
"accumulation_risk": 6
},
{
"time": "2026-10-27T12:00:00Z",
"temperature_c": 14,
"wind_m_s": 3.2,
"gust_m_s": 7.2,
"humidity_percent": 64,
"clouds_percent": 77,
"precipitation_mm": 0,
"accumulation_risk": 6
}
],
"accumulation_risk": {
"scale": "0-100",
"meaning": "How strongly the weather (calm, inversion, humidity) keeps particles near the ground: low disperses them, high traps them. A weather estimate, not a PM2.5 forecast."
},
"methodology": "https://api.atmy.ai/air-quality/methodology"
}