Support Center

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

API for getting weather is not working

dhiraj sharma Oct 07, 2017 07:24AM BST

I have signed up yesterday, i am using the api for getting temperature for cities but its not working its is throwing this error:-"Failed to load http://samples.openweathermap.org/data/2.5/weather?appid=7d8f1880b9da2f513c33f515e21303b3&units=imperial&q=http%3A%2F%2Flocalhost%3A3000%2F%23%2F%3F_k%3D5c714w: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access."

Up 0 rated Down
Pavel Zuykov Oct 09, 2017 11:13AM BST OpenWeatherMap Agent

Hello,

Please use the correct api endpoint and not the smaple!

The real api endpoint:

https://api.openweathermap.org/data/2.5/weather?appid=7d8f1880b9da2f513c33f515e21303b3&units=imperial&q=http%3A%2F%2Flocalhost%3A3000%2F%23%2F%3F_k%3D5c714w:

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