An API (application programming interface) is, in MDN’s wording, a set of features and rules in a software program that lets other software interact with it, as opposed to a human user interface. In SEO work, the term usually refers to web APIs that a service exposes over HTTP.
At a glance
- Type
- interface through which software interacts with other software
- Used in
- web APIs over HTTP, browser APIs in the browser
- Response format
- often JSON
- Docs
- MDN: API
Last checked:
How does an API work?
In web development an API consists of methods, properties, events or URLs that developers can use. The calling software sends a request that follows the API’s rules. The API replies in an agreed format, often JSON. AWS and IBM both describe this as a client and server exchange of requests and responses.
MDN separates browser APIs from the wider group of web APIs. Browser APIs give access to browser and device features, such as the Geolocation API. Third-party web APIs expose the data or functions of an external service. IBM lists REST as the dominant style for web APIs, alongside SOAP, GraphQL and RPC variants.
Example
A request to a fictional API, for illustration:
GET /api/pages/42 HTTP/1.1
Host: example.com
Accept: application/json
A possible response:
{ "id": 42, "title": "Home", "status": 200 }
Why do APIs matter for SEO and AI?
Analytics and SEO platforms expose their data through APIs, so reports can feed dashboards, business intelligence tools or data warehouses. AI agents call APIs through tool calling. An OpenAPI description makes an API easier to understand for people and programs, and MCP servers can make APIs available to AI applications.
FAQ
What does API stand for? Application programming interface.
What is an example of an API? IBM names the “Pay with PayPal” button, where an API connects a shop to the payment processor behind the scenes.
What is the difference between an API and a web API? An API can belong to any software, including an operating system. A web API is reached through web protocols such as HTTP.
Sources
- API – MDN Web Docs Glossarydeveloper.mozilla.org
- What is an API? – AWS (secondary)aws.amazon.com
- What is an API? – IBM (secondary)ibm.com
Last updated: