# How to migrate the Hubspot analytics data to SQL Server

**URL:** <https://community.hubspot.com/t/how-to-migrate-the-hubspot-analytics-data-to-sql-server/31948>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [February 18, 2021, 7:11am UTC](https://community.hubspot.com/t/how-to-migrate-the-hubspot-analytics-data-to-sql-server/31948 "2021-02-18T07:11:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kavya](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kavya/32/57633_2.png) [@Kavya](https://community.hubspot.com/u/Kavya)\
**Post date:** [February 18, 2021, 7:11am UTC](https://community.hubspot.com/t/how-to-migrate-the-hubspot-analytics-data-to-sql-server/31948/1 "2021-02-18T07:11:30Z")

</div>

Hi All,

**Goal: Use Hubspot analytics for web traffic data.**

So how to fetch/see the data for the HubSpot analytics? or is there any way to export the data of Hubspot analytics to SQL server.

I have used **Skyvia** tool to export other data like companies, contacts, deals and etc.

Is there any other tool to export the analytics data?

Suggestion and help will be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [February 18, 2021, 8:02am UTC](https://community.hubspot.com/t/how-to-migrate-the-hubspot-analytics-data-to-sql-server/31948/2 "2021-02-18T08:02:50Z")

</div>

Hi @Kavya,

HubSpot has an analytics API that you can use to get analytics data. Here’s the link:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Flegacy%2Freporting-v2%2Fget-analytics-v2-reports-breakdown_by-time_period)**

You can use this library to connect with HubSpot as it has the analytics API support -

> **[GitHub - HubSpot/hubspot-php: HubSpot PHP API Client](https://github.com/HubSpot/hubspot-php)**
>
> HubSpot PHP API Client

And please feel free to reach out to us or join HubSpot slack channel if you need any assistance.

Hope this helps,

Regards,

---

<div class="post-metadata">

**Author:** ![Kavya](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kavya/32/57633_2.png) [@Kavya](https://community.hubspot.com/u/Kavya)\
**Post date:** [February 18, 2021, 10:10am UTC](https://community.hubspot.com/t/how-to-migrate-the-hubspot-analytics-data-to-sql-server/31948/3 "2021-02-18T10:10:51Z")

</div>

Hi, Thanks for your reply.

But is there any app through which I can migrate the Hubspot analytics data to SQL server? or any cloud server?

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [February 19, 2021, 4:54am UTC](https://community.hubspot.com/t/how-to-migrate-the-hubspot-analytics-data-to-sql-server/31948/4 "2021-02-19T04:54:52Z")

</div>

Hi @Kavya,

HubSpot has an analytics API that you can use to get analytics data.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Flegacy%2Freporting-v2%2Fget-analytics-v2-reports-breakdown_by-time_period)**

You can use this library as it has the analytics API support to connect with HubSpot -

> **[GitHub - HubSpot/hubspot-php: HubSpot PHP API Client](https://github.com/HubSpot/hubspot-php)**
>
> HubSpot PHP API Client

And please feel free to reach out to us or join the HubSpot slack channel if you need any assistance.

Hope this helps,

Regards,

---

<div class="post-metadata">

**Author:** ![johnelmer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johnelmer/32/55984_2.png) [@johnelmer](https://community.hubspot.com/u/johnelmer)\
**Post date:** [March 28, 2021, 3:28pm UTC](https://community.hubspot.com/t/how-to-migrate-the-hubspot-analytics-data-to-sql-server/31948/5 "2021-03-28T15:28:03Z")

</div>

@Kavya @himanshurauthan We offer an app in the HubSpot App Marketplace called [MS SQL Server for HubSpot](https://ecosystem.hubspot.com/marketplace/apps/marketing/data-management/mssql-replicator) . The app pulls your HubSpot data into a SQL data warehouse via prebuilt API connectors. This app does what you are looking for without needing Skyvia or any other tools. A SQL data warehouse in Azure is included in the cost.

Once your HubSpot data is in the data warehouse, it automatically refreshes on a scheduled basis. You can connect the SQL data warehouse to any other application that has a SQL connector.
