An API — an Application Programming Interface — is a defined set of rules that lets two pieces of software talk to each other. Instead of one program having to understand another's entire internal workings, an API exposes a clean, agreed-upon way to request data or trigger an action, and get a predictable response back.
A Simple Way to Picture It
Think of an API as a waiter in a restaurant. You don't walk into the kitchen and cook your own meal — you tell the waiter what you want, the waiter passes that to the kitchen, and brings the finished dish back to your table. The API is the waiter: it takes a request, passes it along, and delivers the result.
Where APIs Show Up on a Website
- Payment processing — Stripe or PayPal handling a checkout without you building payment infrastructure yourself
- Maps — Google Maps embedded in a contact page
- Social feeds — pulling in an Instagram or X feed automatically
- AI features — plugins calling out to ChatGPT or Claude to generate content
- WordPress itself — the WordPress REST API lets external apps read and write site data
REST APIs
Most modern web APIs follow a style called REST, which uses standard web requests (GET, POST, PUT, DELETE) and typically returns data formatted as JSON — a lightweight, easy-to-parse text format that both humans and machines can read.
Why It Matters
APIs are what let a WordPress site connect to payment gateways, email marketing platforms, CRMs, and AI tools without anyone having to rebuild that functionality from scratch. They're the connective tissue of the modern web.
« Back to Index