REST API

Definition

API style using standard HTTP methods (GET, POST, PUT, DELETE) and stateless requests — the dominant pattern for web service integration.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between a REST API and GraphQL?
REST typically exposes multiple endpoints (URLs) for different resources (like /users or /orders) and returns a fixed shape of data per endpoint. GraphQL usually exposes a single endpoint where the client asks for exactly the fields it needs. REST can be simpler to cache and reason about with HTTP semantics, while GraphQL can reduce over-fetching/under-fetching when clients need flexible queries.
When should I use a REST API?
Use a REST API when you need a simple, widely supported way to expose data or actions over HTTP—especially for CRUD-style operations (create, read, update, delete) on resources like users, products, or tickets. It’s a good fit for public APIs, mobile backends, microservice-to-microservice communication, and integrations where standard HTTP tooling, caching, and observability are helpful.
How much does a REST API cost?
REST itself is a design approach and has no direct cost. Costs come from hosting and operating the API: compute (servers, containers, or serverless), API gateway/API management (requests, data transfer, features like auth and rate limiting), databases, logging/monitoring, and outbound bandwidth. Pricing depends mainly on request volume, payload sizes, latency/availability requirements, and security features (WAF, DDoS protection, private networking).

Category: software

Difficulty: intermediate

Related Terms

See Also