Trusted answers to developer questions

What is an API key?

Free System Design Interview Course

Many candidates are rejected or down-leveled due to poor performance in their System Design Interview. Stand out in System Design Interviews and get hired in 2024 with this popular free course.

API stands for Application Programming Interface. In short, API is the protocol for communication between different applications.

For example: A software developer might use a weather API like darksky to fetch weather information for his/her weather reporting app.

How do API keys work?

svg viewer

In order to call an API, the “caller” has to send unique identifying information as an identifier to the API service provider. This identifier is called an API key.

There are two main functions of an API key:

Recognition: To allow the service provider to identify the calling user/application. This information allows the service provider to track calls by individual caller, monitor trends, and ensure the caller doesn’t “abuse” the resource.

Access control: To allow the service provider to grant access to the calling user/application.

RELATED TAGS

api key
databases
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?