Web APIs
The standard interfaces defined for the web, such as fetch, Request, Response, URL, streams and Web Crypto.
In more detail
Browsers implement them first, and server runtimes increasingly support the same interfaces. Code written only against Web APIs runs in browsers, Node.js and edge runtimes alike.
Related terms
- Fetch API — The standard JavaScript function fetch() for making HTTP requests, built into browsers and current server runtimes, which returns a promise for the response.
- Request and Response — The standard Web API classes that represent an HTTP request and an HTTP response, shared by browsers, Node.js and edge platforms.
- Web Crypto API — The standard Web API for cryptography, such as hashing, HMAC signing and encryption, available in browsers, Node.js and the Edge runtime.
Taught in
- Route Handlers: RESTful Endpoints with NextRequest — Next.js 15 & Modern App Router Architecture
- Streaming Endpoints: Server-Sent Events & NDJSON Feeds — Next.js 15 & Modern App Router Architecture
- Runtime Environments: Node.js vs Edge Runtime Choice — Next.js 15 & Modern App Router Architecture