How to change the number of posts that WordPress JSON Api loads per page

How to change the number of posts that WordPress JSON API loads per page.

The default is 25, because of low internet connection I want to make it less.

Related posts

2 comments

  1. As explained in the documentation, you can specify the maximum number of posts in the response with the count parameter in your request.

    Example with user-friendly permalinks configured:

    http://www.example.org/api/get_posts/?count=10
    

Comments are closed.