Blueprint mode is on — see the design decisions behind this site

What is an API? A plain explanation for non-engineers

An API is how two pieces of software talk to each other. Here is what an API is, using an everyday example, how it works, which kinds exist and why you need to make decisions about it when building any digital product.

API stands for Application Programming Interface. In one sentence: an API is the way one piece of software asks another for something and gets an answer.

The restaurant example

In a restaurant you do not walk into the kitchen. You talk to the waiter, place an order and receive the dish. The waiter is the API:

  • The customer is the software that wants something (for example your mobile app).
  • The kitchen is the software or system that does the work (the server, the database).
  • The waiter is the agreement between the two: what can be ordered, how, and what shape the answer comes back in.

The customer does not need to know how the kitchen works. They only need to know the menu.

Examples you see every day

  • A weather app gets a city's temperature from a weather service.
  • An online shop hands payment to a bank gateway.
  • The "Sign in with Google" button works through Google's API.
  • When you submit a form, the browser talks to the site's server API so the data is saved.

What an API request looks like

Most web APIs use the HTTP protocol. A request has four main parts:

PartMeaningExample
Address (endpoint)Where?/orders/123
MethodDo what?GET (read), POST (create), PUT (change), DELETE (remove)
DataWith which information?Name, number, the chosen product
AuthenticationWho are you?An API key or token

The response carries a status code (200 means success, 404 not found, 401 not allowed) and usually a data payload in JSON.

Common kinds

  • REST: the most common. Every thing has an address and you work with HTTP methods.
  • GraphQL: the client says exactly which fields it wants.
  • Webhook: the reverse of the usual: the service tells you when something happens.
  • Internal and public APIs: some are only for your own team, others are used by outsiders too.

Why it matters to a product owner

The API is your product's connection to the world. The decisions around it affect the business directly:

  1. Build speed. If the API contract is written before the build, web and mobile teams work in parallel.
  2. Room to grow. The mobile app, the admin panel and a partner all use one API.
  3. Integration cost. Connecting to accounting, messaging or a payment gateway means working with someone else's API.
  4. Security. Every API is a door; authentication, rate limits and logging must exist from the start (security from day one).
  5. Dependency. Using an outside service's API makes you depend on it. A change or outage affects your product.

Questions to ask your engineering team

  • What does our API accept, and where is it documented?
  • Who can reach it, and how?
  • If an outside service goes down, what does the product do?
  • How many requests per minute can it take?
  • How do we release changes without breaking the previous version?

Summary

An API is the waiter between pieces of software: a clear agreement about what you can ask for and what answer you get. You do not need to code; you only need to know that every digital product is made of several APIs, and decide about them knowingly. A short definition is also in the glossary.

Related service: Custom software development

Written by

Mohammad Ali Eslamipour

Mohammad Ali Eslamipour is a digital product architect who defines, architects and — with his own engineering team — ships AI products, SaaS platforms and web apps.

From idea to a live product

Launch your MVP in 10 to 12 working days.

Build the first version of your product with a defined scope, server and domain for year one and source-code handover — then test it with real users.

  • Price and scope are clear before you pay
  • Staged payment; 40% before final handover
  • The source code and access are yours

From 17,000,000 Toman

See all bundles