# Need help in code for downloading the file in get REST API

**URL:** <https://community.postman.com/t/need-help-in-code-for-downloading-the-file-in-get-rest-api/7652>\
**Category:** Help Hub\
**Created:** [September 6, 2019, 5:47pm UTC](https://community.postman.com/t/need-help-in-code-for-downloading-the-file-in-get-rest-api/7652 "2019-09-06T17:47:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saveuser12345](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@saveuser12345](https://community.postman.com/u/saveuser12345)\
**Post date:** [September 6, 2019, 5:47pm UTC](https://community.postman.com/t/need-help-in-code-for-downloading-the-file-in-get-rest-api/7652/1 "2019-09-06T17:47:05Z")

</div>

Hi All,

I have a requirement where I am getting a Zip file in response for a get request. I would like to store the file in a location. This is one of my steps in the collection job.

How can I automate in such a way that when I run the collection when this step comes it should download the zip file and store in a location without manual intervention?

Please send the sample code or the document which will be a great help for me. I am pretty new to this API methodologies.
