Your food order touches half a dozen companies
Order dinner on a delivery app and watch what happens. A map shows the restaurant. You pay with a card or UPI. A text message confirms the order. A little scooter crawls across the screen towards your house.
The delivery company did not build the map. It does not run a bank. It does not operate a mobile network. It built the part about food, and borrowed everything else from companies that specialise in it.
The borrowing happens through APIs. They are the reason a small team can launch a product that would once have needed a thousand engineers, and the reason so much software stops working at the same moment when one big provider has a bad day.
So what is one?
An API is a contract, not a technology
API stands for Application Programming Interface. The name is unhelpful. Here is a better way in.
An API is an agreement between two programs. One side says: here is exactly what you may ask me for, here is how to ask, and here is what I promise to send back. The other side writes its software to follow those rules.
Figure 1. An illustrative example. Each side knows its own business and nothing about the other's. The API is the only place they meet.
Notice what the food app does not need. It does not need to understand banking, fraud detection, or how card networks settle. It needs to know one sentence: "charge this amount to this card." Everything behind that sentence is somebody else's problem.
That is the real idea. An API lets you use a capability without understanding, building, or even seeing how it works.
Stripe, a payments company used by millions of businesses, describes it in the same terms: "an API represents a contract for communication that can't be changed without considerable cooperation and effort."
The waiter analogy
Figure 2. The classic analogy, with its limit marked.
In a restaurant you do not walk into the kitchen and start cooking. You read a menu, tell the waiter what you want, and the waiter brings it. The kitchen can be reorganised, the chef can change, the stove can be replaced, and none of it affects you as long as the menu stays the same.
The API is the waiter. The documentation is the menu.
Where the analogy breaks down matters. A good waiter can interpret "the usual" or "something light". An API cannot. Ask for temperatur when the menu says temperature and you get an error, not a helpful guess. Programs follow the contract to the letter.
What actually travels: a request and a response
Most APIs you will meet run over the same system your browser uses to load web pages, called HTTP. It works in pairs. In Mozilla's reference description: messages sent by the client are called requests, and the messages the server sends back are called responses.
Figure 3. A simplified journey, with illustrative values. Real systems put more machinery between these boxes.
A request has a few parts:
- A method, which is the verb.
GETreads something.POSTcreates something.PUTorPATCHchanges it.DELETEremoves it. - An address, which says what you are acting on.
- Usually a key, which is a long secret string proving who is asking.
- Sometimes a body, carrying details such as an amount.
A response has two:
- A status code, a three-digit number that says how it went.
- The data, normally in a tidy text format called JSON that programs can read easily.
The codes are worth learning
You have met one already: 404, the "page not found" of the web. The first digit tells you most of what you need.
| Code | Meaning | Whose problem |
|---|---|---|
| 200 | OK. Here is what you asked for. | Nobody's |
| 401 | Unauthorized. I do not know who you are. | Yours: missing or wrong key |
| 403 | Forbidden. I know who you are, and you may not do this. | Yours: no permission |
| 404 | Not found. That thing does not exist. | Yours: wrong address |
| 429 | Too many requests. Slow down. | Yours: you hit a limit |
| 500 | Server error. Something broke on our side. | Theirs |
Roughly: codes starting with 2 mean success, 4 means the caller made a mistake, and 5 means the provider did.
We tried it, and got told off
To check our own explanation, we called a free public weather API while writing this article, asking for the current temperature in Delhi.
It did not send the temperature. It sent this:
HTTP 429
{"error":true,"reason":"Daily API request limit exceeded. Please try again tomorrow."}
We had not made many requests. But we were calling from a shared cloud address, and other people using the same address had already used up the day's free allowance. So the API did what its contract says it will do, and refused politely.
Then we asked for an address that does not exist:
HTTP 404
{"error":true,"reason":"Not Found"}
Neither was the answer we wanted. Both are the system working properly. A status code and a clear reason are part of the promise too, and the limit is part of the contract. Free services ration their generosity; paid ones meter it.
Under the hood: why keys and limits exist
Three mechanisms sit at almost every API's front door.
Keys identify you. A key is a password for programs. It lets the provider know who is calling, what they are allowed to do, and whom to bill. This is why leaked API keys are serious: anyone holding yours can act as you, and you get the invoice.
Rate limits protect the provider. If one customer's buggy code sends a million requests a minute, everyone else should not suffer. Limits cap how fast each caller may go.
Versions protect you. Remember that the contract cannot change casually. If a provider renames a field, every program relying on the old name breaks. Careful providers therefore publish changes as new versions and keep the old ones working. Stripe says it has "maintained compatibility with every version of our API since the company's inception in 2011". That is unusual, and it is a large part of why developers trust it with their money.
One more idea is worth knowing because it shows how much thought goes into a good API. Networks fail. Suppose your app sends "charge ₹450", the connection drops, and you never hear back. Was the customer charged? If you simply try again, you might charge twice. Payment APIs solve this with an idempotency key: a unique label you attach to the request, so that, in Stripe's words, you can "safely repeat the request without risk of creating a second object". The same request sent twice counts once.
The bigger picture: why businesses care
APIs changed what a company has to build. Payments, maps, text messages, email delivery, login, video calls, and now AI models can all be rented by the request. A founder can assemble a product out of other companies' specialisms and spend their own effort on the one thing that is new.
They also changed what a company can sell. Many of the most valuable software businesses do not have an app most people would recognise. Their product is the API. Their customers are other programs.
And they are how AI reaches into the real world. When an AI assistant "checks your calendar" or "sends an email", it is calling an API. An AI agent is, in large part, a language model that has been handed a list of APIs it is allowed to use.
The other side: what you give up
Renting has a price beyond the invoice.
- You inherit their outages. If your payment or login provider goes down, so do you, and there is little you can do but wait.
- The terms can change. A provider can raise prices, tighten limits, or withdraw a feature. Products built entirely on one company's API exist at that company's pleasure.
- Your data leaves the building. Whatever you send to an API is now held by someone else. With personal data, that carries legal duties.
- You are trusting their security as well as your own.
None of this is a reason to avoid APIs. It is a reason to know which ones your business could not survive without.
The SaaS100 perspective
This section is our analysis, not established fact.
We think the most useful question about any API is not "what can it do?" but "what happens to us if it changes?"
For each API a product depends on, we would want three answers written down.
- What breaks if it is down for an hour? If the answer is "everything", build a fallback: a queue that retries later, a cached copy, or a plain message to the user.
- What would it cost to switch? Keep each provider behind a thin layer of your own code, so that replacing it means changing one place and not five hundred.
- What are we sending them? Send the minimum, and know their retention terms.
For a non-technical founder, the practical skill is not writing API calls. It is reading a provider's documentation, pricing page, and status history before committing to it. A clear, stable, well-documented API is a sign of a company that will be pleasant to depend on. A confusing one is a preview of the next two years.
What to take away
An API is a promise between two programs: ask in this way, and you will get this back.
That simple idea is why software can be built from parts, why small teams can do large things, and why a failure at one company can ripple across thousands of others. The technology underneath is ordinary. The contract is what matters, and like any contract, it is worth reading before you sign.
Quick questions
Is an API the same as a website? No. A website is designed for people to look at. An API is designed for programs to talk to. Many companies offer both, built on the same underlying system.
What is a "REST API"? The most common style of web API. Things are given addresses, and you act on them with a small set of standard verbs such as GET and POST.
Do I need to be a programmer to use one? To call one directly, a little. But tools such as automation platforms let you connect APIs without writing code, and understanding the request and response model is enough to know what is possible.
Sources and further reading
- MDN Web Docs, "An overview of HTTP". https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Overview
- MDN Web Docs, "HTTP response status codes". https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status
- Stripe, "APIs as infrastructure: future-proofing Stripe with versioning". Source for the contract description and the compatibility statement. https://stripe.com/blog/api-versioning
- Stripe API reference, "Idempotent requests". https://docs.stripe.com/api/idempotent_requests
- Stripe API reference, introduction (an example of a well-documented REST API). https://docs.stripe.com/api
- Open-Meteo, free weather API (the service called in the example). https://open-meteo.com/
Disclosure: the two error responses shown are real replies received by SaaS100 on 14 November 2026. The values in the figures are illustrative.
Planning a product that depends on third-party APIs and want the integration designed to survive their bad days? Talk to SaaS100 Studio.
