Hello,
I have a static list in Marketo which has 1000 leads/people added to it. Now, I am trying to pull all these 1000 leads using API (based on list ID) to compare these with the records in other system but, it returns max of 300 only.
API used:
https://{0}/rest/v1/lists/{1}/leads.json?access_token={2}&fields=id
Is there any way to read all at once?
Thank you!
Solved! Go to Solution.
Not in one HTTP request, you need to page through 300 at a time (most API endpoints work like this).
Do you have any articles/examples on the same?
It's all in the docs: follow nextPageToken until moreResult is false.