APIs & Integrations

taran42
Contributor

Exporting Data via API

SOLVE

I am looking to have an automated script that I will export some of my data from Hubspot (Companies, Contacts and Deals) via the API and save that data in a separate Excel file for each. I looked into the API tutorials that Hubspot had to offer and it looks like using the API will export the data I want into a JSON format. How then can I take that data and transfer it into an Excel document?

 

I have seen a similar extract performed in PowerShell and Python, but I am not versed enough in either of those to write the script for myself.

0 Upvotes
1 Accepted solution
Mike_Eastwood
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Exporting Data via API

SOLVE

Hi @taran42 

 

You'd need a script to convert the JSON data to CSV or Excel – it's not rocket surgery but it would require custom code.

 

Our team builds Custom HubSpot Integrations, please contact me if you'd like to know more.

 

Cheers

Mike

View solution in original post

0 Upvotes
14 Replies 14
ytulsi
Member

Exporting Data via API

SOLVE

Certain types of exports can now be done via API. This feature is in public beta. More information here: https://developers.hubspot.com/docs/api/crm/exports 

DduPlessis
Member | Elite Partner
Member | Elite Partner

Exporting Data via API

SOLVE

Hi @Mike_Eastwood 

 

Is there a way to pull relevant data from HubSpot to an Adobe integration to fill in a Certificate template? Like for example your First and Last name

0 Upvotes
johnelmer
Top Contributor | Elite Partner
Top Contributor | Elite Partner

Exporting Data via API

SOLVE

There is now an app in the HubSpot App Marketplace called Ultimate Data Export for HubSpot. You can export the following data tables and their associations directly to Microsoft Excel:

  • Contacts
  • Web Analytics
  • Companies
  • Deals
  • Deal History
  • Owners
  • Campaigns
  • Engagements
  • Emails
  • Products
  • Tickets
  • Forms
  • and more related subdata such as Pipelines and Associations.

Please mark this as a solution if it helps address your needs.

 

John

Did this post help solve your problem? If so, please mark it as a solution.






John Elmer, CEO
Bayard Bradford

Advanced CRM Implementation | HubSpot Custom Integration Services | Datawarehouse.io Apps for HubSpot
Elite HubSpot Solutions Partner
> Follow me on LinkedIn
dreamerdad
Participant

Exporting Data via API

SOLVE

Can someone clarify the API query parameters I should use to pull utm source data as shown below? Alternatively, I'd like to schedule weekly reports to my email address with the report being sent in the form of a CSV attachment and then auto-pull that csv attachment into a google sheet (via google apps script) and then use that google sheet as a data source in our Looker data studio report. Is there any way to do the former? Any way to do the latter using Ultimate Data Export for HubSpot? I would prefer to use the Hubspot API directly rather than via Ultimate Data Export for HubSpot

1670611871106.jpg

0 Upvotes
shoes2334
Member

Exporting Data via API

SOLVE

Hi John. 

 

Thanks so much for this awesome product.

 

Is there a way to use your product directly through an API for automation?

 

Thanks!

0 Upvotes
johnelmer
Top Contributor | Elite Partner
Top Contributor | Elite Partner

Exporting Data via API

SOLVE
@shoes2334  There are a couple of options in the HubSpot App Marketplace that can meet your needs.  One option is the Excel Integration for HubSpot.  Using this app, your HubSpot data can be set up to refresh in Excel on a regularly scheduled basis. 
Did this post help solve your problem? If so, please mark it as a solution.






John Elmer, CEO
Bayard Bradford

Advanced CRM Implementation | HubSpot Custom Integration Services | Datawarehouse.io Apps for HubSpot
Elite HubSpot Solutions Partner
> Follow me on LinkedIn
0 Upvotes
Mike_Eastwood
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Exporting Data via API

SOLVE

Hi @taran42 

 

You'd need a script to convert the JSON data to CSV or Excel – it's not rocket surgery but it would require custom code.

 

Our team builds Custom HubSpot Integrations, please contact me if you'd like to know more.

 

Cheers

Mike

0 Upvotes
taran42
Contributor

Exporting Data via API

SOLVE

Mike, thanks for the reply. Do you know if there is a way to pull Hubspot data directly into a CSV? Or is the only output from Hubspot JSON (and then converting that)?

0 Upvotes
DduPlessis
Member | Elite Partner
Member | Elite Partner

Exporting Data via API

SOLVE

Hi @Mike_Eastwood 

 

Is there a way to pull relevant data from HubSpot to an Adobe integration to fill in a Certificate template? Like for example your First and Last name

0 Upvotes
Mike_Eastwood
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Exporting Data via API

SOLVE

Hi @taran42 

 

You can manually export a spreadsheet from HubSpot.

 

Or use the APIs to get JSON.

 

Working with CSVs programatically is flakey so JSON is a much better format.

 

Have fun

Mike

0 Upvotes
taran42
Contributor

Exporting Data via API

SOLVE

Mike, thank you for your help. I was able to pull the JSON from Hubspit via the API in Python and then converted it to a CSV with the Pandas module.

GKasireddy
Member

Exporting Data via API

SOLVE

Hi taran42,

How to pull contacts list data from HubSpot into Excel file via API. Please provide any API you are using?

I am using the below API for fetching contacts list.

https://api.hubapi.com/crm/v3/objects/contacts

 

Thank you.

0 Upvotes
taran42
Contributor

Exporting Data via API

SOLVE

@GKasireddy The API you linked should work for getting the data out of Hubspot (I used v2). Once you get the JSON file file, you can use Python to convert that into an Excel file or another tool. Ultimately I brought the JSON data into Alteryx as a BLOB and converted it there.

GKasireddy
Member

Exporting Data via API

SOLVE
Thanks taran42. It is working.