Computers talk to each other. 

Computers need to talk to each other. 

Computers need ways to talk to each other. They use a tool called an API. API stands for application programming interface. 
Think of an API like building blocks. You can join different pieces to make something new. This is called integration. An API works like a contract. It is an agreement between two sides. One side offers a service. The other side uses it.
An API helps hide how a system works inside. It only shows the parts a programmer needs. This makes coding much easier. For example, a weather sensor has an API. A program sends a request to the sensor. This is called an API call. The sensor then sends back a weather report. This report is called an API response. 
APIs have been around for a long time. Scientists worked on these ideas in the 1940s. Today, many APIs work over the internet. These are called web APIs. They help the whole internet stay connected.
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. 
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. 
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. 
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. 
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. 
An application programming interface, or API, is a digital connection between computers or software programs. It acts as a software interface that offers services to other pieces of software. While a user interface allows a person to interact with a computer, an API allows machines to talk to each other. This process is often described as "under the hood" communication because it is not intended for direct use by the average person. Instead, it is used by computer programmers to incorporate specific functions into their own software. 
To understand how an API works, imagine a weather sensor that offers an API. A programmer can send a specific message to this sensor, which is known as an API call. This call might be a request for current temperature or wind speed. The sensor then detects the conditions and sends back a weather report, which is called an API response. These calls are also known by several other names, such as subroutines, methods, requests, or endpoints. By using these signals, two systems can communicate across a boundary using mutually agreed-upon rules. This process of joining different software parts together is called integration.
A key purpose of an API is to provide abstraction. This means the API hides the complex internal details of how a system works. It only exposes the specific parts or actions that a programmer needs to use. Because of this, the internal details of a system can change without breaking the software that relies on the API. This keeps the interface consistent and simplifies the job of programming. You can think of an API as a contract. The service provider offers the API, and the software developer relies upon it. If the API remains stable and predictable, developers can use it with more confidence.
The concept of the API has deep historical roots. In the 1940s, British computer scientists Maurice Wilkes and David Wheeler worked on a modular software library for an early computer called EDSAC. They used punched paper tape for their subroutines and kept a "library catalog" of notes. This catalog explained how to incorporate each subroutine into a program, acting as an early API specification. Some researchers, like Joshua Bloch, believe Wilkes and Wheeler "latently invented" the API because they created the fundamental concept. 
The actual term "application program interface" first appeared in a 1968 paper regarding remote computer graphics. This interface allowed programmers to work with graphics without worrying about the specific details of the hardware. In 1974, C. J. Date introduced the term to the field of databases. By 1990, technologist Carl Malamud defined an API simply as a set of services available for performing certain tasks. As computer networks grew in the 1970s and 1980s, the idea expanded into remote procedure calls. 
Today, there are many different types of APIs serving different needs. Web APIs are perhaps the most common, allowing computers to communicate over the internet using standards like XML or JSON. 

APIs are essential to the modern digital world because they enable interoperability. This is the ability of many different systems to work together through shared standards. Building software with APIs is often compared to using building-block toys like Lego bricks. 
🖼️ Images & Media (4)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
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.