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
https://{munchkin_id}.mktorest.com/bulk/v1/activities/export/create.json
https://{munchkin_id}.mktorest.com/bulk/v1/programs/export/create.json
andhttps://{munchkin_id}.mktorest.com/rest/v1/programs/export/create.json
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.)