# How to run multiple API request with multiple testdata for each request via Newman

**URL:** <https://community.postman.com/t/how-to-run-multiple-api-request-with-multiple-testdata-for-each-request-via-newman/6975>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [August 5, 2019, 11:56am UTC](https://community.postman.com/t/how-to-run-multiple-api-request-with-multiple-testdata-for-each-request-via-newman/6975 "2019-08-05T11:56:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pmaindan](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pmaindan](https://community.postman.com/u/pmaindan)\
**Post date:** [August 6, 2019, 6:25pm UTC](https://community.postman.com/t/how-to-run-multiple-api-request-with-multiple-testdata-for-each-request-via-newman/6975/3 "2019-08-06T18:25:21Z")

</div>

Thanks for the material @aamir.ahmed, but can we identify which request data in the array of json input will serve which api request in the collection

Do u imply that we need to execute different/multiple newman cmds like  
–\> newman run -folder api1 -data inputfile1  
–\> newman run -folder api2 -data inputfile2

Doing this in an automation fashion requires to maintain a mapping file between api folders and inputfiles

Do we have the ability to make this possible in just one command?

---

_[View the full topic](https://community.postman.com/t/how-to-run-multiple-api-request-with-multiple-testdata-for-each-request-via-newman/6975)._
