我对每小时天气预报的OpenWeatherMap应用编程接口有一个问题。我从这个api检索了5天/3小时的天气数据。但现在我想要每天的天气预报。我正在使用这个api,但这个api给了我这个错误,我尝试了很多次,但它给了我同样的错误。
{
"cod": 401,
"message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."
}同时,我正在使用这个api获取每天的天气预报
https://pro.openweathermap.org/data/2.5/forecast/hourly?lat=21&lon=39&appid=58b73781d0f050d557b4ac143bb61b0c请建议我一些解决方案,为什么我不能得到对每日天气预报的回应。
发布于 2021-11-17 13:23:14
The documentation states:
在以下情况下,您可能会得到错误401:
中检查您的订阅
如果您订阅了openweathermap api,它将为您提供访问数据的api密钥。
https://stackoverflow.com/questions/67410117
复制相似问题