Ask the Community
Groups
Pagination in the IT Glue API - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><em>For partners subscribed to the current Enterprise plan.</em></p> <p>All calls to the API are returned by pages. By default, only the first 50 items will be returned. You can specify further pages with the <strong><em>page[number]</em></strong> parameter. You can also set a custom page size with the <strong><em>page[size]</em></strong> parameter.</p> <p>For example, let's say you need to request all pages of configuration items, but you only want the results 25 at a time. Your GET request will look something like this:</p> <ul><ul><li><strong><em>GET /configurations?page[size]=25</em></strong></li> </ul></ul><p>To get the next 25 items, your GET will look something like this:</p> <ul><ul><li><strong><em>GET /configurations?page[size]=25&page[number]=2</em></strong></li> </ul></ul><p>To know how many pages are left, you will find at the bottom of each page a meta section that lists the total number of pages <strong><em>("total-pages": 5)</em></strong> and the total item count <strong><em>("total-count": 121)</em></strong>.</p> <p>Beware of requesting too many results at once. If your requests are timing out, try lowering the page size.</p> <p>Note that you can also add filtering and sorting conditions to these requests. For more information, see our <a rel="nofollow" href="https://kaseya.vanillacommunities.com/kb/articles/aliases/itglue/hc/en-us/articles/360004934397">Sorting and filtering in the IT Glue API</a> article.</p> <h3 data-id="1000-result-limit">1000 result limit</h3> <p>The maximum number of results that can be requested is 1000. For most use cases, 1000 results will be more than enough.</p> <p>Related articles</p> <ul><li><a rel="nofollow" href="https://kaseya.vanillacommunities.com/kb/articles/aliases/itglue/hc/en-us/articles/360004938078">Getting started with the IT Glue API</a></li> </ul> </article> </main>