Skip to main content

tap-hubspot

tap-hubspot is a Singer tap for Hubspot.

Built with the Meltano Singer SDK.

Capabilities

  • catalog
  • state
  • discover
  • about
  • stream-maps
  • schema-flattening
  • batch

Settings

Setting Required Default Description
access_token False None Token to authenticate against the API service
client_id False None The OAuth app client ID.
client_secret False None The OAuth app client secret.
refresh_token False None The OAuth app refresh token.
start_date False None Earliest record date to sync
end_date False None Latest record date to sync
stream_maps False None Config object for stream maps capability. For more information check out Stream Maps.
stream_map_config False None User-defined config values to be used within map expressions.
flattening_enabled False None 'True' to enable schema flattening and automatically expand nested properties.
flattening_max_depth False None The max depth to flatten schemas.
batch_config False None
custom_object_types False None List of HubSpot custom CRM object type names to sync (e.g. ['patches']). Requires HubSpot Enterprise and crm.objects.custom.read + crm.schemas.custom.read scopes.
associations False None Mapping of from_object_type to a list of to_object_types to sync associations for (e.g. {'contact': ['company', 'deal']}). No association streams are created unless this is set. See Associations below.

A full list of supported settings and capabilities is available by running: tap-hubspot --about

Elastic License 2.0

The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software.

Installation

pipx install git+https://github.com/MeltanoLabs/tap-hubspot.git

Configure using environment variables

This Singer tap will automatically import any environment variables within the working directory's .env if the --config=ENV is provided, such that config values will be considered if a matching environment variable is set either in the terminal context or in the .env file.

Source Authentication and Authorization

A Hubspot access token is required to make API requests. (See Hubspot API docs for more info)

Streams

Stream Replication Description
contacts Incremental People in your HubSpot CRM
companies Incremental Company records in your CRM
deals Incremental Sales opportunities and pipeline deals
leads Incremental Individual sales leads linked to a contact and company (objectTypeId: 0-136)
line_items Incremental Products attached to deals
goal_targets Incremental Sales and activity goal records
calls Incremental Call engagement records
communications Incremental Communication engagement records
emails Incremental Email engagement records
meetings Incremental Meeting engagement records
notes Incremental Note engagement records
postal_mail Incremental Postal mail engagement records
tasks Incremental Task engagement records
owners Full Table HubSpot users who own CRM records
users Full Table Users in your HubSpot account
teams Full Table HubSpot Teams and their member user IDs
products Full Table Product library items
tickets Full Table Customer support tickets
quotes Full Table Sales quotes
feedback_submissions Full Table Customer feedback survey responses
ticket_pipelines Full Table Ticket pipeline and stage definitions
deal_pipelines Full Table Deal pipeline and stage definitions
email_subscriptions Full Table Email subscription type definitions
properties Full Table Property definitions for all CRM object types

Permissions

The following scopes need to be added to your access token to access the following endpoints:

  • Contacts: crm.objects.contacts.read
  • Companies: crm.objects.companies.read
  • Deals: crm.objects.deals.read
  • Associations: the read scope for each object type configured in associations (e.g. syncing ['contact', 'company'] needs crm.objects.contacts.read and crm.objects.companies.read)
  • Leads: crm.objects.leads.read
  • Owners: crm.objects.owners.read
  • Users: settings.users.read
  • Teams: settings.users.teams.read
  • Feedback Submissions: crm.objects.feedback_submissions.read
  • Calls: crm.objects.calls.read
  • Communications: crm.objects.communications.read
  • Emails: sales-email-read
  • Meetings: crm.objects.meetings.read
  • Notes: crm.objects.notes.read
  • Postal Mail: crm.objects.postal_mail.read
  • Tasks: crm.objects.tasks.read
  • Line Items: e-commerce
  • Products: e-commerce
  • Tickets: tickets
  • Ticket Pipelines: tickets
  • Deal Pipelines: crm.objects.deals.read
  • Quotes: crm.objects.quotes.read
  • Goal Targets: crm.objects.goals.read
  • Email Subscriptions: content
  • Properties: same scopes as the corresponding object type
  • Custom Objects: crm.objects.custom.read and crm.schemas.custom.read (HubSpot Enterprise only)

For more info on the streams and permissions, check the Hubspot API Documentation.

Associations

No association streams are created by default. To sync associations between two CRM object types, add an associations config setting mapping each from_object_type to a list of to_object_types, using HubSpot's object type names (e.g. contact, company, deal, ticket):

{
  "associations": {
    "contact": ["company", "deal"]
  }
}

Each from/to pair creates one full-table stream named <from_object_type>_<to_object_type>_associations (e.g. contact_company_associations), fetched via HubSpot's CRM v4 associations batch/read endpoint. Each record has from_id, to_id, association_type_id, association_type_category, and association_type_label.

Associations aren't reflected in an object's hs_lastmodifieddate, so these streams always do a full resync — there's no way to fetch only associations that changed since the last run.

Object type names must match HubSpot's CRM object type identifiers, not this tap's stream names. Common ones, including every object type this tap already has a stream for:

Object type name Corresponding tap stream
contact contacts
company companies
deal deals
lead leads
line_item line_items
product products
ticket tickets
quote quotes
call calls
communication communications
email emails
meeting meetings
note notes
postal_mail postal_mail
task tasks
feedback_submission feedback_submissions
goal goal_targets

Any other standard or custom HubSpot object type name is also valid (e.g. order, invoice, or a custom object's fullyQualifiedName), as long as your access token has read access to both object types in the pair.

Usage

You can easily run tap-hubspot by itself or in a pipeline using Meltano.

Streams Using v1 Endpoints

The following Streams use the v1 (legacy) endpoint in the Hubspot API:

  1. TicketPipeline & DealPipeline: The v3 endpoint requires a pipeline ID parameter to make calls to the API. Because of this, you are limited to only pulling data for a single pipeline ID from v3, whereas the v1 API allows you to pull from all pipelines.
  2. EmailSubscriptions: The v3 endpoint requires you to set a single email address to pull subscription data, whereas the v1 endpoint allows you to pull data from all emails.

Stream Inheritance

This project uses parent-child streams. Learn more about them here.

Executing the Tap Directly

tap-hubspot --version
tap-hubspot --help
tap-hubspot --config CONFIG --discover > ./catalog.json

Developer Resources

Follow these instructions to contribute to this project.

Initialize your Development Environment

curl -LsSf https://astral.sh/uv/install.sh | sh  # https://docs.astral.sh/uv/getting-started/installation/
uv sync

Create and Run Tests

Create tests within the tests subfolder and then run:

uv run pytest

You can also test the tap-hubspot CLI interface directly using uv run:

uv run tap-hubspot --help

Testing with Meltano

Note: This tap will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.

Your project comes with a custom meltano.yml project file already created. Open the meltano.yml and follow any "TODO" items listed in the file.

Next, install Meltano (if you haven't already) and any needed plugins:

# Install meltano
uv tool install meltano
# Initialize meltano within this directory
cd tap-hubspot
meltano install

Now you can test and orchestrate using Meltano:

# Test invocation:
meltano invoke tap-hubspot --version
# OR run a test EL pipeline:
meltano run tap-hubspot target-jsonl

SDK Dev Guide

See the dev guide for more instructions on how to use the SDK to develop your own taps and targets.

Release files for meltano-tap-hubspot 0.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meltano-tap-hubspot 0.10.1
File Size Uploaded
meltano_tap_hubspot-0.10.1.tar.gz 16.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meltano-tap-hubspot 0.10.1
File Interpreter ABI Platform
meltano_tap_hubspot-0.10.1-py3-none-any.whl Python 3 none any Details

Total release size: 34.5 kB

Release files / meltano_tap_hubspot-0.10.1.tar.gz

Download URL meltano_tap_hubspot-0.10.1.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f05f16b35b405bdce4d5c86e300fbbac120353517644bcde58d1de3041dadd3f
BLAKE2b-256 checksum
How to use checksums
69f5d48ec8ba302bfcbd305992a214cf8739b96f4c248375d817e2a56d72d61f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / meltano_tap_hubspot-0.10.1-py3-none-any.whl

Download URL meltano_tap_hubspot-0.10.1-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a8e527c46952c3f66567d26134071df39c4b3cb4fb42c90202728b643154d23
BLAKE2b-256 checksum
How to use checksums
eb09efd896b904207cc4a399f930dfcf699bd0f5e04946f3f2052779d33f07a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.10.1 This release

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page