From the course: Skill Up with Python: Hands-On Web Development Projects
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Load data from a weather API - Python Tutorial
From the course: Skill Up with Python: Hands-On Web Development Projects
Load data from a weather API
- All right, so now that we know how to make requests from inside a Python program, we're going to see how to use this to actually start loading data from an external API, right? That is basically an API, a server that we ourselves don't own, but that provides some sort of useful data. Now the one that we're going to be using here, of course, is the weather, the open weather API. And in order to follow along here, what you're going to need to do, and let's go over to here, is create an account and get an an API key. Now basically this API key, this API key is just a unique identifier. It's sort of like your password for using this API. And it's the way that the open weather API, as well as pretty much any other API, makes sure that you're not using lots and lots of data, making lots and lots of requests to their API. So, anyway, you're going to need to do that. Really just go to open weather map.org and create an account and then you should be able to go to your account, and under API…