# Execute API call N times

**URL:** <https://community.easymorph.com/t/execute-api-call-n-times/5072>\
**Category:** General Q&A\
**Created:** [December 17, 2023, 5:13pm UTC](https://community.easymorph.com/t/execute-api-call-n-times/5072 "2023-12-17T17:13:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![litus](https://community.easymorph.com/user_avatar/community.easymorph.com/litus/32/5251_2.png) [@litus](https://community.easymorph.com/u/litus)\
**Post date:** [December 17, 2023, 5:13pm UTC](https://community.easymorph.com/t/execute-api-call-n-times/5072/1 "2023-12-17T17:13:41Z")

</div>

Hello,

I'm fighting to try adapt this topic to my scenario but I think mine is easier:

> [@How to pull data from web APIs with pagination](https://community.easymorph.com/t/how-to-pull-data-from-web-apis-with-pagination/2160):
>
> The "Repeat" action introduced in v4.5 can be used to pull data from web APIs that require pagination. Such APIs don't return all the requested data in one response, but instead return a limited set (page) of records (e.g. 10 records per page) and require specifying a page in requests (e.g. p=2). The calling application must sequentially pull page by page from such API until it pulls all the required data. Unfortunately, pagination is not specified in the web standards. Therefore, in real life …

What I need is to call N times until the response is empty, but I don't know if I can increment the page parameter and call it recursively N times

Thanks for any help!

I don't know if this is a way

 ![image](https://community.easymorph.com/uploads/default/original/2X/d/d703ed88fcd906ad2869811a5efefda362ec33e0.png)

Or better

 ![image](https://community.easymorph.com/uploads/default/original/2X/b/b24eba44190fbd872e726df63e93b82cba1419b4.png)

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [December 19, 2023, 5:08am UTC](https://community.easymorph.com/t/execute-api-call-n-times/5072/2 "2023-12-19T05:08:43Z")

</div>

I've just posted a new, simpler example for querying APIs with pagination. Check it out: [API Pagination - Next Page - #4](https://community.easymorph.com/t/api-pagination-next-page/5076/4)

Let me know if you have questions.
