Where did the URL came from?
Hi! I took a look at the URL of this video(https://api.openweathermap.org/data/2.5/weather?) in the teachers notes and when I typed it in with my API key, it threw me an error. I tried slicing the URL to like https://api.openweathermap.org/data, and it threw a 404 status code. I was thinking if the URL they used was still valid?
andrenTreehouse Moderator 28,307 Points
The URL comes from the official current weather API documentation. And the URL shown is still the most current version available. The documentation provides info and examples on how to use the API so reading through some of it might help resolve your issue.
I just made a test query using my own key and it worked fine. What error message were you getting and what was the query? If you post the exact URL you used (with the appid redacted of course) then I might be able to point out your issue.