API response only listing 10…

This topic contains 2 replies, has 3 voices, and was last updated by  Kiran 4 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #535302

    Rodney Chatman
    Expired Member
    Post count: 89

    Hello,

    Is there a setting to have the API return more than 10 responses per query? Ideally, I’d like to be able to set the number of listings, categories…etc returned by an API query.

    #535330

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    the developers will take a look at your topic.

    #535378

    Kiran
    Moderator
    Post count: 7069

    Hi Rodney,

    By default is returns 10 items per page. You can use per_page parameter to retrieve desired number of items per page.
    Ex: &per_page=20

    See https://developer.wordpress.org/rest-api/using-the-rest-api/pagination/#pagination-parameters

    Kiran

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket