APIs & Integrations

RajeshGembrill
Member

How to get associations in the search API endpoints

SOLVE

We are trying to fetch the filter tasks data in that we additionally required contact association. It is very hard to fetch the associated object by using many API calls which is very costly. Please suggest the possibilities ASAP.
Thanks In Advance

1 Accepted solution
Jaycee_Lewis
Solution
Community Manager
Community Manager

How to get associations in the search API endpoints

SOLVE

Hi, @RajeshGembrill 👋 Have you already looked into using the pseudo-property associations? Here is the documentation — Search through associations.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

View solution in original post

17 Replies 17
FVogel5
Participant

How to get associations in the search API endpoints

SOLVE

as gdforj said, im running into rate limitations if i have to query each response from the search api.
I'm honestly considering getting all deals and filter them myself (which makes the search endpoint useless) in order to get associations on the api response

is there a ticket i can upvote or anything of the sorts? is there any plan to fix this in the near future?

0 Upvotes
CichociemnyKuba
Participant

How to get associations in the search API endpoints

SOLVE

Hi, any updates?

It's really harmful that we can't get associations for deals via SearchAPI...

 

EDIT: I've created an Idea to add this feature. Please upvote if you are interested https://community.hubspot.com/t5/HubSpot-Ideas/Retrieving-Associated-IDs-via-HubSpot-APIv3-SearchAPI...

aravet
Participant | Diamond Partner
Participant | Diamond Partner

How to get associations in the search API endpoints

SOLVE

Hello,

Yes i'm running in the same issue. Would be really usefull to get that functionnaly ! Any news on that ? @Jaycee_Lewis 

Thanks,
Antoine,

ISlonim
Participant

How to get associations in the search API endpoints

SOLVE

Any news on this? running into the same issue, and this is impacting a lot of hubspot customers who already have an issue with the limited CPQ capabalities and are considering switching to a different platform - 

 

@Jaycee_Lewis

0 Upvotes
snehal268
Participant

How to get associations in the search API endpoints

SOLVE

Hey @Jaycee_Lewis ,

Can we get the association records in repose data in Search API? Why Search API dose not support associations as parameter?

 

Regards,

Snehal

 

0 Upvotes
FSoto8
Participant

How to get associations in the search API endpoints

SOLVE

reopen this, because hubspot api dont response correctly.

0 Upvotes
Jaycee_Lewis
Solution
Community Manager
Community Manager

How to get associations in the search API endpoints

SOLVE

Hi, @RajeshGembrill 👋 Have you already looked into using the pseudo-property associations? Here is the documentation — Search through associations.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

snehal268
Participant

How to get associations in the search API endpoints

SOLVE

Hey @Jaycee_Lewis 

Can we get the association records in repose data in Search API? Why Search API dose does not support associations as parameters?

 

0 Upvotes
gdforj
Member

How to get associations in the search API endpoints

SOLVE

Hi,

 

In the current state, the search API does not yield the associations.

One has to make additional requests per each found object to get its associations.

This results in a much bigger number of requests, which can run into the API rate limitations very quickly.

 

In order for the API to be effective and useful, it needs to return the associations directly in the search response.

 

Could we get some visibility to when this issue will be resolved? This is quite important to integrate HubSpot reliably to other softwares.

KTefft
Participant

How to get associations in the search API endpoints

SOLVE

The accepted solution needs to address the issue. Are there any plans to add this functionality?

FSoto8
Participant

How to get associations in the search API endpoints

SOLVE

please create an issue with this.

Anonymous
Not applicable

How to get associations in the search API endpoints

SOLVE

I'm facing the same problem. I need the companies associations to be returned in the response when searching through contacts. Is this possible on the search API?

FSoto8
Participant

How to get associations in the search API endpoints

SOLVE

please create an issue post to hubspot fix this.

COSmith
Participant

How to get associations in the search API endpoints

SOLVE

Hi @Jaycee_Lewis - can you please reopen this issue - this is not an acceptable solution. 

 

The requirement is to return associations information in the response body, not to filter by them.

 

I am trying to return contact information for the `ticket` objects via the search api and cannot do so. This is a major defect in your API and makes having this endpoint completely useless. Please can you address this ASAP?

 

request_type = 'POST'
url = 'https://api.hubapi.com/crm/v3/objects/ticket/search'
header = {"authorization": "Bearer ", "content-type": "application/json"}
data = {
"properties": [
"hubspot_owner_id",
"hs_pipeline",
"category",
"hs_ticket_category",
"content",
"hs_submission_name",
"source_type",
"associations.contact.id"
],
"limit":100,
"filterGroups": [{"filters":[{"propertyName":"source_type","operator":"EQ","value":"CHAT"}]}]
}

FSoto8
Participant

How to get associations in the search API endpoints

SOLVE

please create an issue to hubspot fix this.

RajeshGembrill
Member

How to get associations in the search API endpoints

SOLVE

Hi, @Jaycee_Lewis

Thanks for the reply.
The documentation which you shared says, to use associations for filters. But my requirement is to get association details in response data.

Thanks In Advance,
Rajesh Kumar.A
tclark228
Member

How to get associations in the search API endpoints

SOLVE

Hi @RajeshGembrill , @iCos  did either of you ever find a way to do this?