Forum Discussion
How to handle Pagination/Limiting while getting Data from an API
Hey, I have an issue and hope you can help me on that.
My data comes from an api that only allows to get 200 projects with one API-Call.
Since we have around 1500 Projects I have to increment the offset by 200 till 1400 obviously.
So far I made 8 different requests and than summed these together to one request. I think thats not a great method and pretty static.
But I haven't found a solution for that so far. I have to put in a limit to the request because else it will return "400".
That why it does not show me any results if I leave out the limit/offset
Is there a possibility to add all of these 8 requests (with increasing offseat) directly into 1? When I try it with "..url.. & ..url.. & ..url.." it wouldn't work as well.
My API-Request links are looking like that:
and so on..
Best regards
2 Replies
- amitchandakSuper User
- hexitatedHelper I
Thanks for the reply. Unfortunately the API does not support odata or cursor pagination.
I can only navigate through "limit" and "offset"