Skip to main content

Mon, Oct 7, 2019 1:25 PM

Answered

list of the client en API /query/client

Hello, I am working with the SZ100 API, and I need to get the complete list of connected clients I am using the following call:

https://ip_sz100:7443/api/public /v5_0/query/client

and this answers me and says that there are 120 clients, but only with the information of the first 10 clients. How can I do so that I respond with the information of all the clients?

Regards

Responses

133 Messages

 • 

2.5K Points

a year ago

All of the apis that can return a long list of options are paginated. Meaning they respond with only the first N answers and you need to keep calling them with a "page" attribute to get the next N. I don't recall the parameter name but search the api guide for pagination. Or open your browser and use F12 (developer console) to see the api calls that the GUI makes. Go to the client page and then click on the "next" arrow to get more results

2 Messages

 • 

80 Points

a year ago

Thank you very much, you should add the following in the in data:

"limit": 200

Regards


133 Messages

 • 

2.5K Points

a year ago

Well. That will work but only up to 200 clients. And eventually won't work cause the limit parameter is not "infinite". Don't remember the max value. But eventually you will need to support pagination