Development & Engineering · Beginner
API
Application Programming Interface
An API is the agreed window through which two pieces of software talk. One side sends a request in a fixed format, the other replies in a fixed format.
TL;DRIn 30 seconds
- An API is the agreed window through which two programs talk, both directions in a fixed format.
- You never reach inside the other system — you just get it to look up data or pass messages for you.
- Who may use it, and how often, is usually regulated — you can't call it as freely as you like.
OverviewIn detail
API stands for Application Programming Interface. It is the way two pieces of software communicate: one side sends a request in a fixed format, the other returns a reply in a fixed format, and the whole exchange is programs talking to programs.
You shouldn't — and aren't allowed to — reach directly into someone else's internals; the API is the window. With it, a developer can bring another company's capabilities into their own product: look up the weather, send a text, call an AI. That saves a great deal of back-and-forth and at the same time preserves the order and safety of the other side's system.
Examples are everywhere. When your ride-hailing app shows car positions on a map, it is asking the map service's API; when a text arrives after you place an order, the system called a messaging API. Every API comes with documentation saying how to make a request and what comes back, and a developer writing code against that documentation can move someone else's capability into their own product.
With AI tools you'll run into it constantly. When a description says it connects to some platform's API, it means it can have your AI talk to that platform, fetch data and issue commands. You don't need to write the requests yourself, but it's worth knowing that almost everything which has an AI operating other software is wired up through an API.
One common mix-up: an interface here is not a charging port, but the rules of conversation between software. The same word means very different things in different settings — when you see it, work out first who is asking whom for something and you won't get lost.
One more distinction: an API governs how software talks to software, while a user interface governs how a person operates the software — they serve different parties. Seeing API usually means a machine is dealing with another company's system on your behalf. And one boundary worth remembering: who may use a given API, and how often, is usually regulated. A developer has to obtain permission before calling it heavily, which is why some features come with a price or a quota.
MythsCommon misunderstandings
- ✕Thinking an interface means a charging port ✓This is an agreed way for software to talk, which has nothing to do with plugging in a cable
- ✕Thinking anyone can use someone's API freely ✓Most require permission first, and usage limits or fees are common — you can't just connect
- ✕Thinking having an API means having a screen ✓An API is for software to talk to software; a user interface is for a person to click — they serve different parties
In practiceWhere you will meet it
- Seeing car positions on the map in a ride-hailing app — it asked the map service's API behind the scenes
- Getting a text after placing an order — the system called a messaging API
- Wanting an AI to pull data from another platform, which usually means wiring up that platform's API first
SummaryThe key points
- An agreed way for one piece of software to communicate with another
- One side requests, the other replies, both in a fixed format
- Everything that lets an AI operate other software runs through it
- Here 'interface' means conversation rules, not a charging port
FAQ
What does API mean?
An API is the agreed window through which two programs talk, both directions in a fixed format.You never reach inside the other system — you just get it to look up data or pass messages for you.Who may use it, and how often, is usually regulated — you can't call it as freely as you like.
Where will I run into API?
Seeing car positions on the map in a ride-hailing app — it asked the map service's API behind the scenes;Getting a text after placing an order — the system called a messaging API;Wanting an AI to pull data from another platform, which usually means wiring up that platform's API first。
What do people most often get wrong about API?
Thinking an interface means a charging port — but This is an agreed way for software to talk, which has nothing to do with plugging in a cable;Thinking anyone can use someone's API freely — but Most require permission first, and usage limits or fees are common — you can't just connect。
What are the key points about API?
An agreed way for one piece of software to communicate with another;One side requests, the other replies, both in a fixed format;Everything that lets an AI operate other software runs through it;Here 'interface' means conversation rules, not a charging port。
Common pitfalls Here 'interface' means the rules by which software talks — nothing to do with a phone's charging port.
Also written asYou may also see it written as
These are all the same concept — the same thing, however it is written in a skill description. Do not mistake different spellings for different ideas.
Entry 57 of 186 · All entries
Keep readingRelated reading
算法(Algorithm)
算法就是做一件事的固定步骤清单。照着一步步做,同样的输入总能得到同样的结果,电脑就是靠它来完成任务的。
Open Source
Open source means the author publishes the recipe as well as the software. Anyone can read it, use it for free, and even change it and pass it on.
GitHub(代码托管平台)
GitHub 是全球程序员存放和分享代码的网站,既能当作品集,也是大家一起改同一份代码的协作台。
前端(Frontend)
前端是软件里你能看见、能点的那一层。按钮、图片、页面动画,都是它做出来的。
Backend
The backend is the half of the software you never see. Every step you take in the interface is handled behind the scenes by it, looking up data and making the decisions.
Automation
Automation means letting a computer repeat a job by rules you set, so work you would otherwise redo by hand every time is handed over entirely.
Where to go nextExplore more
Back to the skills themselves
Most of the concepts covered here come from skills that install into your AI client with a single command.