Academy | Pills
💊 Mastering API Limits and Common Errors
Why API Limits Matter
API limits prevent overloading Marketo and ensure smooth operations.
Exceeding them can cause:
- Request Limit Exceeded (20015): Must wait until 00:00 UTC for reset.
- 413 Request Entity Too Large: Payload exceeds size limits (1MB or 10MB for imports).
- 414 Request URI Too Long: URI of a GET request exceeds 8KB.
How to Monitor and Stay Within Limits
- Track Usage: Go to Admin > Web Services to check daily limits and usage trends.
- Plan Requests: Understand daily and per-minute limits to avoid spikes.
- Set Alerts: Get notified at 80% usage to adapt before hitting limits.
How to Prevent Common Errors
- Batch Requests: Combine smaller requests into bulk operations.
- Optimize Filters: Avoid triggering unnecessary API calls with better targeting.
- Use POST for Long Queries: Switch from GET if the URI exceeds 8KB. Add
_method=GET
to include the query in the body. - Split Large Payloads: Keep requests under 1MB (or 10MB for imports).
Pro Tip 🛠️
Disable unused integrations to free up API capacity. Always monitor size and length of requests to avoid common pitfalls.