Support Center

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

401 Error

Luis Palafox Apr 19, 2017 05:36PM UTC

My URL was working correctly, but since a couple of days it doesn't work any more.

http://api.openweathermap.org/data/2.5/weather?q=Hermosillo,mx&mode=xml&units=metric&appid=b7359d3782b564e9f9460edf76587eee

It returns a 401 error, I'm sure that my API Key es correct, because it was working well.

Any help?
Thanks

Up 0 rated Down
Maxim Gushcho Apr 20, 2017 08:10AM UTC OpenWeatherMap Agent

Hello,

It should look following:
http://api.openweathermap.org/data/2.5/weather?q=Hermosillo,mx&mode=xml&units=metric&appid={your api key}
Yes, the API key is correct. Do not distribute your API key in the public.

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