APIs & Integrations

Not applicable

API to pull all form results

We use two Hubspot forms on our website to collect leads and then we use the Calling API function in HubSpot to transfer the data to our CRM system (Microsoft Dynamics) every hour. Over the past 2 weeks, we have noticed that some of our leads are missing from the data that is being transferred.

The link that we are using looks like this: http://api.hubapi.com/contacts/v1/lists/all/contacts/recent?count=100&hapikey=24a69a1e-e3a4-462a-920...

After reviewing the code with my developer and individually reviewing the contacts that were not coming through, I found the issue - this API feed is only looking at new contacts. We want to pull every new form that is completed, regardless if they are new contact or an existing contact. Any ideas how to update our process to include all web form completions?

0 Upvotes
1 Reply 1
3PETE
HubSpot Employee
HubSpot Employee

API to pull all form results

@jennifer It is only pulling new contacts because you are using the get recent contacts endpoint and you are limiting that to the most recent 100 as well. Try using the get all contacts endpoint instead.

Get all contacts | Contacts API

GET /contacts/v1/lists/all/contacts/all - For a given portal, return all contacts that have been created in the portal.

0 Upvotes