TechnologyArchitecture and infrastructure

API in plain words: how programs talk to each other and where the access key comes in

You open a weather app and it shows the temperature. The app doesn't keep a thermometer. It asked someone else's server, and the server answered. That "ask and get an answer" is called an API. It looks technical, but at heart it's a polite conversation through a window with clear rules.

By TASE TeamPublished Updated 5 min read

API in plain words: a glass hatch between two blocks, a gold key and a cyan iris on a dark background
On this page
  1. What an API is
  2. The waiter picture
  3. What it looks like in practice
  4. Kinds of API
  5. What the response codes mean
  6. Limits and request math
  7. The access key and its rights
  8. Common misunderstandings
  9. Where TASE fits in
  10. What to do today
  11. Frequently asked questions

What an API is

API stands for application programming interface: a set of rules by which one program can contact another. Interfaces usually mean things for people (buttons, menus), but this one is for machines.

Why is it needed? Modern services rarely do everything themselves. A taxi app takes its map from one company, payments from another and messages from a third. Each piece lives on its own server, and APIs connect them: clear questions and answers between programs.

Strip out the fancy words and it's an agreement: a request in this form gets an answer in that form.

The waiter picture

Picture a cafe. You're at a table, the kitchen is behind a wall. Walking into the kitchen to tell the cook how to fry isn't needed, and isn't allowed. There's a waiter and a menu.

  • You are the app that needs data or an action.
  • The menu is the list of what you can order (the API documentation).
  • The waiter is the API itself: takes the order in an understandable form and passes it on.
  • The kitchen is someone else's server with its data and logic.

You can't order what isn't on the menu: the server answers "not found". If you tell the waiter something unclear, the waiter asks again or returns an error. And if you try to walk into the kitchen without a pass, you'll be stopped: an API has access rights.

Diagram of an API as a waiter: the app sends a request, the API passes it to the server, the server returns a response with a status code
The app asks, the API passes it on, the server answers: like an order in a cafe.

What it looks like in practice

In most cases a simple four-step scheme works.

  • The program builds a request: an address (where), what's needed (get, send, change) and, if required, an access key.
  • The request goes to the server over the internet.
  • The server checks the key and rights, does the work and builds a response.
  • The response returns to the program: data (often as structured text) and a status code.

An example from life: a weather app sends a request for the temperature in this city, the server answers in a fraction of a second, and the app draws it nicely. All you see is the picture.

Kinds of API

  • Open (public). Available to anyone, sometimes with a free key: weather, rates, reference data.
  • Partner. Only for those with an agreement: for example, a payment system and an online store.
  • Internal. Connect parts of one company with each other, invisible from outside.

The word REST comes up often. It isn't a separate product but a common style: each "thing" (a user, an order, a price) has its own address, and actions are expressed with clear verbs like "get", "create", "delete". When people say "REST API", they usually mean this convenient, familiar variety.

What the response codes mean

Every server response starts with a three-digit code. There are dozens, but six show up most.

  • 200. All fine, here's the answer.
  • 400. The request is built wrong, the server didn't understand.
  • 401. The server doesn't know who you are: no key or a wrong one.
  • 403. They know you, but you can't do this: not enough rights.
  • 404. No such address or no such thing.
  • 429. Too many requests in a short time, wait.

There are also 500-range codes: an error on the server itself, not in your request. If an app says "API error", look up the code: 401 is cured with a key, 429 with a pause, 500 only by waiting.

Limits and request math

Most APIs cap the number of requests so nobody floods the server. Suppose the limit is 600 requests a minute, which is 10 a second.

  • A program requests five kinds of data once a second: 5 x 60 = 300 requests a minute. Fits with room to spare.
  • The same polling every 0.1 seconds: 5 x 10 x 60 = 3,000 requests a minute. That's five times the limit, and the server starts answering 429.

That's why good programs don't hammer a server: they request only what they need and keep pauses.

The access key and its rights

So that the server knows who's calling, a key is often used: a long string that works as a pass. Rights are attached to the key. Some keys only allow viewing data, others also acting, and the third kind, the most dangerous, can move money or change settings.

The golden rule: a key should have exactly the rights the task needs and not one extra. If you connect a program that only needs to see a balance, it doesn't need rights to act. How such protection works on exchanges is covered in the piece on API key safety.

A key shouldn't be forwarded in messengers or pasted into other people's forms: it's like handing over a pass. If you suspect a leak, you revoke the key and create a new one. A strong password on the account where the key was created matters just as much.

Common misunderstandings

  • "An API is a program." No, it's an agreement about how to talk. The program behind it is separate.
  • "An API is free." Sometimes, but often there are limits or pay per request.
  • "An API can't be hacked." Keys get stolen, which is why rights and limits are always needed.
  • "An API error means something broke in the app." Often the cause is a limit, a wrong key or a server problem.
  • "APIs are only for programmers." They're everywhere apps take something from each other, including trading bots and AI services.

Related reading: API key safety, auto trading, AI agents and blockchain.

Where TASE fits in

Every exchange has an API: through it outside systems see the balance and place orders. TASE works with Binance, Bybit, OKX and BingX exactly this way, through an API key without withdrawal rights: trading is possible, withdrawing is not. Accounts start at $10,000, your funds stay in your own exchange account, and every position is visible in your dashboard. Details are on the technology page. Exchange availability depends on your country, so check the terms before you sign up.

What to do today

Find one app on your phone that takes something from the internet: weather, rates, maps. Think about what data it might have asked for, and from where. Now you can see that same conversation through the window behind the picture.

This article is for education and is not financial, legal or tax advice. The numbers in the limits example are illustrative.

Frequently asked questions

What is an API in simple words?

It's a way for one program to ask another for data or an action by rules agreed in advance. Like a waiter: you don't go into the kitchen, you say what you want and get the result.

How does an API work?

A program sends a request to an address, usually with an access key. The server checks the rights, does the work and returns data and a status code: 200 all good, 401 caller unknown, 403 not allowed, 404 not found, 429 too often.

What does REST API mean?

REST is a common style for building an API: each object (a user, an order) has its own address, and actions are clear verbs: get, create, change, delete. It isn't a separate product.

Why is an API key needed?

The key tells the server who is calling and sets the rights: view only, act or withdraw. Rights should be minimal, and a leaked key should be revoked.

What does a 429 error mean in an API?

Too many requests in a short time: you exceeded the limit. Pause, query the server less often, or ask for less data at once.

About the author

TASE Team · Editorial team

The TASE team builds an automated crypto trading system with its own algorithms and machine learning. We write about what we know from engineering and risk work, and we label opinion as opinion.

Educational content, not investment advice. Trading crypto and derivatives carries a high risk of losing all invested capital.

Explore TASE