GET /weather/history/:city
支持城市的每小时天气快照,由我们的工作人员从每小时整点开始持续存储。返回温度、体感温度、湿度、降水、风速/风向、天气代码和云量。可通过?start和?end(ISO 8601或YYYY-MM-DD格式)筛选。用于构建长期气候仪表板、比较不同城市随时间变化的条件,以及分析每小时天气模式而无需调用上游存档API。
city
必填
City name (see /weather/cities)
start
可选
Start datetime (ISO 8601 or YYYY-MM-DD)
end
可选
End datetime (ISO 8601 or YYYY-MM-DD)
limit
可选
默认: 500
Max rows (cap 10000)
| 名称 | 必填 | 默认值 | 描述 |
|---|---|---|---|
city |
是 | - | City name (see /weather/cities) |
start |
否 | - | Start datetime (ISO 8601 or YYYY-MM-DD) |
end |
否 | - | End datetime (ISO 8601 or YYYY-MM-DD) |
limit |
否 | 500 | Max rows (cap 10000) |
curl "https://nordapi.ee/api/v1/weather/history/tallinn?limit=24"
curl "https://nordapi.ee/api/v1/weather/history/tallinn?limit=24"
curl "https://nordapi.ee/api/v1/weather/history/oslo?start=2026-04-01&end=2026-04-15"
curl "https://nordapi.ee/api/v1/weather/history/tokyo?limit=10000"
{
"city": "tallinn",
"count": 1,
"data": [
{
"apparent_temperature_c": 5.0,
"cloud_cover_pct": 100.0,
"observed_at": "2026-04-16T20:00:00Z",
"precipitation_mm": 0.0,
"relative_humidity": 91.0,
"temperature_c": 7.3,
"weather_code": 3,
"wind_direction_deg": 27.0,
"wind_speed_kmh": 8.6
}
],
"success": true
}