What Is an API? A Plain-English Guide
An API lets two pieces of software talk to each other. Here's what that really means, with everyday analogies and real examples.
An API (Application Programming Interface) is a contract between two pieces of software: one side agrees to accept requests in a documented format and to answer them in a documented format. You send a request; you get a response. You never need to know how the other program works inside — only what it accepts and what it returns.
The usual analogy is a restaurant. Your app is the customer; the other company’s servers are the kitchen. You don’t walk into the kitchen — you give an order to the waiter (the API) using the menu (the documentation), and the waiter brings back your food (the data). The API is the messenger with a fixed menu and fixed rules.
Why software is built out of APIs
Almost every app you use is stitched together from other people’s APIs. A weather app calls a weather API. A checkout page calls a payments API. A travel site calls airline and hotel APIs. Building each of those capabilities from scratch would take years; calling an API that already does it well takes an afternoon.
- Web APIs — the kind this directory lists — are reached over HTTP(S), the same protocol as websites.
- Library / SDK APIs are function calls inside your own program (e.g. Python’s
jsonmodule). - Operating-system APIs let programs ask the OS to open files, draw windows or use the network.
What a web API call actually looks like
Here is a real, free call — Bitcoin’s price from CoinGecko. You send a URL; you get JSON back:
GET https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd
โ { "bitcoin": { "usd": 64213 } }Every request has the same parts: a method (GET to read, POST to create), a URL (which service, which resource, which filters), headers (authentication, the format you want), and sometimes a body (data you are sending). Every response has a status code (200 = OK, 404 = not found, 401 = unauthorised) and a body (usually JSON).
Public, private and partner APIs
| Public / open | Anyone can sign up and use it, often free. Weather, maps, crypto prices, dictionary data. The focus of this directory. |
| Partner | Available only to approved business partners under a contract. |
| Private / internal | Used only inside one company, to connect its own systems. |
Key terms you will meet
- Endpoint — one URL + method that does one job (
GET /users/42). - API key / token — a secret string that identifies you so the service can authenticate and rate-limit your calls.
- Rate limit — the cap on how many requests you may make per second, day or month.
- JSON — the text format most APIs use for requests and responses.
- Webhook — the reverse of an API call: the service calls your URL when an event happens.
How to start using one
Pick an API from the directory, read its authentication section, get a key if it needs one, and make one request with curl or your browser before writing any code. Check the status code first, then parse the body. If you get 401 the key is wrong; 429 means you are going too fast; 404 means the URL is wrong.
FAQ
What does API stand for?
Application Programming Interface. ‘Interface’ is the key word: it is the agreed boundary through which two programs talk, hiding everything behind it.
Is an API a website?
A web API uses the same technology as a website (HTTP, URLs) but returns data (usually JSON) for programs to read, not HTML pages for people to look at.
Are APIs free?
Many public APIs have a free tier that is enough for learning and small projects. Heavier use, commercial use, or premium data usually costs money. Each page in this directory states the limits.
Do I need to be a programmer to use an API?
To build something with one, yes — you write code that sends requests and handles responses. But you can explore any GET API right now by pasting its URL into a browser.
Keep going
Try it on a real API
๐ Explore free public APIs
Hundreds of free APIs, searchable by category, with auth & CORS at a glance.
Browse the directory โ