# Response in Postman should be saved to local

**URL:** <https://community.postman.com/t/response-in-postman-should-be-saved-to-local/14587>\
**Category:** Help Hub\
**Created:** [July 29, 2020, 12:43pm UTC](https://community.postman.com/t/response-in-postman-should-be-saved-to-local/14587 "2020-07-29T12:43:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsha](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@Harsha](https://community.postman.com/u/Harsha)\
**Post date:** [July 29, 2020, 12:43pm UTC](https://community.postman.com/t/response-in-postman-should-be-saved-to-local/14587/1 "2020-07-29T12:43:20Z")

</div>

After getting a JSON response, can we store it to our local in any text format? by writing any type of script in Tests

---

<div class="post-metadata">

**Author:** ![srepetop](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@srepetop](https://community.postman.com/u/srepetop)\
**Post date:** [August 6, 2020, 11:47am UTC](https://community.postman.com/t/response-in-postman-should-be-saved-to-local/14587/2 "2020-08-06T11:47:21Z")

</div>

Hi.

If I’m not wrong, yes, you can.  
Just run this command onto your newman console:

`newman run yourCollection.json -e yourEnvironment.json --reporters cli,junit --reporter-junit-export "newmanReports/JUnitReport.xml"`

Of course you previously need to export your collection and environment(s) to the same route you are executing your newman command.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [August 6, 2020, 11:52am UTC](https://community.postman.com/t/response-in-postman-should-be-saved-to-local/14587/3 "2020-08-06T11:52:45Z")

</div>

Are you asking about through the Postman app or through newman?

You can [manually save the response](https://stackoverflow.com/questions/46812596/saving-api-response-in-postman-to-a-file/48326846#:~:text=There%20are%202%20ways%20of,when%20the%20request%20is%20done.) in the app, but I’m not sure of a way you can do it via the tests.
