Support Center

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

Crazy Temperature numbers from API

Oscar Apr 14, 2019 09:16AM BST

When I use the code:
fetch(`http://api.openweathermap.org/data/2.5/weather?${searchMethod}=${searchTerm}&APPID=${appId}&untis=metric`

I get crazy numbers if I search for a zipcode such as '10004' like 287 degrees celsius when it should be 15.
Can onyone spot what I could have done wrong or notify me if there is a better way to do this.

P.S. I have already stated what everything such as searchMethod, searchTerm and appId are.

Up 0 rated Down
Pavel Zuykov Apr 15, 2019 08:48AM BST OpenWeatherMap Agent

Hello,

Thank you for request.

You have mistake in key, untis instead of units. Please fix it and it should work fine.

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