APIs & Integrations

bbl
Membro

Search for companies by domain

Hello,

I have a problem with the Hubspot API at the domain name search level.
In the documentation it is explained that we can return a list of properties.
My sent JSON object looks like this :

{
"limit": 20,
"requestOptions": {
"properties": [
"domain",
"client_id"
]
},
"offset": {
"isPrimary": true,
"companyId": 1
}
}

The client_id property that we created does not want to go back up during the response.
Do you have a solution ?

Cordially.

0 Avaliação positiva
3 Respostas 3
3PETE
HubSpot Employee
HubSpot Employee

Search for companies by domain

@bbl Can you show me the full GET request you made?

0 Avaliação positiva
bbl
Membro

Search for companies by domain

I'm not sure I understood your request.

I make a call to this URL with the JSON.
https://api.hubapi.com/companies/v2/domains/hubspot.com/companies
{
"limit":20,
"requestOptions":{
"properties":[
"client_id"
]
},
"offset":{
"isPrimary":true,
"companyId":1
}
}

I receive the following answer with a 200.
{
"results":[
{
"portalId":3853195,
"companyId":754842647,
"isDeleted":false,
"properties":{

     },
     "additionalDomains":[

     ],
     "stateChanges":[

     ],
     "mergeAudits":[

     ]
  }

],
"hasMore":false,
"offset":{
"companyId":754842647,
"isPrimary":true
}
}

The time of the call is the 2018-06-26 15:55:41.

0 Avaliação positiva
3PETE
HubSpot Employee
HubSpot Employee

Search for companies by domain

@bbl I'll direct message you to ask for your portal ID.

0 Avaliação positiva