get WP-API by page id

If you want to use v2 of the API (which is the current one you should be using), the endpoint is mysite.me/wp-json/wp/v2/pages/1234 where 1234 is the page ID.

https://developer.wordpress.org/rest-api/reference/pages/#retrieve-a-page

Leave a Comment