Aller au contenu principal
WordPress REST API logo

WordPress REST API

Interact with WordPress sites via JSON

The WordPress REST API provides an interface for applications to interact with WordPress sites using JSON. It powers the Block Editor and enables developers to build custom admin experiences, interactive front-ends, and integrate WordPress content into external applications.

Fonctionnalités

JSON-based data exchange
CRUD for posts, pages, media
User and authentication management
Taxonomy and term endpoints
Custom post type support
Block and template endpoints
Extensible with custom endpoints
Application passwords auth
Works with any language

Avantages

  • + Built into WordPress core
  • + Powers millions of sites
  • + Language agnostic
  • + Well documented
  • + Headless WordPress enabled

Inconvénients

  • Performance can vary by host
  • Security requires careful setup
  • Rate limiting depends on host
  • Some plugins may not expose data