APIs & Integrations

ralf_f
Contributor

API crm/v3/objects/companies/search

SOLVE

Hi,

if this POST return increases the 10000 offset I get an error:

{
    "status""error",
    "message""There was a problem with the request.",
    "correlationId""f9da8b69-65e6-4283-94e3-cb02fa6b183e"
}
works with
"limit"100, "after"9900
Is this intended? How do I get the rest of the data?
Thanks for ideas
0 Upvotes
1 Accepted solution
ralf_f
Solution
Contributor

API crm/v3/objects/companies/search

SOLVE

Hi Zach,

thx for the discussion 😉

View solution in original post

4 Replies 4
zachh
Contributor | Platinum Partner
Contributor | Platinum Partner

API crm/v3/objects/companies/search

SOLVE

Hi @ralf_f 

 

Are you possibly running into Hubspot's rate limits? Without more context, I'm not clear on what you're trying to do; are you trying to pull a list of 10,000 companies from the same API call?

 

- Zach

0 Upvotes
ralf_f
Contributor

API crm/v3/objects/companies/search

SOLVE

Hi Zach,

I try to get companies based on a search filter and get pages by limit = 100 (which is maximum of the API). If a next page is available I get it after a while I run into this error.
I have tried postman and this has nothing to do with limit rates of I exceed 10000 it fails.
thx Ralf

0 Upvotes
zachh
Contributor | Platinum Partner
Contributor | Platinum Partner

API crm/v3/objects/companies/search

SOLVE

Hi @ralf_f 

 

It appears this is a limitation of the Search API at this time:

"The search endpoints are limited to 10,000 total results for any given query. Attempting to page beyond 10,000 will result in a 400 error."

 

There may be workarounds elsewhere in the community, but somebody else might be able to speak to that better.

 

- Zach

0 Upvotes
ralf_f
Solution
Contributor

API crm/v3/objects/companies/search

SOLVE

Hi Zach,

thx for the discussion 😉