Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Invalid API Key: Requests return code 401 error forever. [Historical Data]

RobertZJU Jan 07, 2019 03:51AM GMT

Hello there.

I am using historical weather API trying to get weather Information with a specific time and geographic coordinate. But each time I try to call the API, it returns notice suggesting that my API Key is invalid.
It goes like this, like many others may have encountered in the forum:
```JSON
{"cod":401,"message":"Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}
```
My url is as follows:
https://api.openweathermap.org/data/2.5/history/city?lat=120&lon=30&type=hour&start=1369728000&cnt=1&APPID=8xxxxxxxxxxxxxxxx (8xxxxx... is my API Key)

I tried https and http, as well as history.openweathermap.org and api.openweathermap.org, but none of them work.
It's been days since I registered an API Key. Thus, I believe it's been activated.

I am wondering if any one can help with the issue? A lot of thanks.

Up 0 rated Down
Pavel Zuykov Jan 08, 2019 05:57AM GMT OpenWeatherMap Agent

Hello,

History API is not available for free accounts: https://openweathermap.org/price

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete