APIs & Integrations

dabid
Member

Search contacts: need to get all contact's properties

SOLVE

Hello all, I would like to know if there's a way to get all contact's properties (not only the default ones) without typing them all in the 'properties' array (kind of burdensome especially if we have plenty, but moreover it's not so flexible if some new properties are added later via hubspot admin app).

 

A kind of wilcard would be great (tested just in case, but it fails :))

0 Upvotes
1 Accepted solution
RMones
Solution
Contributor | Platinum Partner
Contributor | Platinum Partner

Search contacts: need to get all contact's properties

SOLVE

Hi @dabid ,

 

You can try to do this with the Schema API.

 

https://api.hubapi.com/crm/v3/schemas/contacts

There will be an entry in the response with all the properties they exist on the Contact records.

 

You can create a object from the properties there and add them to the next call.

 

Greets Ronald

View solution in original post

4 Replies 4
dabid
Member

Search contacts: need to get all contact's properties

SOLVE

Sounds good @RMones , I'll try this. Thank you both for your responsiveness

0 Upvotes
RMones
Solution
Contributor | Platinum Partner
Contributor | Platinum Partner

Search contacts: need to get all contact's properties

SOLVE

Hi @dabid ,

 

You can try to do this with the Schema API.

 

https://api.hubapi.com/crm/v3/schemas/contacts

There will be an entry in the response with all the properties they exist on the Contact records.

 

You can create a object from the properties there and add them to the next call.

 

Greets Ronald

camera
Participant

Search contacts: need to get all contact's properties

SOLVE

Hello people,

 

I'm trying to do the same thing, but I didn't figured out how to the Schema API will be helpful.

 

We have more than 600.000 contacts and more than 800 properties. So, the only way that I found, was to divide the properties in groups of 100 (there are a charactere limitation in the request that I don't know how many yet).

 

Then, we do a request 100 by 100 contacts for each group (a lot of requests!). And after that we will have to do a merge in the database to unify all the properties for each contacts.

 

Is there anything that I'm not seeing?

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Search contacts: need to get all contact's properties

SOLVE

@dabid 

There is no way to do this with the API call, but I believe there is a library that can do this.

@quentin_lamamy , can you help out here?

0 Upvotes