Get all leads via rest api
Can we use lead changes api (activities/leadchanges.json ) to get all leads created(by passing field as lead id). Is there any limit on the timestamp we can pass to the api to get all the leads created after that date?
Can we use lead changes api (activities/leadchanges.json ) to get all leads created(by passing field as lead id). Is there any limit on the timestamp we can pass to the api to get all the leads created after that date?
For your particular task, i.e., initial export of all the leads - you can use the smart list/static list membership (i.e., create a SL/List with all people in it) as the filter in the bulk export endpoint instead of the createdAt filter. Another option would be to simply CSV export the leads from the Marketo GUI from a SL that has all the people in it, but that can certainly take much longer time to process before you can export the file than via the bulk export API, the processing time depends on your DB size.
Also, with the non-bulk endpoints you'd be limited to a max of 300 records per API call. That would result in too many API calls to the Marketo if you're db size is large and an effort to automate the process of calling the endpoint until the moreResult flag is returned as true in the reponse (clearly, manually calling the REST API with the nextpage token until all the records are exported is not a viable option).
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.