Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.61 KB

index.md

File metadata and controls

36 lines (25 loc) · 1.61 KB
page title include_title
introduction
WP REST API version 2.0 Introduction
false
<img src="{{ site.baseurl }}assets/images/banner.jpg" class="banner" />

<p class="subtitle">Access your WordPress site's data through an easy-to-use HTTP REST API.</p>

<a href="https://wordpress.org/plugins/rest-api/" class="download button radius">
	Download the Plugin
	<span>(Version 2.0 beta 4, for WordPress 4.3+)</span>
</a>

<p class="status">
	<a href="https://github.com/WP-API/WP-API">View on GitHub</a><br />
	<a href="https://travis-ci.org/WP-API/WP-API">
		<img alt="Build Status" src="https://travis-ci.org/WP-API/WP-API.svg?branch=develop" />
	</a>
</p>

About

WordPress is moving towards becoming a fully-fledged application framework, and we need new APIs. This project was born to create an easy-to-use, easy-to-understand and well-tested framework for creating these APIs, plus creating APIs for core.

This plugin provides an easy to use REST API, available via HTTP. Grab your site's data in simple JSON format, including users, posts, taxonomies and more. Retrieving or updating data is as simple as sending a HTTP request.

Want to get your site's posts? Simply send a GET request to /wp-json/wp/v2/posts. Update user with ID 4? Send a POST request to /wp-json/wp/v2/users/4. Get all posts with the search term "awesome"? GET /wp-json/wp/v2/posts?s=awesome. It's that easy.

The API exposes a simple yet easy interface to WP Query, the posts API, post meta API, users API, revisions API and many more. Chances are, if you can do it with WordPress, WP API will let you do it.