There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.

Get Recently Created Companies

Last updated June 17, 2020

GET /companies/v2/companies/recent/created

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 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 created in the last 30 days, or the 10k most recently 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 API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
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. Used to page through the results. Each request will return an offset value that you use in the next request to get the next set of result.
Count &count=x - Used in the request URL. Specifies the number of companies to be returned.

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