Re: Using Marketo API // Misc. Questions

Vinz
Level 1

Using Marketo API // Misc. Questions

Hello

I am using the bulk API to export data with Python.

I could so far export Leads and Activities fine, but i'm struggling to export all Programs or all Campaigns at once, which endpoint should I use?

For Leads i used :

https://{munchkin_id}.mktorest.com/bulk/v1/leads/export/create.json
For Activities i used
https://{munchkin_id}.mktorest.com/bulk/v1/activities/export/create.json
i tried with the following for programs and campaigns
https://{munchkin_id}.mktorest.com/bulk/v1/programs/export/create.json
and
https://{munchkin_id}.mktorest.com/rest/v1/programs/export/create.json
 
but it didn't work. any idea?
 
Also, i would like to find all available fields for a given endpoint and couldn't find a clear table where this is summarized. 
I did check the API Documentation but I could not find a summary of what one can find and where. 
 
 
Thanks for your support!
Vinz
 

 

 

 

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Using Marketo API // Misc. Questions

There’s no endpoint to get all Programs or Campaigns, nor all Program Members or Campaign Members, in a single file.

 

You crawl the Marketing Activities Folders and Programs page by page, then you can do either paginated Program Member fetch or bulk export for a single Program at a time. The optimal architecture is usually a hybrid of bulk and paginated, with a local job queue to make sure you don’t go over the queued job limit on the server side.

 

(N.B. On a technical level a Program is a type of Folder, you’ll learn more about this as you work with the API.)