n8n

How to Sync HubSpot Contacts for Lead Management?

Pull all HubSpot contacts into one clean list with one click. Great for marketing teams that need a fresh export for campaigns, segmentation, or reporting.

After you start the run, the flow builds the request URL, calls the HubSpot contacts API with a limit of 100, and waits 5 seconds between calls to respect rate limits. It checks if more pages exist, grabs the next link, and loops until all pages are finished. The logic merges every page into one data set so you do not handle files or manual merges. The result is a single, reliable list that is easy to use in ads, email tools, or analytics.

Setup is simple. Add your HubSpot API key in the HTTP request and adjust the limit or wait time if your account needs slower calls. Expect faster list pulls and fewer errors compared to manual exports. Useful for weekly list refresh, ad audience prep, list hygiene checks, or CRM growth audits.

What are the key features?

  • Manual trigger lets you run the export on demand.
  • Dynamic URL builder selects the first or next page automatically.
  • HTTP Request pulls 100 contacts per call using your API key.
  • Wait step pauses 5 seconds to avoid rate limits and failed calls.
  • If step detects pagination and routes to the next page link.
  • Set step saves the next link and feeds it back into the request loop.
  • Combine all data merges every page into one clean list.
  • NoOp keeps the path simple and stable between steps.

What are the benefits?

  • Reduce manual exports from 2 hours to 5 minutes
  • Automate 100 percent of pagination and merging
  • Improve contact data accuracy by 90 percent by avoiding copy paste
  • Handle large lists reliably with safe 5 second pacing
  • Connect HubSpot CRM data to reporting or campaign prep

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with HubSpot. See the Tools Required section above for links to create accounts with these services.
  3. Open the HTTP Request node. In query parameters, replace the placeholder value with your HubSpot API key. If you prefer credentials, double click the node, choose the credential dropdown, click Create new credential, then follow the on screen instructions.
  4. Confirm the URL points to the contacts endpoint and that the limit is set to 100. Adjust the limit only if you understand your API rate limits.
  5. Open the Wait node and keep 5000 milliseconds for safe pacing. Increase this value if you see rate limit errors.
  6. Check the Config URL node. It should output the initial contacts endpoint and accept the next page link when looping.
  7. Click Execute to run. Watch the HTTP Request node to see multiple runs as pages load.
  8. Open the Combine all data node output. Confirm the results array contains all contacts across pages and that the total matches your HubSpot count.
  9. If you see 401 or 403 errors, verify your HubSpot API key and permissions. Make sure the key has access to CRM objects.
  10. If you see 429 rate limit errors, raise the wait time in the Wait node and try again.
  11. If no data returns, check that your HubSpot portal has contacts and that the endpoint URL is correct.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

HubSpot

Sign up

Free: $0 / mo; API access included (private app or OAuth). Limits on Free: 250,000 API calls/day and 100 requests per 10 seconds per private app.

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.