← All Articles

Salesforce API usage: how to monitor and optimize

5 min read · By a 2x Certified Salesforce Architect · 9 years, 12+ orgs

APIs are the lifeblood of modern Salesforce implementations, but unchecked usage can cripple performance, spike costs, and trigger outages. I’ve seen manufacturing clients hit 50% API limit spikes during peak order processing, and healthcare orgs get slammed by EHR integrations eating 80% of their daily allotment. Here’s how to monitor and optimize—no fluff, just what works at scale.

Monitor Like a Pro: Beyond Basic Limits

Don’t just watch the 15,000 daily API call limit. Drill into usage patterns with:

Optimize Ruthlessly: Industry Examples

Optimization isn’t just about cutting calls—it’s about smarter patterns. Here’s how I’ve fixed critical issues:

Manufacturing Client (200+ integrations): Their ERP sync ran 10k API calls hourly by querying all products on every sync. Solution: Use SELECT Id, Name FROM Product2 WHERE LastModifiedDate > LAST_WEEK (instead of full table scan) and batch by product family. Cut calls by 92%.

Healthcare Client (Compliance Risk): A patient portal integration hit limits due to repeated queryAll() calls for patient records. Solution: Implement for (List accs : [SELECT Id, Name FROM Account WHERE IsPatient = true]) with bulkified SOQL. Reduced calls by 70% and avoided HIPAA audit flags.

Key Optimization Tactics

When to Panic (and When Not To)

Don’t wait for the "API Usage Exceeded" email. Set up alerts at 70% utilization (Setup > API Usage > Alert Threshold). But don’t panic over minor spikes—validate if it’s a legitimate business surge (e.g., Black Friday sales). My rule: If your org’s API usage is >30% of daily limit for 3+ consecutive days without a business driver, investigate immediately.

API optimization isn’t a one-time project—it’s continuous. Monitor daily, optimize relentlessly, and never assume a vendor’s integration is efficient. I’ve seen orgs save $50k/year in API costs just by fixing one poorly written Apex class.

Stop guessing if your API usage is hurting performance. Get a precise, actionable report of your org’s health in 60 seconds. Run your free Salesforce health scan now—it identifies API bottlenecks, bulkification gaps, and security risks before they break your business.

📚 Recommended Resource: Salesforce for Dummies — great for anyone learning Salesforce.
📚 Recommended Resource: NIST Cybersecurity Framework Guide — great for anyone security frameworks.
See these issues in your org?
Free health scan. 60 seconds. Read-only. No risk.
Scan My Org — Free →