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

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.