Search for companies by domain

companies

#1

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.


#2

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


#3

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.


#4

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