/posts
Query this endpoint to retrieve a collection of posts. The response you receive can be controlled and filtered using the URL query parameters below.
GET /wp/v2/posts
| Scope under which the request is made; determines fields present in response. Default: One of: |
| Current page of the collection. Default: |
| Maximum number of items to be returned in result set. Default: |
| Limit results to those matching a string. |
| Limit response to posts published after a given ISO8601 compliant date. |
| Limit response to posts modified after a given ISO8601 compliant date. |
| Limit result set to posts assigned to specific authors. |
| Ensure result set excludes posts assigned to specific authors. |
| Limit response to posts published before a given ISO8601 compliant date. |
| Limit response to posts modified before a given ISO8601 compliant date. |
| Ensure result set excludes specific IDs. |
| Limit result set to specific IDs. |
| Offset the result set by a specific number of items. |
| Order sort attribute ascending or descending. Default: One of: |
| Sort collection by post attribute. Default: One of: |
| Array of column names to be searched. |
| Limit result set to posts with one or more specific slugs. |
| Limit result set to posts assigned one or more statuses. Default: |
| Limit result set based on relationship between multiple taxonomies.
One of: |
| Limit result set to items with specific terms assigned in the categories taxonomy. |
| Limit result set to items except those with specific terms assigned in the categories taxonomy. |
| Limit result set to items with specific terms assigned in the tags taxonomy. |
| Limit result set to items except those with specific terms assigned in the tags taxonomy. |
| Limit result set to items that are sticky. |
POST /wp/v2/posts
The date the post was published, in the site's timezone. | |
The date the post was published, as GMT. | |
An alphanumeric identifier for the post unique to its type. | |
A named status for the post.
One of: | |
A password to protect access to the content and excerpt. | |
The title for the post. | |
The content for the post. | |
The ID for the author of the post. | |
The excerpt for the post. | |
The ID of the featured media for the post. | |
Whether or not comments are open on the post.
One of: | |
Whether or not the post can be pinged.
One of: | |
The format for the post.
One of: | |
Meta fields. | |
Whether or not the post should be treated as sticky. | |
The theme file to use to display the post. | |
The terms assigned to the post in the category taxonomy. | |
The terms assigned to the post in the post_tag taxonomy. |
GET /wp/v2/posts/<id>
POST /wp/v2/posts/<id>
Update a post
DELETE /wp/v2/posts/<id>
Last updated