Is API limits salesforce on outbound or inbound?

165    Asked by Aashishchaursiya in Salesforce , Asked on Jun 6, 2023

Does the Salesforce API limit apply on outbound API requests or only on the inbound API requests?

From this Knowledge article:

  1. What counts towards my API limit?

SOAP ( and REST API calls (which include Bulk API calls) are counted against an organisation API call limit.

This appears to be an inbound call that will be counted against the API. But it's quite strange when I tried it out in my developer org:

  1. I got a new developer edition.

  2. Logged in and navigated to Company Information and the API calls are at 0, as I would expect

  3. I went to the developer console, and executed the following script that makes an API callout to GitHub API. It'd fail as it wouldn't have authentication, but it'd make the API callout alright. (I've also added it in remote site settings)

Http h = new Http(); HttpRequest req = new HttpRequest(); req.setMethod('GET'); req.setEndpoint(''); HttpResponse response = h.send(req); System.debug(LoggingLevel.INFO, 'response :' + response);

When I executed this script once and checked the API calls, I expected it to remain at 0. But for some reason, it's 31 calls! Which is a weird number. I've executed that in a for-loop for 10 times and the API calls grew to 60 and I now have no idea if my external callouts are being included in the API limits.

Looking again about this Salesforce Developer Limits Quick Reference Summer '17, page 34.

  Total API Request Limits (here total number of APIs) are inferred based in edition and licence type, and also is stated:

Limits are enforced against the aggregate of all API calls made by the org in a 24-hour period. Limits are not on a per-user basis. When an org exceeds a limit, all users in the org can be temporarily blocked from making additional calls. Calls are blocked until usage for the preceding 24 hours drops below the limit So, not really clear API limits salesforce apply only to inbound messages

Your Answer


Parent Categories