An API, short for application programming interface, is the agreed way one piece of software asks another for information or tells it to do something. When an online store books a courier and receives a tracking number without anybody typing it, an API carried the request and the answer. Business owners meet the word in proposals, in plugin settings and in phrases such as Conversions API, usually without anybody explaining what it means.
In short
- The agreed way two systems exchange requests and answers.
- It connects stores, gateways, couriers and ad platforms.
- Access is controlled with keys that work like passwords.
- Every connection needs somebody to keep it working.
What an API actually does
The simplest picture is a counter between two kitchens. One system places a request in a format both sides have agreed on: send me this order, create this shipment, record this payment. The other system checks who is asking and whether they are allowed, does the work, and hands back an answer.
Neither side needs to know how the other is built. The store does not know how the courier plans its routes, and the courier does not know which platform the store runs on. They only need to agree on the request and the answer, which the company providing the API publishes in its documentation.
The answers usually come back as structured text that a program can read, not as a page meant for people. That is why an API has no design of its own: it is the part of a service that only other software ever sees.
That separation is why systems from different companies can work together at all, and why a business can replace one of them without rebuilding the others.
Where a business meets one
Most small businesses already rely on several, usually without seeing them.
- Payments. A checkout passes the card or wallet payment to a payment gateway through its API and receives an approval or a refusal.
- Delivery. A store books a pickup, prints the label and pulls back the tracking updates from a courier.
- Products. Catalogues are sent to Google and Meta as a product feed, or kept in step through their APIs.
- Measurement. The Meta Conversions API and other forms of server-side tracking report purchases from your server, alongside the Meta Pixel in the browser.
- Content. Many websites load reviews, maps or stock levels from other services, and a content management system can itself be reached through an API.
Keys, permissions and safety
An API does not answer anybody who asks. Each request carries proof of who is making it, usually an API key or a token issued from the provider’s dashboard.
- Treat keys like passwords. Anybody holding the key can act as your business within whatever the key allows. It should never be pasted into a public page, a shared document or a chat.
- Give the least access needed. Many providers let a key read orders without being able to issue refunds, or view products without changing prices. Ask for the narrowest one that does the job.
- Know who holds them. When a developer or an agency stops working with you, replace the keys they used, in the same way you would change a door code.
- Keep the accounts in your name. The dashboard where keys are issued belongs in a business account you control, not in a supplier’s.
Webhooks, the other direction
An API usually works by being asked. A webhook works the other way: when something happens, the system sends a message to an address you have given it.
A payment gateway might send a webhook the moment a payment succeeds, so the store marks the order paid at once. Without it, the store would have to ask again and again whether anything had changed. Webhooks are why orders, payments and stock can update within seconds of each other, and a missed webhook is a common reason an order shows as unpaid when the money has arrived.
The cost nobody quotes
Connecting two systems is the visible part. Keeping the connection working is the part that tends to be left out of the price.
- Versions change. Providers retire old versions of their APIs, and a connection built years ago can stop working on a published date.
- Limits apply. Most APIs cap how many requests can be made in a period, which matters for busy stores and large catalogues.
- Failures are quiet. A broken connection rarely shows an error to customers. Orders simply stop reaching the courier, or purchases stop being reported.
Ready-made apps and plugins on platforms such as WordPress handle most common connections and are updated by their makers. A custom connection is worth building when no ready-made one exists, and it should come with somebody responsible for watching it.
When a proposal includes an integration, ask what happens when one side changes its API, who will notice if the connection stops, and whether the work is documented well enough for another developer to take over. Clear answers to those three questions matter more than the price of the first build.
Words you will hear
- Endpoint. The specific web address an API request is sent to.
- API key. A secret code that identifies and authorises the caller.
- Webhook. A message sent automatically when an event happens.
- REST. The most common style of web API.
- Rate limit. The maximum number of requests allowed in a period.
- Integration. A working connection between two systems.
List the systems your business relies on and draw a line between each pair that exchanges information. Each line is a connection somebody should own, and each key behind it should be held in your name.
Questions we get
More about api
What does API stand for?
What is an API in simple terms?
What is an example of an API a small business uses?
What is an API key?
What is a webhook?
What is a REST API?
Do we need a developer to use an API?
Do it yourself
Guides on the same topic
Free step by step guides for owners doing the work themselves. No sign up and no email required.
Related terms
Payment gateway
A payment gateway takes money on your behalf when somebody buys online. It checks the payment, approves or refuses it, then pays out to you later.
Server-side tracking
Server-side tracking sends measurement from a server you control instead of the visitor's browser. More data arrives, and the consent rules still apply.
Product feed
A product feed is a structured file listing your products, sent to Google or Meta. Feed quality decides where they appear more than bidding does.