Nepedia
Back to Discover
Fluent Reader
💻

API

technology Maturity 5-7 Next article →

An application programming interface, or API, is a special connection between computers. It acts as a bridge between different computer programs or pieces of software. While a user interface helps a person talk to a computer, an API helps machines talk to each other.

LEGO-kompatiblo
LEGO-kompatiblo

Most people never see an API while using their devices. Instead, it works "under the hood" to make things happen behind the scenes. It allows one software system to reach out and interact with another system. This makes it possible for different technologies to work together smoothly.

An API works by using a set of rules to hide complex details. Imagine a weather sensor that has an API for other programs to use. When a programmer wants data, they send a message called an API call. The sensor receives this message and sends back a weather report. This report is known as an API response.

Screenshot of NASA API documentation
Screenshot of NASA API documentation

By using these calls, a programmer does not need to know exactly how the sensor works inside. They only need to know how to ask for the information they need. This process of joining different software parts together is called integration.

The idea behind APIs started a long time ago. In the 1940s, British scientists Maurice Wilkes and David Wheeler worked on a modular software library. They used an early computer called EDSAC for their work. They kept notes on how to use different parts of their software in a library catalog. This catalog acted like an early API specification.

Univac 1108 Census Bureau
Univac 1108 Census Bureau

Later, the actual term "application program interface" appeared in a 1968 paper about computer graphics. This helped programmers use different hardware without having to rewrite all their code.

There are many different types of APIs used today. Some are built specifically for a single pair of systems. Others are shared standards that let many different systems talk to each other. Web APIs are very common because they allow computers to communicate over the internet.

Database management system diagram from 1978 workshop
Database management system diagram from 1978 workshop

There are also APIs for operating systems, like the Windows API. Some APIs are even used for computer hardware or specific programming languages. In the 1990s, standards like CORBA and DCOM helped manage these connections. By the year 2000, web APIs using XML and JSON became very popular.

You can think of an API as being like building blocks. Using APIs to build software is similar to using Lego bricks to build a model.

LEGO-kompatiblo
LEGO-kompatiblo

Each software service acts like a brick that can be snapped into a larger project. An API can also be viewed as a contract between two parties. The service provider offers the API, and the developer relies on it. If the API stays stable and follows the rules, developers can trust it. This trust helps them build bigger and better tools for everyone to use.

462 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:LEGO-kompatiblo.jpg
LEGO-kompatiblo.jpg
File:Database_management_system_diagram_from_1978_workshop.png
Database_management_system_diagram_from_19...
File:Univac 1108 Census Bureau.jpg
Univac 1108 Census Bureau.jpg
File:Screenshot of NASA API documentation.png
Screenshot of NASA API documentation.png
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.