 Welcome back. I'm Dan and I'm Nathan. Today we're going to be talking about API keys. In the last video, if you recall, we had a data frame full of cities and prices of iPhone 5S's. Essentially what we want to do here is, since we're going to eventually want to put these cities on a map, we need to get lat longs for those cities. To do that we're going to use the Google API system, specifically the Google Maps API. So let's go make a key and store it in our vault behind us. Alright, let's go. So the first thing you're going to want to do is pull up console.developers.google.com. It may ask you to sign in. I'm already signed in here. If you don't already have a project established, Google will probably prompt you to start one. So here I'm just going to click create project. What should we call this one? You just give it a project name. It doesn't make too big of a difference. Maybe goat's milk. Goat's milk. There you have it, folks. Okay, goat's milk 144902. We're going to create that. And it's just going to take a couple of minutes to get that created. Once it's created, it'll drop you into the API's key, manager. And from here we can just jump right on down into credential on the left. So yeah, right over here on the left you can see credentials. We'll click on that. And with the new project, we of course don't have any credentials yet. So we're going to create a new credential. Scroll down to the bottom, create credentials. And what we want is an API key in this case. So we'll go ahead and click on that. It's going to create one. This is automatically created for you. And then you can just copy this along. And then we're going to store it inside of the environmental variables so that in case you need it in some public code or anything, it's not just publicly visible. Yes, go ahead and pull up a terminal. The way to do this in a temporary way is just to type in export the name of the environmental variable. So in this case, we'll just call it API key. And set that equal to and I'll just copy and paste that API key that Google put pasted to my clipboard. One thing you do need to get rid of the space between the equal sign and the key, you can go ahead and enter. We can check to make sure that worked by just doing a little simple echo, echo dollar sign API key. And there it the standard output is what I input. So in the way we access this in Python is pretty simple. We use the OS library. It's a little import OS. So import OS and then an OS dot environmental environment. And then you pass in the name of your key API key. And sure enough, and hit enter, we can see we have access to it. And there it is. So moving forward, we'll use this as our key in sight of accessing Google's APIs to find some latitude and longitude of all the cities. Join us next time. Thanks for joining us. And be sure to hit subscribe. We'll see you on the next video.