Support Center

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

api giving 401 from wget/curl, but working fine from Chrome/Firefox browsers

Dale Jenkins Nov 11, 2017 03:18AM MSK

Making following call to API:

Using wget I receive a 401 Auth Failed message. From Chrome/Firefox the expeceted data is returned.

Is there a UserAgent string that needs to be set, or are there other factors that could be impacting on this?

Up 0 rated Down
Maxim Gushcho Nov 13, 2017 02:12PM MSK OpenWeatherMap Agent


Since the syntax is correct ans it works in the browser, please check the settings that is used for making a request.

The request method should be “GET”.


Up 0 rated Down
Roman Nov 19, 2017 01:39PM MSK
Good day,

I am having same problem.
The request method used is "NODE-FETCH"

Can it be a problem?

Br, Roman.
Up 0 rated Down
Maxim Gushcho Nov 20, 2017 07:54PM MSK OpenWeatherMap Agent


The request Method should be “GET”.


Up 0 rated Down
Philipp Dec 01, 2017 12:54PM MSK
Hello Mr. Gushcho,

i have the same problem. The API-Keys work in the browser, but not with my wget or curl command.

If i try, e.g. curl --request GET,de&APPID=XXXXXXXXX it only says Invalid Key.

It would be very nice if you could help me please.

Thanks in advandce

Up 0 rated Down
Philipp Dec 01, 2017 01:02PM MSK
Sorry for the post, problem is solved....

i forgot the quotes.... it works with


Nevertheless many thanks

Up 0 rated Down
Maxim Gushcho Dec 01, 2017 02:19PM MSK OpenWeatherMap Agent

Hello Philipp,

Nice! Have a good day.

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