#################################################################################################### Links Version 1: http://wp-api.org/index-deprecated.html#entities_post Version 2: http://v2.wp-api.org/reference/posts/ Changelog: https://wordpress.org/plugins/rest-api/changelog/ #################################################################################################### Version 1 API - Deprecated #################################################################################################### { "ID": 1, "title": "Hello world!q", "status": "publish", "type": "post", "author": { "ID": 1, "name": "admin", "slug": "admin", "URL": "", "avatar": "http:\/\/0.gravatar.com\/avatar\/c57c8945079831fa3c19caef02e44614&d=404&r=G", "meta": { "links": { "self": "http:\/\/example.com\/wp-json\/users\/1", "archives": "http:\/\/example.com\/wp-json\/users\/1\/posts" } }, "first_name": "", "last_name": "" }, "content": "

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!<\/p>\n", "parent": 0, "link": "http:\/\/example.com\/2013\/06\/02\/hello-world\/", "date": "2013-06-02T05:28:00+10:00", "modified": "2013-06-30T13:56:57+10:00", "format": "standard", "slug": "hello-world", "guid": "http:\/\/example.com\/?p=1", "excerpt": "", "menu_order": 0, "comment_status": "open", "ping_status": "open", "sticky": false, "date_tz": "Australia\/Brisbane", "date_gmt": "2013-06-02T05:28:00+00:00", "modified_tz": "Australia\/Brisbane", "modified_gmt": "2013-06-30T03:56:57+00:00", "password": "", "post_meta": [ ], "meta": { "links": { "self": "http:\/\/example.com\/wp-json\/posts\/1", "author": "http:\/\/example.com\/wp-json\/users\/1", "collection": "http:\/\/example.com\/wp-json\/posts", "replies": "http:\/\/example.com\/wp-json\/posts\/1\/comments", "version-history": "http:\/\/example.com\/wp-json\/posts\/1\/revisions" } }, "featured_image": null, "terms": { "category": { "ID": 1, "name": "Uncategorized", "slug": "uncategorized", "parent": null, "count": 7, "meta": { "links": { "collection": "http:\/\/example.com\/wp-json\/taxonomies\/category\/terms", "self": "http:\/\/example.com\/wp-json\/taxonomies\/category\/terms\/1" } } } } } #################################################################################################### Version 2 API #################################################################################################### { "id":470, "date":"2016-09-03T13:54:33", "date_gmt":"2016-09-03T13:54:33", "guid":{ "rendered":"https:\/\/demo.wp-api.org\/2016\/09\/03\/this-is-a-test-post\/" }, "modified":"2016-09-03T13:54:33", "modified_gmt":"2016-09-03T13:54:33", "slug":"this-is-a-test-post", "type":"post", "link":"https:\/\/demo.wp-api.org\/2016\/09\/03\/this-is-a-test-post\/", "title":{ "rendered":"This is a test post!" }, "content":{ "rendered":"

This is a test post!<\/p>\n" }, "excerpt":{ "rendered":"

This is a test post!<\/p>\n" }, "author":135, "featured_media":0, "comment_status":"open", "ping_status":"open", "sticky":false, "format":"status", "categories":[ 1 ], "tags":[ ], "liveblog_likes":0, "_links":{ "self":[ { "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/posts\/470" } ], "collection":[ { "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/posts" } ], "about":[ { "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/types\/post" } ], "author":[ { "embeddable":true, "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/users\/135" } ], "replies":[ { "embeddable":true, "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/comments?post=470" } ], "version-history":[ { "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/posts\/470\/revisions" } ], "wp:attachment":[ { "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/media?parent=470" } ], "wp:term":[ { "taxonomy":"category", "embeddable":true, "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/categories?post=470" }, { "taxonomy":"post_tag", "embeddable":true, "href":"https:\/\/demo.wp-api.org\/wp-json\/wp\/v2\/tags?post=470" } ], "curies":[ { "name":"wp", "href":"https:\/\/api.w.org\/{rel}", "templated":true } ] } } ---------------------------------------------------------------------------------------------------- 2.0 Beta 2.0 (May 28, 2015) ---------------------------------------------------------------------------------------------------- - ---------------------------------------------------------------------------------------------------- 2.0 Beta 3.0 (July 1, 2015) ---------------------------------------------------------------------------------------------------- 1. Declare collection parameters for Terms of a Post. ---------------------------------------------------------------------------------------------------- 2.0 Beta 4.0 (August 14, 2015) ---------------------------------------------------------------------------------------------------- 1. Embed links inside items in a collection. 2. Fix post taxonomy terms link URLs. ---------------------------------------------------------------------------------------------------- 2.0 Beta 5.0 (October 23, 2015) ---------------------------------------------------------------------------------------------------- - ---------------------------------------------------------------------------------------------------- 2.0 Beta 6.0 (November 12, 2015) ---------------------------------------------------------------------------------------------------- 1. Link directly to the featured image in a Post's links. 2. Expose date_gmt for view context of Posts and Comments. 3. Return the trashed status of deleted posts/comments. ---------------------------------------------------------------------------------------------------- 2.0 Beta 7.0 (November 17, 2015) ---------------------------------------------------------------------------------------------------- - ---------------------------------------------------------------------------------------------------- 2.0 Beta 8.0 (December 1, 2015) ---------------------------------------------------------------------------------------------------- 1. Fix Post _link to attached attachments. ---------------------------------------------------------------------------------------------------- 2.0 Beta 9.0 (December 11, 2015) ---------------------------------------------------------------------------------------------------- 1. BREAKING CHANGE: Move tags and categories to top-level endpoints. 2. BREAKING CHANGE: Change taxonomies' post_type argument to type. 3. Expose Post collection query params, including author, order, orderby and status. 4. Add rest_prepare_post_type filter for post types. ---------------------------------------------------------------------------------------------------- 2.0 Beta 10.0 (January 11, 2016) ---------------------------------------------------------------------------------------------------- 1. BREAKING CHANGE: Removes post_format as a term _link for Posts. 2. Adds include param to /wp/v2/posts, /wp/v2/users, /wp/v2/ and /wp/v2/comments. ---------------------------------------------------------------------------------------------------- 2.0 Beta 11.0 (January 25, 2016) ---------------------------------------------------------------------------------------------------- 1. BREAKING CHANGE: Moves Post->Term relations to the Post Resource. In Beta 11, an array of term ids is included on the Post resource. 2. BREAKING CHANGE: Changes featured_image attribute on Posts to featured_media. 3. Add parent_exclude param to GET /wp/v2/posts. 4. Adds slug param support for collections of Posts, Users, and Taxonomy Terms. 5. Adds offset param support for collections of Posts, Users, Comments, and Taxonomy Terms. 6. Adds exclude param to getting collections of Posts, Users, Comments, and Taxonomy Terms. ---------------------------------------------------------------------------------------------------- 2.0 Beta 12.0 (February 9, 2016) ---------------------------------------------------------------------------------------------------- 1. BREAKING CHANGE: Removes meta endpoints from primary plugin. 2. Exposes taxonomy and post type capabilities in context=edit. 3. Adds author and author_exclude params to GET Posts and Comments. 4. Links taxonomy terms to the post type collections they support. 5. Permits viewing of User who has published any Public posts. ---------------------------------------------------------------------------------------------------- 2.0 Beta 13.0 (March 29, 2016) ---------------------------------------------------------------------------------------------------- 1. Supports taxonomy collection args on posts endpoint. 2. Removes post meta link from post response. ---------------------------------------------------------------------------------------------------- 2.0 Beta 15.0 (October 07, 2016) ---------------------------------------------------------------------------------------------------- 1. Introduce support for Post Meta, Term Meta, User Meta, and Comment Meta in their parent endpoints.