Overview
WordPress REST API (Version 2) describes itself as: “Access your site's data through an easy-to-use HTTP REST API. (Version 2)”
It is active on 10,000+ WordPress sites and rated 4.2 out of 5 by 34 users on WordPress.org. Developers can extend it through 11 actions and 32 filters, listed below.
How to install WordPress REST API (Version 2)
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “WordPress REST API (Version 2)” and pick the one by Ryan McCue.
- Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI
Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:
wp plugin install rest-api --activateRequirements: WordPress 4.6+ · tested up to WordPress 4.7.39
Hooks & customisation
WordPress REST API (Version 2) 2.0-beta15 fires 11 actions and 32 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.
// This filter is documented in wp-includes/post-template.php
apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
// This filter is documented in wp-includes/post-template.php
apply_filters( 'get_the_guid', $post->guid );
// Fires after a single post is created or updated via the REST API.
do_action( "rest_insert_{$this->post_type}", $post, $request, true );
// Fires after a single term is created or updated via the REST API.
do_action( "rest_insert_{$this->taxonomy}", $term, $request, true );
// Fires after a single attachment is created or updated via the REST API.
do_action( 'rest_insert_attachment', $attachment, $request, true );
// Fires after a comment is created or updated via the REST API.
do_action( 'rest_insert_comment', $comment, $request, true );Need WordPress REST API (Version 2) customised?
Tell us what you want changed, added or fixed and we'll reply with an estimate.
WP EXPERTS is independent and not affiliated with Ryan McCue. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.