curl --request POST \
--url https://api.hubapi.com/companies/v2/domains/{domain}/companies \
--header 'Content-Type: application/json' \
--data '
{
"limit": 123,
"requestOptions": {
"properties": [
"<string>"
]
},
"offset": {
"isPrimary": true,
"companyId": 123
}
}
'[
{
"limit": 2,
"requestOptions": {
"properties": [
"domain",
"createdate",
"name",
"hs_lastmodifieddate"
]
},
"offset": {
"isPrimary": true,
"companyId": 0
}
},
{
"value": "1502872954691",
"timestamp": 1502872954691,
"source": "CALCULATED",
"sourceId": null,
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "1502872954691",
"timestamp": 1502872954691,
"source": "CALCULATED",
"sourceVid": []
}
]
},
{
"value": "hubspot.com",
"timestamp": 1457708103847,
"source": "COMPANIES",
"sourceId": null,
"versions": [
{
"name": "domain",
"value": "hubspot.com",
"timestamp": 1457708103847,
"source": "COMPANIES",
"sourceVid": []
}
]
},
{
"value": "Hubspot, Inc.",
"timestamp": 1457708103906,
"source": "BIDEN",
"sourceId": "name",
"versions": [
{
"name": "name",
"value": "Hubspot, Inc.",
"timestamp": 1457708103906,
"sourceId": "name",
"source": "BIDEN",
"sourceVid": []
}
]
},
{
"value": "1457708103847",
"timestamp": 1457708103847,
"source": "API",
"sourceId": null,
"versions": [
{
"name": "createdate",
"value": "1457708103847",
"timestamp": 1457708103847,
"source": "API",
"sourceVid": []
}
]
},
{
"value": "1498644245669",
"timestamp": 1498644245669,
"source": "CALCULATED",
"sourceId": null,
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "1498644245669",
"timestamp": 1498644245669,
"source": "CALCULATED",
"sourceVid": []
}
]
},
{
"value": "hubspot.com",
"timestamp": 1490280388204,
"source": "API",
"sourceId": null,
"versions": [
{
"name": "domain",
"value": "hubspot.com",
"timestamp": 1490280388204,
"source": "API",
"sourceVid": []
}
]
},
{
"value": "qweqwe2323",
"timestamp": 1490280388204,
"source": "API",
"sourceId": null,
"versions": [
{
"name": "name",
"value": "qweqwe2323",
"timestamp": 1490280388204,
"source": "API",
"sourceVid": []
}
]
},
{
"value": "1490280388204",
"timestamp": 1490280388204,
"source": "API",
"sourceId": "API",
"versions": [
{
"name": "createdate",
"value": "1490280388204",
"timestamp": 1490280388204,
"sourceId": "API",
"source": "API",
"sourceVid": []
}
]
},
{
"companyId": 418736767,
"isPrimary": true
}
]Search for companies by domain name (e.g., hubspot.com).
curl --request POST \
--url https://api.hubapi.com/companies/v2/domains/{domain}/companies \
--header 'Content-Type: application/json' \
--data '
{
"limit": 123,
"requestOptions": {
"properties": [
"<string>"
]
},
"offset": {
"isPrimary": true,
"companyId": 123
}
}
'[
{
"limit": 2,
"requestOptions": {
"properties": [
"domain",
"createdate",
"name",
"hs_lastmodifieddate"
]
},
"offset": {
"isPrimary": true,
"companyId": 0
}
},
{
"value": "1502872954691",
"timestamp": 1502872954691,
"source": "CALCULATED",
"sourceId": null,
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "1502872954691",
"timestamp": 1502872954691,
"source": "CALCULATED",
"sourceVid": []
}
]
},
{
"value": "hubspot.com",
"timestamp": 1457708103847,
"source": "COMPANIES",
"sourceId": null,
"versions": [
{
"name": "domain",
"value": "hubspot.com",
"timestamp": 1457708103847,
"source": "COMPANIES",
"sourceVid": []
}
]
},
{
"value": "Hubspot, Inc.",
"timestamp": 1457708103906,
"source": "BIDEN",
"sourceId": "name",
"versions": [
{
"name": "name",
"value": "Hubspot, Inc.",
"timestamp": 1457708103906,
"sourceId": "name",
"source": "BIDEN",
"sourceVid": []
}
]
},
{
"value": "1457708103847",
"timestamp": 1457708103847,
"source": "API",
"sourceId": null,
"versions": [
{
"name": "createdate",
"value": "1457708103847",
"timestamp": 1457708103847,
"source": "API",
"sourceVid": []
}
]
},
{
"value": "1498644245669",
"timestamp": 1498644245669,
"source": "CALCULATED",
"sourceId": null,
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "1498644245669",
"timestamp": 1498644245669,
"source": "CALCULATED",
"sourceVid": []
}
]
},
{
"value": "hubspot.com",
"timestamp": 1490280388204,
"source": "API",
"sourceId": null,
"versions": [
{
"name": "domain",
"value": "hubspot.com",
"timestamp": 1490280388204,
"source": "API",
"sourceVid": []
}
]
},
{
"value": "qweqwe2323",
"timestamp": 1490280388204,
"source": "API",
"sourceId": null,
"versions": [
{
"name": "name",
"value": "qweqwe2323",
"timestamp": 1490280388204,
"source": "API",
"sourceVid": []
}
]
},
{
"value": "1490280388204",
"timestamp": 1490280388204,
"source": "API",
"sourceId": "API",
"versions": [
{
"name": "createdate",
"value": "1490280388204",
"timestamp": 1490280388204,
"sourceId": "API",
"source": "API",
"sourceVid": []
}
]
},
{
"companyId": 418736767,
"isPrimary": true
}
]Scope requirements
The domain to search for companies by.
The number of records to return in a single request. Supports values up to 100.
A list of properties that will be included for the returned companies.
Show child attributes
Each response will include a hasMore value and an offset object.
Show child attributes
Successful response
The response is of type object.