Application programming interface
A defined interface through which software requests data or functions from another system.
Save conceptWhat it means
An API, or application programming interface, is a defined way for one piece of software to interact with another. It specifies which requests are allowed and how responses are structured. An app can use an API to retrieve , submit a payment or ask an service to generate text, without directly controlling the provider's internal system.
How it works
The requesting application sends an agreed message to an interface the provider exposes. A web API commonly accepts a network request and returns structured data or an error. Authentication, permissions, usage limits and versioned formats determine what the caller can do. An API can expose only a selected function; access to it does not imply access to all of a company's data.
A hypothetical example
Imagine a shop's software requesting a quote from a hypothetical rate service. The response specifies J$150 per US$1, a timestamp and the quote direction. The shop multiplies a US$100 price by 150 to obtain J$15,000 before other charges. If the service instead returns an error or an old timestamp, the app needs a policy for refusing or clearly labelling the conversion. A response that arrives successfully can still contain unsuitable data.
What to distinguish
An API is an interface, not necessarily a website, database or complete product. Some APIs operate inside a device rather than across the internet. Providing an API also does not guarantee reliability or permission to republish everything it returns. Business adoption depends on the service's contract, cost, security and stability as well as the usefulness of the underlying function.