# downloading reports in view using code

**URL:** <https://community.hubspot.com/t/downloading-reports-in-view-using-code/24659>\
**Category:** Marketplace Apps\
**Created:** [August 26, 2020, 2:06pm UTC](https://community.hubspot.com/t/downloading-reports-in-view-using-code/24659 "2020-08-26T14:06:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![1604devesh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/1604devesh/32/44643_2.png) [@1604devesh](https://community.hubspot.com/u/1604devesh)\
**Post date:** [August 26, 2020, 2:06pm UTC](https://community.hubspot.com/t/downloading-reports-in-view-using-code/24659/1 "2020-08-26T14:06:02Z")

</div>

![30724i7B1527BC8878266A.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/1/8142e27e3f36e3534f153fc93df9bc7f55d25f5f.png)

I am able to download this report which is shown in the image by clicking on “Table actions” and then “Export view”. I want to download the same report using some code in a csv or excel format because I need to perform some operations to that data and I want to refresh my data on a daily/weekly basis. So, I cannot go to hubspot link again and again and download the report manually. Thanks in advance for the help.

---

<div class="post-metadata">

**Author:** ![natsumimori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/natsumimori/32/39807_2.png) [@natsumimori](https://community.hubspot.com/u/natsumimori)\
**Post date:** [August 27, 2020, 6:55am UTC](https://community.hubspot.com/t/downloading-reports-in-view-using-code/24659/2 "2020-08-27T06:55:18Z")

</div>

Hi @1604devesh ,

Could you clarify what do you mean by saing “_download the same report using some code in a csv or excel format_”?

Here is a general guidance on how to export contact records: [[Export contacts, companies, deals or tickets](https://knowledge.hubspot.com/crm-setup/export-contacts-companies-deals-or-tickets)]

---

<div class="post-metadata">

**Author:** ![1604devesh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/1604devesh/32/44643_2.png) [@1604devesh](https://community.hubspot.com/u/1604devesh)\
**Post date:** [August 27, 2020, 8:13am UTC](https://community.hubspot.com/t/downloading-reports-in-view-using-code/24659/3 "2020-08-27T08:13:35Z")

</div>

Hi @natsumimori

As mentioned in the link provided by you, I can download report by visiting the hubspot website but I want to download the exact same report without visiting the hubspot website. I want to use some kind of pyhton code for doing that or any other programming language would also work. Thanks

---

<div class="post-metadata">

**Author:** ![natsumimori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/natsumimori/32/39807_2.png) [@natsumimori](https://community.hubspot.com/u/natsumimori)\
**Post date:** [August 28, 2020, 4:55am UTC](https://community.hubspot.com/t/downloading-reports-in-view-using-code/24659/4 "2020-08-28T04:55:32Z")

</div>

Thank you for the clarification @1604devesh .

@Kevin-C and [@Jake\_Lett](https://community.hubspot.com/t5/user/viewprofilepage/user-id/72866) , do you know if this is possible??

---

<div class="post-metadata">

**Author:** ![Jake\_Lett](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jake_lett/32/45178_2.png) [@Jake\_Lett](https://community.hubspot.com/u/Jake_Lett)\
**Post date:** [August 29, 2020, 7:45am UTC](https://community.hubspot.com/t/downloading-reports-in-view-using-code/24659/5 "2020-08-29T07:45:50Z")

</div>

Hello. Below is the process I would take to achieve what you are trying to do.

1. open up your existing .csv file in a code editor and take note of the formatting with commas.

2. Next use the HubSpot contacts API to pull your contacts with the properties you need [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/contacts)

3. format that output to match the csv template you exported in step 1  
**Additional resources if you are new the using the API**

- [2026-03 API reference - HubSpot docs](https://developers.hubspot.com/docs/api/overview)
- [https://academy.hubspot.com/courses/introduction-to-hubspot-apis](https://academy.hubspot.com/courses/introduction-to-hubspot-apis)

* * *

**Jacob Lett**

[Freelance HubSpot CMS Developer & Web Designer](https://bootstrapcreative.com/hubspot-designer/?utm_source=HubSpotCommunity&utm_term=tagline)

* * *

[  
  ![28844i368E9AAC739341A8.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/0/0fa6bcd420e080a29fc75d42359cf2879b6e162d.png)  
 ](https://bootstrapcreative.com/hubspot-designer/?utm_source=HubSpotCommunity&utm_term=logo)

Located in Michigan, USA

[**Need a custom HubSpot theme or template? ›**](https://bootstrapcreative.com/contact-us/?utm_source=HubSpotCommunity&utm_term=need%20custom%20theme)
