Yandex.Weather
评估特定地点的天气状况
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- No
- 分类
- 天气
- 文档 / URL
- https://yandex.com/dev/weather/
简介
Yandex.Weather 提供俄罗斯/独联体地区的天气预报。认证是 Yandex API 密钥,通过自定义请求头发送(无有效密钥的请求返回 403,已实测)。
快速开始
预报(替换 YOUR_KEY):
curl "https://api.weather.yandex.ru/v2/forecast?lat=55.75&lon=37.61" \
-H "X-Yandex-API-Key: YOUR_KEY"
{
"now": 1787448092,
"fact": { "temp": 22, "feels_like": 23, "condition": "clear" },
"forecasts": [ { "date": "2026-08-22", "parts": { "day": { "temp_min": 18, "temp_max": 26 } } } ]
}
认证方式
- 在 yandex.com/dev 注册 → 获取 API 密钥。
- 通过
X-Yandex-API-Key请求头携带(无效/缺失 → 403,已实测)。
速率限制与注意事项
- 免费层:每日调用有限(以文档为准);付费档可扩展。
- 重点是俄罗斯/独联体——其他地区覆盖有限。
- 响应有
fact(当前)和forecasts(7 天,分时段)。
常见问题
Yandex.Weather 免费吗? 免费层带每日限额;更多需要付费。
如何获取密钥? yandex.com/dev → 创建 API 密钥。
认证风格是什么?
X-Yandex-API-Key 请求头(已实测)。