SOLVED

Re: Get All Members of Static List via API

Go to solution
Anonymous
Not applicable

Get All Members of Static List via API

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!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Get All Members of Static List via API

Not in one HTTP request, you need to page through 300 at a time (most API endpoints work like this).

View solution in original post

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Get All Members of Static List via API

Not in one HTTP request, you need to page through 300 at a time (most API endpoints work like this).

Anonymous
Not applicable

Re: Get All Members of Static List via API

Do you have any articles/examples on the same?

SanfordWhiteman
Level 10 - Community Moderator

Re: Get All Members of Static List via API

It's all in the docs: follow nextPageToken until moreResult is false.