10.31.18 / Academy Pagination with the API share post By default, LogicMonitor’s API will return a max of 1000 responses for any query made. For example, if a request is made to get device information, you will only receive the first 1000 devices back with the fields requested as parameters. Considering the above limitation, how would you retrieve properties for more than 1000 devices? To accomplish this, you’ll need to edit the query parameters of the script, which will apply to any programming language. Original query: To return display name and ID for 2000 devices, the size and offset parameters are necessary, as shown next: The above edited query will now additionally return the next 1000 devices. The size parameter can be changed as to limit the number of responses that are given at a time. For example, you could return the first 30 results instead of 1000 by setting size=30 in your request. More from LogicBlog Blog / 04.22.21 Q&A With Forrester Senior Analyst Rich Lane LogicMonitor CRO Mark Banfield and Forrester Senior analyst Rich Lane discuss the importance of AIOps and more. Blog / 04.21.21 Cultivating Wellness in a Global Health Crisis Amidst the 2020 Global Health Crisis, LogicMonitor has introduced a series of initiatives to promote wellness for employees and beyond. See how! Blog / 04.16.21 Learnings From a Not so Technical Person Working In Tech Briana Friden, Talent Acquisition Specialist at LogicMonitor, shares advice on being a non-technical person working in a technical space. View all Let's talk shop, shall we? Get started