WP REST API – Retrieve content from page

I already get posts from categories with: http://domain.com/wp-json/wp/v2/posts?filter[category_name]=category-name
but how can i retrieve content from page? – [page_name]=page-name for example but its not working. I have searched lot but cant found any solution. Thanks.

4 Answers
4

To retrieve a page by slug, just use /wp-json/wp/v2/pages/?slug=your-page-name-here, with “your-page-name-here” obviously being the slug of your page.

Leave a Comment