Core concepts · Automation

What is an API?

4 min read

In one sentence

An API is the set of rules with which one program can request data or actions from another (check an order, create a customer, send a message) without a person going in through the screen.

01

Why it matters in a business

An API matters because it is how one application asks another for data or actions without human intervention. If your website, CRM and spreadsheet talk through APIs, you stop copying and pasting between them.

02

How it works

It works like a menu: the service publishes what can be requested and in what format, and your program requests exactly that. Almost all modern tools have an API.

Using it usually requires a key. That key is like a password: it is not shared, not published on the web or pasted into a chat, and it is kept on the server, never in the user’s browser.

03

Understanding it in depth

An API is an agreed way for one program to ask another for data or actions without a person stepping in. It is like a restaurant menu: it tells you what you can order, how to order it and what you will get, without you walking into the kitchen. Thanks to APIs, your shop can check a supplier’s stock or your website can show the opening hours from your Google listing.

In practice almost every API you will use is web-based: you send a request to a specific address, say what you want and who you are, and get a response, usually in JSON. Who you are is proven with a key or token, which is a secret: whoever has it can act on your behalf, so it is not published or pasted into a chat.

APIs have rules to respect: usage limits per minute, versions that change and terms of service. An automation that ignores those limits ends up blocked, and one that depends on an old version may stop working the day the provider retires it. That is why you read the documentation and the change notices before basing an important process on an API.

04

The pieces, one by one

  • Endpoint

    The specific address each request goes to, one for each type of data or action.

  • Method

    What you want to do: read, create, modify or delete.

  • Authentication

    The key or token that proves who makes the request and what permissions they have.

  • Limits

    The number of requests allowed per period and the service’s terms of use.

05

An example in a business

A restaurant’s website queries the delivery platform’s API for an order’s status and shows it to the customer in their account.

06

When yes and when no

It makes sense when…

  • You need data or actions from another service continuously and automatically.
  • The service offers a documented, stable API.
  • You can store the keys securely and renew them if needed.

Better not when…

  • You only need a piece of data once: asking for it by hand is faster.
  • The documentation is missing or the service changes the API without notice.
  • You cannot protect the keys and an outsider could use them.

07

Common mistakes

  • Storing the access key somewhere others can see it.
  • Not checking the service’s usage limits and costs.
  • Depending on an API with no plan B if it changes or disappears.

08

How to start

  1. Check whether your tool offers an API and what it allows.
  2. Get a key with the minimum permissions needed.
  3. Make a first test request and look at the response.
  4. Store the key securely and monitor usage.

09

Frequently asked questions

What is an API key?

A password that identifies your application to the service. It must be kept secret.

Do I have to code to use an API?

For simple cases, tools like n8n do it visually; for custom integrations coding helps.

Does an API cost money?

Some are free up to a certain usage and others charge per request; check the terms.

Does an API cost money?

Some are free up to a certain volume and others paid from the first use. Check the price per use and the limits before building something that depends on it.

What is an API key and why is it not shared?

It is the password that identifies your account to the service. Whoever has it can spend your quota or reach your data, so it is stored somewhere protected and changed if you suspect it leaked.

What happens if the provider changes the API?

Normally it gives notice and keeps the old version for a while. If your process depends on it, you have to adapt within that period; that is why it is documented which APIs each automation depends on.

10

Quick glossary

Token
A temporary or permanent key that identifies whoever makes a request.
Rate limit
A cap on the requests allowed in a period of time.
Documentation
The provider’s manual explaining what can be requested and how.

11

Go deeper

To see how it is applied in practice, read the guide Automate processes with n8n: a practical guide for small businesses.

Related concepts

All concepts

Let’s talk

Want to see how it applies in your business?

Tell us your case. We reply within 24 hours with a real proposal. No strings attached.