Access your site's data through an easy-to-use HTTP REST API. (Version 2)
As of April 2026, WordPress REST API (Version 2) is a WordPress api plugin with 10K+ active installations and a 4.2/5 rating from 34 reviews. It has been downloaded 534K+ times in total. Requires WordPress 4.6+ and PHP false+. Available on WordPress.org since 2009. Last updated 8 years ago — may have compatibility concerns. Downloads are down 24% this week. Top alternative: WP Consent API.
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 PUT request to /wp-json/wp/v2/users/4. Get all posts with the search term “awesome”? GET /wp-json/wp/v2/posts?filter[s]=awesome. It’s that easy.
The WordPress REST API exposes a simple yet…
As we stated, this plugin was way long abandonded, and integrated in WP, and even after request
https://wordpress.org/support/topic/why-there-is-no-clear-indication-that-it-is-no-longer-used/
the developers didnt put any clear notice about this fact, and wasting users times till we find out that fact.
Can you please confirm/deny the PHP 7.2 compatibility? I’m receiving this error report on a PHP 7.2 compatibility test:
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-posts-controller.php
—————————————————————————————————————–
FOUND 2 ERRORS AFFECTING 2 LINES
—————————————————————————————————————–
773 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
782 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
—————————————————————————————————————–
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-revisions-controller.php
———————————————————————————————————————
FOUND 2 ERRORS AFFECTING 2 LINES
———————————————————————————————————————
285 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
288 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
———————————————————————————————————————
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-comments-controller.php
——————————————————————————————————————–
FOUND 2 ERRORS AFFECTING 2 LINES
——————————————————————————————————————–
588 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
589 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
——————————————————————————————————————–
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/extras.php
————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————
150 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
————————————————————————————————————
Call to undefined function get_registered_meta_keys() in wp-content\plugins\rest-api\lib\fields\class-wp-rest-meta-fields.php on line 244
Obrigado.. agora eu tenho muitas possibilidades em meus projetos com app mobile
Hello,
I am not able to create user.It always give error like below:
{
"code": "rest_cannot_create_user",
"message": "Sorry, you are not allowed to create new users.",
"data": {
"status": 401
}
}
| WordPress | 4.6+ requiredTested up to 4.7.33 |
| PHP | false+ required |
Introduce support for Post Meta, Term Meta, User Meta, and Comment Meta in
their parent endpoints.
For your meta fields to be exposed in the REST API, you need to register
them. WordPress includes a register_meta() function which is not usually
required to get/set fields, but is required for API support.
To register your field, simply call register_meta and set the show_in_rest
flag to true. Note: register_meta must be called separately for each meta
key.
(props @rmccue, @danielbachhuber, @kjbenk, @duncanjbrown, #2765)
Introduce Settings endpoint.
Expose options to the REST API with the register_setting() function, by
passing $args = array( 'show_in_rest' => true ). Note: WordPress 4.7 is
required. See changeset [38635][https://core.trac.wordpress.org/changeset/38635].
(props @joehoyle, @fjarrett, @danielbachhuber, @jonathanbardo,
@greatislander, #2739)
Attachments controller, change permissions check to match core.
Check for the upload_files capability when creating an attachment.
(props @nullvariable, @adamsilverstein, #2743)
Add ?{taxonomy}_exclude= query parameter
This mirrors our existing support for ?{taxonomy}= filtering in the posts
controller (which allows querying for only records with are associated with
any of the provided term IDs for the specified taxonomy) by adding an
equivalent _exclude variant to list IDs of terms for which associated posts
should NOT be returned.
(props @kadamwhite, #2756)
Use get_comment_type() when comparing updating comment status.
Comments having a empty comment_type within WordPress bites us again.
Fixes a bug where comments could not be updated because of bad comparison
logic.
(props @joehoyle, #2753)
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.