- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-20-2025 07:22 AM
Hello, interested in exporting device list from iot platform.
I see a API endpoint for this but it doesn't have examples or document how to do filtering or page next since the it is capped to 1000 devices per request. please advise.
https://pan.dev/iot/api/device-inventory/ >
https://api.strata.paloaltonetworks.com/pub/v1/device/list
06-20-2025 08:18 AM
Hi @S.Mulpuru ,
You can work around the 1000-device limit by automating the process using pagination. The API allows you to retrieve up to 1000 devices per request using the pagelength
parameter. By starting with an offset
of 0 and increasing it by 1000 with each request, you can loop through all available devices until the response returns fewer than 1000 items.
Since the API also enforces a rate limit of 60 requests per minute, try to pace your requests accordingly. You can do this by adding a short delay (e.g., 1 second) between each call or by implementing a rate-limiting mechanism that automatically waits when the limit is approached. so you can ensure your script remains compliant and avoids being throttled or blocked.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!