Support Center

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

Error 401 5Day + 3hours API

Rafael Nov 13, 2017 07:24PM GMT

I´m using API 5 day weather forecast ,

string queryString = ""
+ latitude+ "&lon=" +longitude+ ",&appid=" + key + "&units=metric";

but return error 401 , my Key exist and is valid , what a problem?

i need help.

Up 0 rated Down
Rafael Nov 13, 2017 08:21PM GMT
Now I´m remove "&units=metric", and return cod. 200 , message: 0.0044

Up 0 rated Down
Pavel Zuykov Nov 14, 2017 07:21AM GMT OpenWeatherMap Agent


Does API call works in a browser?

Up 0 rated Down
Steve Penrod Nov 15, 2017 04:41AM GMT
Something has changed recently in your API processing. The handling of city names is now spotty.
The below queries worked up until a day or two ago.

# Example that includes the United States in the query and fails

# Removing the country works

# But this one works with the country in it
Up 0 rated Down
Pavel Zuykov Nov 15, 2017 11:13AM GMT OpenWeatherMap Agent


Please stick to the format of requests that described in the docs:


Do not write full name of the country. You can add just a country code:,US&units=metric&appid=XXXX

We used to have some supporting functionality that was not documented. So, from now please focus on this types of requests.

Thanks for understanding.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found