Get all customers with owner_id

I have been trying to use API v4 with associations to get an export of all companies with their owner_id.

I wasn’t able to do this, so another member provided me with the following curl:

crm/v3/objects/companies?limit=10&properties=hubspot_owner_id&archived=false

While this works, I’m getting issues with the max limiet of 100 companies.
I either need to use pagination and then use offset to go over the next 100 companies and so on…
Is there an option to do a get_all for one time with owner_id?
Additional question: after I get the first dataload, I want to limit my API calls and just do a daily http call where I check for “UpdatedAt” where it should be the date of yesterday. Is it possible in the API call to use UpdatedAt as a parameter and define the date that it should be?
EDIT: Regarding my last question, i could use filters and then use propertyname updatedat and operator BETWEEN. So this part is sorted :slightly_smiling_face:

Hey, @MLamotte8 :waving_hand: In this case, there is not a method or way to force the API to return all in a single call. Using the offset and pagination is the correct and documented way to make your requests.

I hope this helps get you moving forward! — Jaycee

Thanks Jaycee!

My apologies, I did NOT read the documentation right :slightly_smiling_face:

I used 0, 100, 200,… as offset, instead of using the company ID I last recovered.
It works now!

That’s gotten me too! Glad to hear it’s working now :blush: — Jaycee