From the course: Introduction to Web APIs

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Secure authentication keys

Secure authentication keys - REST Tutorial

From the course: Introduction to Web APIs

Secure authentication keys

- [Instructor] One thing that's important to talk about a little more is your API key. Remember, many APIs, like the Giphy API we've been working with, require users to have a key in order to use the API, and that key is unique to you. It also generally should be private to you. But let's take a look at the developer tools in the browser. Click on the Sources tab. In the left sidebar, we can find all the files for our site, including the script.js file. Let's click on that file. Here we see our JavaScript code and right here we see my unique private API key. It's discoverable to anyone viewing my site. This isn't a problem for me in this case because before this course even publishes, I'll delete my account with Giphy. But if I didn't, someone else could potentially use my API key to access the Giphy API, and if they did anything bad or just violated Giphy's terms and conditions, it would look like I was…

Contents