Forum Discussion
gustavofiretti
4 years agoFrequent Visitor
API Pagination Cursor
Hello, I'm trying to retrave data use an API, and i tested it in PostMan and it gaves me a json file. The API has a limit of 25 lines per page, and in the json i can see the link to the next pag...
gustavofiretti
4 years agoFrequent Visitor
Thank you amitchandak , but i've tried those topics and i wasn't able to adapt it to my code.
otravers
4 years agoCommunity Champion
To solve an unfamiliar problem, try breaking it down into the smallest possible challenge. Right now you don't know how to handle pagination, so focus on solving that by getting everything else out of the way.
Create a copy of your query, remove everything but the source, turn that query into a function, and try adding pagination as explained in the links Amit gave you. Once you have pagination working, you can add back all the post-API processing from your initial query.