How to get a list of all potential customers in Marketo

I want to get all the results in Marketo using their Rest Apis. Is there any way to do this? I already tried getLeadChanges api, however this only leads to outputs with modified fields.

+5
source share
2 answers

Leaders in Marketo are assigned leader identifiers in a sequential order, starting with 1. Using Get Multiple Lines by Endpoint API of a REST filter type filter , you can request 300 leads by the identifier of the leader with each call.

You need to specify id as filterType and input identifiers as filterValues ​​with every call to this endpoint. To get all the results, you will iterate over the total number of potential customers 300 at a time.

The first API call will (replace ... with all the values ​​in between):

/rest/v1/leads.json?filterType=Id&filterValues=1,2,3,...,298,299,300 

The second API call, and each subsequent API call will follow the same pattern:

 /rest/v1/leads.json?filterType=Id&filterValues=301,302,303,...,598,599,600 
+5
source

In the Marketo REST API, you can request only static lists, and "All conclusions" - dynamic.
The easiest way:

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1212076/


All Articles