There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Search for companies by domain

Last updated May 12, 2023

POST /companies/v2/domains/:domain/companies

Method Details

HTTP Methods:

POST

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing & CRM

Required Scope:

crm.objects.companies.read

This endpoint is used to search for companies by domain name.

Use case for this endpoint: This can be used to search for existing companies based on an exact match to the domain property.

Response details

If the request is successful, this method returns a list of company records, since the domain isn't required to be unique. Up to 100 records can be included in a single response.

Required parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Limit "limit": 100
Included in the request body
The number of records to return in a single request. Supports values up to 100.
Properties "requestOptions": {
  "properties": []
}

Included in the request body
A list of properties that will be included for the returned companies. By default, no properties will be included in the response, so you must specify any properties that you want.
Offset "offset": {
  "isPrimary": true,
  "companyId": 0
}

Included in the request body
Each response will include a hasMore value and an offset object. If hasMore is true, then you would use the offset object in the next request to get the next set of results.