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.

Get recently modified and created companies

Last updated May 12, 2023

GET /companies/v2/companies/recent/modified

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing & CRM

Required Scope:

crm.objects.companies.read

Returns a list of all companies sorted by the date the companies were most recently modified or created. This is particularly useful for ongoing syncs with HubSpot in which changes to companies must be captured in another system.

Note: This endpoint will only return records modified or created in the last 30 days, or the 10K most recently modified and created records.  If you need to get all of your companies, please use this endpoint.

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.
Optional Parameters How to use Description
offset &offset=x - Used in the request URL. This is used to get the next page of results. Each request will return an offset in the response, and you'd use that offset in the URL of your next request to get the next page of results.
Count &count=x - Used in the request URL. Specifies the number of companies to be returned.
Since &since=x Only return companies modified or created after timestamp x. x must be a UNIX formatted timestamp in milliseconds.

If request is successful you'll receive a 200 response.