APIs & Integrations

TimS1
Member

Get Customer Updates gets all companies every time even if use the since

SOLVE

Hi Everyone,

 

I am using the companies recent modified api call and I am finding that the call retrieves every company even though i pass the since parameter.  This is taking a lot of time to process AND then it is forcing the error on the > 10000 records.

 

Here is my call:

https://api.hubapi.com/companies/v2/companies/recent/modified?count=50&offset=10000&since=1592379900

 

Here is the error:

{"status":"error","message":"Result window is too large, count + offset must be less than or equal to: 10000 but was 10050. See the scroll api for a more efficient way to request large data sets.","correlationId":"I removed the id"}

 

Thanks in advance.

 

Tim

0 Upvotes
1 Accepted solution
Willson
Solution
HubSpot Employee
HubSpot Employee

Get Customer Updates gets all companies every time even if use the since

SOLVE

Hey @TimS1 

 

Taking a look into your timestamp there, when I convert this, I am getting the following date: January 19th, 1970 11:19 AM

 

Timestamps need to be in milliseconds when working with our API, try changing this value to, 1592379900000

 

I hope this helps!

Product Manager @ HubSpot

View solution in original post

0 Upvotes
2 Replies 2
Willson
Solution
HubSpot Employee
HubSpot Employee

Get Customer Updates gets all companies every time even if use the since

SOLVE

Hey @TimS1 

 

Taking a look into your timestamp there, when I convert this, I am getting the following date: January 19th, 1970 11:19 AM

 

Timestamps need to be in milliseconds when working with our API, try changing this value to, 1592379900000

 

I hope this helps!

Product Manager @ HubSpot
0 Upvotes
TimS1
Member

Get Customer Updates gets all companies every time even if use the since

SOLVE

Thanks Matthew!

0 Upvotes