Connect your data to Claude in 1 minute. No code needed Try it now

Connect HubSpot to PostgreSQL

Send HubSpot deals, contacts, companies and 21 more data types to PostgreSQL on a schedule. Pick columns, filter by date and add your own filters. Refresh as often as every 15 minutes.

capterra
star star star star star

4.9/5

PostgreSQL schema hubspot
  • deals
  • contacts
  • companies
  • communications
  • feedback_submissions
  • 19 more data types
Each HubSpot data type lands in its own table. You pick the schema and table names.
Trusted by 200K+ users worldwide
Tradezella
Stanford
Webtoon
Getir
Stellar
Anker
ParentSquare
Bac 50
Benzinga
Matterport

How to connect HubSpot and PostgreSQL

8 steps. You can preview the HubSpot data in Coupler.io before anything reaches PostgreSQL.

Step 1 of 8

Connect HubSpot

Sign in to HubSpot and authorize Coupler.io. There's no API key to copy.

Sign in with HubSpot

Step 2 of 8

Choose what to export

Pick the HubSpot data you want in PostgreSQL.

Frequently used

Miscellaneous

Show 16 more data types Show fewer data types

Miscellaneous

Reports

Step 3 of 8

Pick columns

Keep only the columns you need, so the table stays easy to work with.

ColumnsNot setSelect the columns you want to import (if empty - all columns are imported). You can choose from the dropdown or add columns manually.Learn more
Return Ids for lookups instead of labelsNot set

Step 4 of 8

Filter by date

Limit the export to records in a date range.

Created after dateAny date
Created before dateAny date
Updated after dateAny dateSpecify the start date to filter your data from. The date, in this case, refers to the updating date of a selected data entity (Deals, Contacts, Companies, etc).
Updated before dateAny dateSpecify the end date to filter your data to. The date, in this case, refers to the updating date of a selected data entity (Deals, Contacts, Companies, etc).
Show 1 more field Show fewer fields
Split data by periodNot setBy default, the report will present a daily breakdown for the specified analytics period.

Step 5 of 8

Narrow it down

Filter HubSpot records before they reach PostgreSQL.

Advanced filtersNot setPlease provide up to two filters (including time based filters above). HubSpot’s API only allows using up to 2 filters at once.Learn more

Step 6 of 8

Pick metrics and dimensions

Choose what to measure and how to break it down.

Summarize metrics asNot setSpecify the interval of report.
BreakdownNot setSelect a value for “breakdown”, e.g. “Totals”, “Sessions”, “Sources”.

Step 7 of 8

Connect PostgreSQL

Enter your PostgreSQL connection details, then the schema and table for the HubSpot data.

Hostdb.example.comHostname, IPv4, or IPv6 address of the server
Port5432Default is 5432
DatabaseanalyticsThe target database name
TabledealsCreated automatically on the first run
Show 3 more fields Show fewer fields
UsercouplerUser with CREATE and INSERT privileges
Password••••••••••••The database user's password
SchemahubspotCreated automatically if it doesn't exist

Step 8 of 8

Choose a write mode and schedule

Every run either replaces or appends the data in PostgreSQL. Run it as often as every 15 minutes.

Write mode

Each run deletes the existing rows in deals and loads fresh HubSpot data.

Get the most of HubSpot to PostgreSQL integration

Gather data icon

Gather data

Export data from numerous apps and sources into a single destination. Blend data from different apps to get a single source of truth.
Understand data icon

Understand data

Preview, transform, sort, and filter data for better clarity in just a few clicks in the Coupler.io interface. Take your data analytics to the next level.
Automate data icon

Automate data

Access data that is always up to date by enabling the automatic data refresh on a schedule as often as every 15 minutes and using triggered automation.
Act on data icon

Act on data

Visualize your data by quickly connecting to data visualization and BI tools. Build insightful dashboards in a breeze and make better decisions.
HubSpot to PostgreSQL questions

24 data types, including Deals, Contacts, Companies, Communications and Feedback submissions.

You sign in to HubSpot and authorize Coupler.io. There's no API key to copy.

Yes. Filter by created date or updated date to load the period you need. Splitting the data by period is available too.

Yes. Pick the columns you need, and only those reach PostgreSQL.

Yes. Add filter conditions in the source settings to keep only the HubSpot records you need.

Yes, if the database user has CREATE privileges. Coupler.io creates the hubspot schema and the deals table on the first run.

Yes. Append adds new rows to deals on each run, while Replace swaps in a fresh copy. With Append, add new HubSpot columns to the table yourself before the next run.

On a schedule you choose, from monthly down to every 15 minutes, depending on your Coupler.io plan.

Yes. Add more sources to the same data flow, for example GoHighLevel or Pipedrive, and join or append them before the data reaches PostgreSQL.

High five for scrolling till the very end!
See you in the app!