# Multiple api calls in a single run

**URL:** <https://community.postman.com/t/multiple-api-calls-in-a-single-run/49520>\
**Category:** Help Hub\
**Created:** [July 13, 2023, 1:48pm UTC](https://community.postman.com/t/multiple-api-calls-in-a-single-run/49520 "2023-07-13T13:48:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunar-module-partici](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@lunar-module-partici](https://community.postman.com/u/lunar-module-partici)\
**Post date:** [July 13, 2023, 1:48pm UTC](https://community.postman.com/t/multiple-api-calls-in-a-single-run/49520/1 "2023-07-13T13:48:02Z")

</div>

Hi I have made an api call where one of the variables is a list of time periods for which I want to retrieve data. It looks something like [MTD,QTD,YTD].

Now I would like to somehow have an individual api call for each time period without having to press ‘run’ multiple times. Is there an easy way of doing this.

As it is confidential company data, I cannot make the workbook publicly available. I can however make anonymized screenshots if needed.

Hope some can help.

Kind regards,  
Jonah

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [July 13, 2023, 2:57pm UTC](https://community.postman.com/t/multiple-api-calls-in-a-single-run/49520/2 "2023-07-13T14:57:27Z")

</div>

You can use the Collection Runner with an input file (CSV or JSON).

Or you can utilize setNextRequest() in the tests tab to run the same request in loop.

Both methods are covered in the Postman training.

If you are new to Postman I would recommend the Postman training links which are located under “other resources” in the Learning Centre.

[Other resources | Postman Learning Center](https://learning.postman.com/docs/introduction/resources/)

The “Galaxy API’s 101” course gets you used to sending requests and the GUI.

The “Galaxy Testing and Automation” gets you used to testing your responses and using variables, basic scripting, etc.

Also take a look at the following.

[Postman JavaScript reference | using-environment-variables-in-scripts](https://learning.postman.com/docs/writing-scripts/script-references/postman-sandbox-api-reference/#using-environment-variables-in-scripts)

Finally, Postman uses JavaScript under the hood, If you are going to be scripting, I would also recommend learning some JavaScript basics. [WC3 schools](https://www.w3schools.com/) is a good place to start.
