This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I have an iterative macro for API pagination. My input contains multiple API calls. I'm wondering if it's possible to run the iterative macro one at a time. In other words, I would like to run one API call with pagination, then when there is no more pagination, run the next API call with pagination...
The issue I'm having with the iterative macro is I'm reaching the API rate limit although I have a throttle tool before the download tool. Another issue is that some of the API calls didn't run successfully.
I believe those issues are due to the fact that I have API pagination with multiple API calls. I believe the issue will be solved if I combine the iterative macro and the batch macro. But I'm not succeeded it yet.
Does anyone know how to run the workflow one at a time with pagination?
Thank you for your reply. I agree that creating all URLs before downloading them is a good idea for pagination. After your reply, I dig into the API documentation. I realized that there is a limit of 10,000 mentions that can be retrieved using the pagination (Link).
So, I need to use maximumIdInResult,which is the latest id of a mention in the result, and use it for the next API call to retrieve all mentions (Link).
I think inserting the iterative macro within the batch macro would solve this issue. I'm testing the batch macro right now. I will let you know how it goes.