Live data from Hacker News

API Keys

news.ycombinator.com

1–4 of 4 posts

API Keys

#1
WTF is an API key and how does it work? Let's say I have a great idea for an app. Obviously :)

I'm probably going to be using an API key to access OpenAI, or Google, or some other service.

And then I quit, because I have no idea how any of this stuff works...

Re: API Keys

#2
It is an identifier so that an API you call knows who you are and can determine whether you have access to their service.

If you are writing a web app that needs to call an API someone else has written, they may have you request an API key from them. You'll then have the back-end of your app send that key to their service with each request. On their end, they'll match it up to your account, verify you have access to make the request, and determine what response to send back to you.