09-15-2020 05:54 PM - edited 09-15-2020 05:54 PM
Hey all,
It looks like I'm hitting the limit of my REST API call, see below.
"kind": "collection#NetworkObj",
"selfLink": "https://x.x.x.x/api/objects/networkobjects/",
"rangeInfo": {
"offset": 0,
"limit": 100,
"total": 110
},
Is there a workaround for this? Can I increase the limit? If so, how?
Thank you.
Solved! Go to Solution.
09-15-2020 06:13 PM - edited 09-16-2020 05:27 AM
I believe what you are running into is pagination. Pretty common in REST APIs in order to manage what is returned.
Have you seen this section in the documentation? If the link below does not get you to the right section just search for "pagin"
Sorting and Paginating Query Results
09-15-2020 06:13 PM - edited 09-16-2020 05:27 AM
I believe what you are running into is pagination. Pretty common in REST APIs in order to manage what is returned.
Have you seen this section in the documentation? If the link below does not get you to the right section just search for "pagin"
Sorting and Paginating Query Results
09-16-2020 08:49 AM - edited 09-16-2020 08:50 AM
Thanks again @Claudia de Luna. Based on the total value I've created a loop that will pull down requests by adjusting the offset value. This has worked a treat. The script looks ugly but it works!
09-16-2020 10:51 AM
Hi @WVD, I'm happy that helped. Thats exactly what I do! Not ugly if it gets the job done!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide