APIs & Integrations

Ian_Woods
Member

Cannot fetch more than 10,000 records for endpoint

SOLVE

Hello,
My company has an integration with Hubspot, and we often make a lot of API calls against certain endpoints. I’ve never encountered an endpoint breaking after going 10,000 records deep, yet this occurred earlier this week:

curl ‘https://api.hubapi.com/companies/v2/companies/recent/modified?count=100&access_token={access_token}&...

{
“status”: “error”,
“message”: “Cannot fetch more than 10000 total records for this endpoint”,
“correlationId”: “{dont_know_if_this_is_secret}”,
“requestId”: “{dont_know_if_this_is_secret}”
}

Does anyone know why an endpoint may be inaccessible after 10,000 records? Thanks!

0 Upvotes
1 Accepted solution
Dadams
Solution
HubSpot Employee
HubSpot Employee

Cannot fetch more than 10,000 records for endpoint

SOLVE

Hi @Ian_Woods

The /recent companies endpoints were updated at the start of November to return only the 10k most recently updated records. You can find more details in the announcement posts here:

Hi everyone, We have some upcoming changes that we're going to be making to the recently modified and created endpoints for companies and deals. Currently, these endpoints will allow you to pull records going back to the creation of your portal. At the end of this month (October), we'll be changing the endpoints so that they'll only return records created or modified in the last 30 days. In addition, the endpoints will be limited to the most recently created or updated 10,000 records, even…

If you’re trying to get all of the companies in HubSpot, you can do that with the new endpoint documented here:

Get all companies

GET /companies/v2/companies/paged - Get all companies in a portal

View solution in original post

0 Upvotes
2 Replies 2
Dadams
Solution
HubSpot Employee
HubSpot Employee

Cannot fetch more than 10,000 records for endpoint

SOLVE

Hi @Ian_Woods

The /recent companies endpoints were updated at the start of November to return only the 10k most recently updated records. You can find more details in the announcement posts here:

Hi everyone, We have some upcoming changes that we're going to be making to the recently modified and created endpoints for companies and deals. Currently, these endpoints will allow you to pull records going back to the creation of your portal. At the end of this month (October), we'll be changing the endpoints so that they'll only return records created or modified in the last 30 days. In addition, the endpoints will be limited to the most recently created or updated 10,000 records, even…

If you’re trying to get all of the companies in HubSpot, you can do that with the new endpoint documented here:

Get all companies

GET /companies/v2/companies/paged - Get all companies in a portal

0 Upvotes
Ian_Woods
Member

Cannot fetch more than 10,000 records for endpoint

SOLVE

Great, that explains it.

Thanks so much for the response.

0 Upvotes