AccuWeather
天气和预报数据
- 认证方式
- API Key
- HTTPS
- No
- CORS
- Unknown
- 分类
- 天气
简介
AccuWeather 提供当前天气、预报和警报。认证是免费 API 密钥(无效密钥返回 401,已实测)。
快速开始
当前天气(替换 YOUR_KEY):
curl "https://dataservice.accuweather.com/currentconditions/v1/1?apikey=YOUR_KEY"
[
{
"LocalObservationDateTime": "2026-08-22T12:00:00+08:00",
"EpochTime": 1787448092,
"WeatherText": "Sunny",
"Temperature": { "Metric": { "Value": 28.3, "Unit": "C" } },
"IsDayTime": true
}
]
预报:
curl "https://dataservice.accuweather.com/forecasts/v1/daily/5day/1?apikey=YOUR_KEY"
认证方式
- 在 developer.accuweather.com 注册 → 免费 API 密钥。
- 通过
apikey查询参数携带(无效 → 401,已实测)。
速率限制与注意事项
- 免费层:50 次/天(以文档为准);付费档可扩展。
- 流程:从
/locations/v1/search拿位置 key → 天气/预报。 - 位置 key
1是测试值(类似伦敦)。
常见问题
AccuWeather 免费吗? 免费层:50 次/天;更多需要付费。
如何获取密钥? developer.accuweather.com → 注册。
流程是什么? 搜索位置 → 位置 key → 天气端点。
天气 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 7Timer! Weather, especially for Astroweather | No auth | No | Unknown | ↗ |
| Aemet Weather and forecast data from Spain | API Key | Yes | Unknown | ↗ |
| APIXU Weather | API Key | Yes | Unknown | ↗ |
| AQICN Air Quality Index Data for over 1000 cities | API Key | Yes | Unknown | ↗ |
| AviationWeather NOAA aviation weather forecasts and observations | No auth | Yes | Unknown | ↗ |