Supply: Pagination

Modified on Thu, 9 Jan at 10:46 AM

By default, the API will return 10 parts.

You can add the "limit" parameter to increase this value up to a maximum of 100 parts requested.

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

The page start value cannot exceed 1000.


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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article