REST API Get All Leads

Anonymous
Not applicable

REST API Get All Leads

Hi,

We used to be able to grab all leads using the SOAP API because the get leads endpoint would return 1,000 leads at a time.  With a 10,000 API quota limit we can no longer get all leads using the new REST API.  What is the most efficient way to get all leads from the REST API? 

Tags (1)
8 REPLIES 8
Neil_Robertson6
Level 5

Re: REST API Get All Leads

You will can get them via List ID, Program ID or via Filter.  For larger batches you will have to iterate though them grabbing batches of 300 at a time.

Anonymous
Not applicable

Re: REST API Get All Leads

Is there a way to bring in get analytics reports and smart lists from the API?

Using List ID for indexing is not realistic approach.... because when customers look at lists in Marketo they search by the List Name not the List ID.

How will we know the list we are looking for by indexing the list ID?

Thank you,

Sara

Anonymous
Not applicable

Re: REST API Get All Leads

I agree with Sara.  Also...is there a more scalable way of doing this?  This requires a very large number of api calls.  It also seems crazy that the NEW rest api requires more calls to retrieve all leads.  It's almost like we are being penalized for using the REST api even though this is what Marketo plans on supporting more thoroughly and adding new features to.  It seems unfair to have to scale our API quota as we scale our database.  If we scale our database, it seems fair to have our api quota scale with it.  We already pay to scale our database to allow for more leads, do we have to also pay to access this data from the api?

Anonymous
Not applicable

Re: REST API Get All Leads

Is there a more scalable way of doing this?  This requires a very large number of api calls.  It also seems crazy that the NEW rest api requires more calls to retrieve all leads.  It's almost like we are being penalized for using the REST api even though this is what Marketo plans on supporting more thoroughly and adding new features to.  It seems unfair to have to scale our API quota as we scale our database.  If we scale our database, it seems fair to have our api quota scale with it.  We already pay to scale our database to allow for more leads, do we have to also pay to access this data from the api? 

Anonymous
Not applicable

Re: REST API Get All Leads

All we want is to get the same data that customers pay for to view the data on Marketo in the API. Its the same data. Not less or more data.

I think thats a reasonable request.

Anonymous
Not applicable

Re: REST API Get All Leads

Hello Rjan,

SOAP should still be available to you.  We did begin to enforce the API cap on SOAP the say way we do with REST, but we have not deprecated the utility.  You can still use SOAP to return batches of 1K per call.

Anonymous
Not applicable

Re: REST API Get All Leads

James. Thanks for the response. Is there a way to get data from the Marketo's Analytics section from the API?

Anonymous
Not applicable

Re: REST API Get All Leads

Currently there is not.  The API is a structure to accesses Objects within Marekto and the data members (fields) on those objects, or with Assets (Landing Pages, Lists, Folders which are also objects, or collection of other objects), or to build a collection of objects based on values.  A smart list and/or report is a function designed to manipulate objects.  They are themselves API like, but just internal. 

I do not know for sure if there is a plan to further develop the API to allow function to interact with reports, or Smart Lists.  There are report subscriptions, but this is the extent of external access to either.  Subscriptions to other assets is coming.