Marketo’s bulk APIs are a gateway to handle substantial amounts of data in the Marketo platform. They provide users with the ability to perform high-volume data operations, making it easier to manage extensive datasets and execute tasks programmatically. Whether you need to export thousands of leads, import people, or extract large volumes of activity data, Marketo Bulk APIs are designed to handle these tasks effectively.
Monitoring Bulk Export API Usage:
Marketo offers multiple ways for monitoring Bulk API usage. While the Admin > Web Services section in Marketo offers a well-known method to view bulk API usage, you can also programmatically access this information through the API.
Programmatically Calculating Bulk API Usage:
For analyzing the disk space utilized by the Bulk Export APIs programmatically, the following steps need to be followed:
Use the bulk export Lead/Activity/Program Member endpoints to retrieve the list of all jobs executed. These endpoints return a list of export jobs that were created in the past 7 days.
Filter the list down to the ones completed on the current day by leveraging the
status
andfinishedAt
attributes.Add the
fileSize
parameter’s value for each of the export jobs in the filtered list. This total data will provide you with your bulk API usage for the day.
For the regular non-bulk APIs, Marketo has dedicated endpoints to track and monitor the usage programmatically.
Users often neglect monitoring their API usage, leading to Daily quota reached errors when they exceed the allocated daily quotas. However, it is advisable to monitor usage and make only essential API calls once you are near the daily limit. Throttle or delay non-critical calls until the limits renew the following day.
Considerations - Bulk API Disk Space Reclamation:
It's important to note that Marketo currently does not offer a way to delete files generated through bulk export jobs. Thus, reclaiming disk space for a job that’s already created is not possible. Therefore, it's essential to plan and manage your export jobs efficiently to avoid unnecessary usage.
I hope this was insightful. Let me know if you have questions or suggestions and I’d make sure to respond as quickly as possible.
Happy Marketo’ing! 💜
This is helpful! Thank you, Darshil. I love how you include all the details around the topic you write. Kudos and continue this amazing work of yours. 💯