"It is not possible to fetch associations through contact search API. Also if you want to fetch company properties which is associated with contact. Then you will have to follow the following step: 1. First you will have to fetch the ssociated company ID using contact fetch API. 2. After that you can fetch company properties through the company id which is received in step 1 using the company fetch API"
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member. Thanks!
As we are sunsetting the Contact V1 List API, I wanted to check if it's possible to retrieve all association properties using the V3 API.
Specifically, can we fetch company association properties(properties of company not just id) using the V3 API?
Thanks in advance! Sasi Rekha
Thanks in advance. Sasi Rekha
Yes, with HubSpot's V3 API, you can retrieve properties of associated companies, not just their IDs. When querying objects like contacts, you can use the associations parameter to include associated companies in your response. To fetch specific properties of these associated companies, you can utilize the Search API and specify the desired company properties in the properties parameter of your request. This approach allows you to retrieve comprehensive details about associated companies directly within your API responses.