An API (Application Programming Interface) is a defined set of rules that lets two pieces of software talk to each other without needing to know how the other one is built internally.
Think of an API as a contract: it specifies what requests you can send, what data you need to include, and what response you'll get back — without exposing the internal code that makes it happen.
A weather app on your phone doesn't run its own network of weather sensors. Instead, it sends a request to a weather service's API — for example, asking for the forecast for a given city — and the API responds with structured data (temperature, humidity, conditions) that the app then displays.
APIs are what let separate companies' software integrate — a payment API lets an online store accept credit cards without building its own banking infrastructure, for example.
Last reviewed: September 2026