REST API Get All Leads | Community
Skip to main content
August 26, 2015
Question

REST API Get All Leads

  • August 26, 2015
  • 3 replies
  • 2508 views

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? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Neil_Robertson6
Level 4
September 18, 2015

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.

September 22, 2015

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

September 23, 2015

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?

September 23, 2015

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? 

September 23, 2015

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.

September 25, 2015

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.

September 25, 2015

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

September 25, 2015

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.