How to goto the next page from API call

Anonymous
Not applicable

Hello,

I am calling multiple leads API by giving list id and i can see by default its only gives back 300 leads and give you a nextpageToken. Could some one please tell me how to get the next page?

Thanks.

2 REPLIES 2
Grégoire_Miche2
Level 10

The first call returned a nextpage token. Call again the API, passing this next page token as a parameter.

-Greg

SanfordWhiteman
Level 10 - Community Moderator

You include the nextPageToken in the next call.  This is all in the docs: Get Lead Activities » Marketo Developers