Get more that 50 domains with GET zones


#1

Hello.
I’m using the api code to list zones.
The problem is that i can only get max 50 domains.
Is there any way to get the rest ?

thank you.

Thomas


#2

Hi there,

Our API docs do a good job of explaining this here.
The max per page is 50. You should see the result info in the bit at the end.
It should look like:

 "result_info": {
    "page": 1,
    "per_page": 20,
    "count": 1,
    "total_count": 2000

Change the page value in the call to get the rest


#3

Thank you for your reply.
The api docs are great but as i wrote above, no matter what i do, I only get the first 50 domains (i have 131).
I don’t know if there is a limit or maybe I’m doing something wrong.


#4

Can you post the code snippet you’re using?