# Downloading variable values

**URL:** <https://community.postman.com/t/downloading-variable-values/25403>\
**Category:** Help Hub\
**Tags:** variables\
**Created:** [July 1, 2021, 2:42pm UTC](https://community.postman.com/t/downloading-variable-values/25403 "2021-07-01T14:42:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hurtigcodes](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/hurtigcodes/32/9064_2.png) [@hurtigcodes](https://community.postman.com/u/hurtigcodes)\
**Post date:** [July 1, 2021, 2:42pm UTC](https://community.postman.com/t/downloading-variable-values/25403/1 "2021-07-01T14:42:50Z")

</div>

Hi,  
I have a collection that queries several APIs, runs some tests, and throws together some results to an object currently saved in a collection variable. Can I download the contents of said variable to a file in _any_ format?

Thanks!

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [July 2, 2021, 5:13am UTC](https://community.postman.com/t/downloading-variable-values/25403/2 "2021-07-02T05:13:31Z")

</div>

@hurtigcodes Welcome to the Community 🥳

Collection variables are tied with collection, I am not sure of how to extract them alone.

Because you have an option to export the collection,

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/d/d72b3c6074cae4f9a6292deb3bdd902297bd9e7d.png)

And this will give you a JSON file with the array of collection variables like below:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/2/2f07122c36852530e7fb7a70a6a07f093686739e.png)

I am not sure about the context why are looking for variable values separately , please check if this helps 😊

---

<div class="post-metadata">

**Author:** ![hurtigcodes](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/hurtigcodes/32/9064_2.png) [@hurtigcodes](https://community.postman.com/u/hurtigcodes)\
**Post date:** [July 2, 2021, 6:52am UTC](https://community.postman.com/t/downloading-variable-values/25403/3 "2021-07-02T06:52:03Z")

</div>

Thanks! 🙂

If I click ‘persist’ I can export it. Another option I see is to simply copy-paste the value from Postman. It’s not optimal but I guess it could work for some use cases.

I’m open to any way for Postman to write to file/download results, preferably natively without the use of node or external webservers to access ‘fs’. I just figured it might be easiest to persist the results in a collection/environment variable and (somehow) print that.

It seems to me Postman is excellent for testing and downloading responses one at a time, but less so when persisting combined responses.
