I believe you can use something like this from the API :

/wp-json/wp/v2/pages?filter[slug]=pageslug

the correct form is:

http://example.com/wp-json/wp/v2/pages/533

I hope I have helped.

regards


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.


Try /wp-json/wp/v2/pages/<id>. Not sure if retrieving a page by name is possible using the REST API.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.