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:
| Part | Meaning | Example |
|---|---|---|
| Address (endpoint) | Where? | /orders/123 |
| Method | Do what? | GET (read), POST (create), PUT (change), DELETE (remove) |
| Data | With which information? | Name, number, the chosen product |
| Authentication | Who 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:
- Build speed. If the API contract is written before the build, web and mobile teams work in parallel.
- Room to grow. The mobile app, the admin panel and a partner all use one API.
- Integration cost. Connecting to accounting, messaging or a payment gateway means working with someone else's API.
- Security. Every API is a door; authentication, rate limits and logging must exist from the start (security from day one).
- 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