How to goto the next page from API call

Anonymous
Not applicable

How to goto the next page from API call

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
SanfordWhiteman
Level 10 - Community Moderator

Re: How to goto the next page from API call

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

Grégoire_Miche2
Level 10

Re: How to goto the next page from API call

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

-Greg