How to Pull ALL Posts, Categories, or Tags in WordPress REST API

I have read other posts on this forum and none of which I read are solving my problem.

Whenever I do:
http://www.example.com/wp-json/wp/v2/posts?filter[posts_per_page]=-1

Or even:
http://www.example.com/wp-json/wp/v2/posts?filter[posts_per_page]=99

It still returns 10 posts. The same is happening when I try to get the Categories, or the Tags.

I have a request to pull ALL categories, tags, and posts from the REST API as a single list.

2 Answers
2

According to the documentation, the correct argument is per_page

Leave a Comment