REST API Handbook

Explore APIs in the software and the ecosystem.

Using the WordPress REST API

What Is A REST API?

REST API stands for Representational State Transfer Application Programming Interface. It's a set of rules and conventions for building and interacting with web services. WordPress provides a comprehensive REST API that allows developers to interact with WordPress sites remotely by sending and receiving JSON objects.

The WordPress REST API provides API endpoints for WordPress data types that allow developers to interact with sites remotely by sending and receiving JSON (JavaScript Object Notation) objects. When you send content to or make a request from the API, the response will be returned in JSON.

This enables developers to create, read, update, and delete WordPress content from external applications, mobile apps, or other websites. The API provides a powerful way to build headless WordPress applications, integrate with third-party services, and create custom interfaces.

Using the WordPress REST API

Getting Started

Learn the basics of making your first API request, understanding endpoints, and working with JSON responses.

View Guide →

Authentication

Understand different authentication methods including application passwords, OAuth, and cookie authentication.

View Guide →

Working with Posts

Create, read, update, and delete posts using the REST API. Learn about post meta and featured images.

View Guide →

Custom Endpoints

Create your own custom REST API endpoints to extend WordPress functionality for your specific needs.

View Guide →

JavaScript Client

Use the built-in JavaScript client library to make API requests from the browser or Node.js applications.

View Guide →

Error Handling

Learn how to properly handle errors, understand status codes, and implement robust error handling strategies.

View Guide →

Improve it on GitHub

REST API Handbook on GitHub