wordpress - How do I view multiple posts on WP REST API? -


i can https://public-api.wordpress.com/rest/v1/sites/www.website.com/posts/ view latest 20 posts on wp site.

how view more 20? or view posts?

as described in documentation get /sites/$site/posts/, include appropriate number , page paramenters in query string.

to view first 100:

https://public-api.wordpress.com/rest/v1.1/sites/en.blog.wordpress.com/posts/?number=100&page=1

to view second 100:

https://public-api.wordpress.com/rest/v1.1/sites/en.blog.wordpress.com/posts/?number=100&page=2

etc.


Comments