APIs & Integrations

krycerk
Member

Contacts Lists via API

Hi, I've created a Contacts List using the API (that I can also update via the API):

POST URL: https://api.hubapi.com/contacts/v1/lists?hapikey=... (body of request with a filter)

but I have to wait about 17 seconds to get a list of contacts using ListId:

GET URL: https://api.hubapi.com/contacts/v1/lists/<ListId>?hapikey=...

Is this delay some restrictions on the HubSpot API side please? Is there another and faster way to get contacts according to the specified filter via API?

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Employee
HubSpot Employee

Contacts Lists via API

Hi @krycerk,

 

If the Contact List has just been created and it is pulling in a couple hundreds/thousands of contacts into the list, I would expect that it would require sometime to process the list. 

 

This behaviour is the same in-app. If we try building a list with citeria i.e. email is known > Once we hit the 'Save' button, we will see a light yellow banner stating that the list is still processing. Usually this would take less than 1 min depending on the size of the contact list.

 

I would advise your team to retrieve the list of contacts 1-2 mins after creation of the contacts list. 

0 Upvotes
krycerk
Member

Contacts Lists via API

Hi @WendyGoh,

thank you for answer.
I understand what you write, especially when List is dynamic. However, there are not hundreds / tens of records, but we have 10 contacts in the HubSpot test account and the filter should only return a few units of records.

 

We require faster response time for API usage.

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

Contacts Lists via API

Hi @krycerk,

 

If it's 10 contacts I would expect the list to finish processing pretty instantly. In this case, can you share with me your portal ID and the list in question? I'd like to test things out on my end.

0 Upvotes