# Application Programming Interface (API)

> Rules that let one program ask another for data or work. A menu for code.

**Field:** Software Development  
**Category:** APIs  
**Also known as:** API, APIs, Web API

## Think of it like

Think of it like a waiter. You ask from the menu, and the food comes out.

## Definition

An API is a set of rules that lets one program ask another for data or work. It lists what you can ask for and what you will get back. You never see the code inside; you only use the doors it offers. A weather app asks a weather API for today's forecast. Most APIs today are reached over the web with HTTP.

## Example

Lucy's shop calls a payment API to charge a card. Her code sends the amount, and the API answers paid or declined.

## Why it matters

Apps can reuse what others built, like maps, payments and logins. They do not have to write it all again.

## Common mistake

Thinking an API is always on the web. The functions in a code library are an API too.

## Three principles

- **A menu for code.** What you can ask for.
- **Inside stays hidden.** Only the doors show.
- **Mostly over HTTP.** For web APIs.

## Related terms

- [API Endpoint](https://learn.benibix.com/term/development/endpoint)
- [REST API](https://learn.benibix.com/term/development/rest-api)
- [HTTP Request](https://learn.benibix.com/term/infrastructure/http-request)
- [Software Library](https://learn.benibix.com/term/development/library)
- [Third-Party API](https://learn.benibix.com/term/development/third-party-api)
- [API Documentation](https://learn.benibix.com/term/development/api-documentation)

## Told apart from

- [API vs SDK](https://learn.benibix.com/compare/api-vs-sdk): People think an SDK is the API, and it is not. The API is the set of requests a service will answer, and the replies it sends back. An SDK is a library you add to your code that sends those requests for you. You can always call the API without the SDK, but not the other way round.

---

Source: https://learn.benibix.com/term/development/api
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
