Skip to main content
May 15, 2018
Solved

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:

{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.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
May 15, 2018

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

3 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
May 15, 2018

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

Translate
May 15, 2018

Do you have any articles/examples on the same?

Translate
SanfordWhiteman
Level 10
May 15, 2018

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

Translate