Get All Members of Static List via API | Community
Skip to main content
May 15, 2018
Solved

Get All Members of Static List via API

  • May 15, 2018
  • 1 reply
  • 2400 views

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:

{0}/rest/v1/lists/{1}/leads.json?access_token={2}&fields=id

Is there any way to read all at once?

Thank you!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 15, 2018

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

May 15, 2018

Do you have any articles/examples on the same?

SanfordWhiteman
New Participant
May 15, 2018

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