Support Center

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

OpenWeatherMap not returning metric despite having included necessary parameter

John Woods May 09, 2019 08:08PM BST

I was working on some code that used the OpenWeatherMap API. I need my data to be in Celsius, so I included the necessary &units=metric as said on their site.

api.openweathermap.org/data/2.5/weather?id=XXX&appid=XXX&units=metric
However, this returns:

{"error": "404"}
Furthermore, I tried without including the `&units=metric` parameter and everything works just fine.

So what exactly is the problem?
Thanks in advance.

Up 0 rated Down
Pavel Zuykov May 13, 2019 09:25AM BST OpenWeatherMap Agent

Hello,

Thank you for request.

Could you please send request example with city IDs and other data on info@openweathermap.org?

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