Skip to content
BENIBIX Learn

Application Programming Interface (API)

Development🔌 APIsAPI Basics

Also known as API, APIs, Web API

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

Think of it like

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

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.

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.

Common mistake

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

Key takeaways

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

Compare