Support Center

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

401 on API call (free 5 day forecast)

Daria Apr 03, 2018 02:10PM BST

I am getting the 401 error whenever I try to fetch data from this endpoint:${city},${country}&${ API_KEY }&units=metric

This, however, works perfectly when I try to navigate to this (obviously feeding the data for a city, country and API key. If I change the "forecast" to "weather" it also works. I took this endpoint from
The API key was generated few days ago and is working fine on the "weather" endpoint".

How can I fetch this data from your server?

Up 1 rated Down
Pavel Zuykov Apr 03, 2018 04:37PM BST OpenWeatherMap Agent


Thanks for the request.

If you make API call correctly:{city}&{country code}&{ API_KEY }&units=metric

Please notice that the country code should be placed istead of full country name!

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