Getting smart list leads using REST

Pavel_Franger
Level 2

Getting smart list leads using REST

Hi everyone,

I want to use REST to extract a list of leads from Marketo.

Can anyone give me some direction with this.

Kind regards,

Pav.

Pav
10 REPLIES 10
SanfordWhiteman
Level 10 - Community Moderator

Re: Getting smart list leads using REST

You cannot retrieve from Smart Lists at this time, only Static Lists (i.e. "Lists").

The Marketo Bulk Extract API, which begins release this very month, will be able to retrieve based on Smart List membership. However, your instance may not be enabled for SL retrieval so soon (the feature requires that your back end be upgraded first, which is being done on an as-needed basis based on volume).

Pavel_Franger
Level 2

Re: Getting smart list leads using REST

O.K next question...

If i wanted to extract a list of leads who have changed their data value with in a certain time period. How can this be done using a REST API?

Pav
SanfordWhiteman
Level 10 - Community Moderator

Re: Getting smart list leads using REST

Have you read the developer docs? This should be clear from reading about the Activities - Lead Changes API endpoint.

Pavel_Franger
Level 2

Re: Getting smart list leads using REST

Thanks Sanford for your quick replies. I'll read up on that.

Pav
Anonymous
Not applicable

Re: Getting smart list leads using REST

Hi Guys,

Is this Smart List Leads API now available? I just tried downloading leads using this API and was expecting it to return some leads, but API response was empty.

GET /rest/v1/smartListId/{SmartListID}/leads.json?access_token={token}&fields=email,createdAt,updatedAt,firstName

Has anyone trailed this one with success?

SanfordWhiteman
Level 10 - Community Moderator

Re: Getting smart list leads using REST

It wouldn't be accessed that way, even if it were available in your instance -- there's no such signature.

The docs and endpoint definition are at http://developers.marketo.com/rest-api/bulk-extract/bulk-lead-extract/

Anonymous
Not applicable

Re: Getting smart list leads using REST

Any word on smart list queries ever becoming available? This is a real PITA.

Erik_Larson
Level 2

Re: Getting smart list leads using REST

Yeah you can programmatically access smart lists. The general flow is to create the bulk job, grab the job id, enqueue the job, and export when the job status hits complete. I have some code that I can send over if it would be helpful, just let me know.

SanfordWhiteman
Level 10 - Community Moderator

Re: Getting smart list leads using REST

Why not post it here (the client language isn't important, just the endpoint docs)?