Supply: Pagination

Modified on Thu, 18 Jan 2024 at 12:56 PM

By default, the API will return 10 parts.

You can add the "limit" parameter to increase this value.

You can also select what page you start on - page 2 will begin on the 11th hit if the default limit is 10.


Here is an example of using limits and start pages:

#This will return 15 parts
query partsByMpn {
  supSearchMpn (q: "acs770", limit: 15){
    hits
    results {
      part {
        id
        name
        mpn        
      }
    }
  }
}
#This will return ten parts, but start on the 11th part (page 2)
query partsByMpn {
  supSearchMpn (q: "acs770", start: 2){
    hits
    results {
      part {
        id
        name
        mpn        
      }
    }
  }
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article