Salesforce API Call Limits

Salesforce Api Call Limit Salesforce data can be accessed without using the Salesforce platform itself. However, there are restrictions on the number of API queries that a Salesforce client can make. This is done to ensure that all customers have equal access to the hosted service.

API Limits in Salesforce

API Permission is enabled before using the Salesforce API. This authorization is granted by the organization’s administrator. Salesforce supports SOAP API, REST API, BULK API, Streaming API, Metadata API, and more. This provides various options for obtaining the data you need.

The different tools you can integrate with Salesforce utilize these APIs. For example, tools like Coupler.io leverage APIs to pull Salesforce data into Google Sheets, Excel, or BigQuery for more in-depth analysis.

Salesforce REST API Limits

The REST API in Salesforce has three types of limits:

Concurrent API Request Limits

The concurrent API request restrictions for requests lasting at least 20 seconds are as follows:

Org Type Limit

Total API Request Allocation

The 24-hour totals for API requests are shown in the following table:

Salesforce Edition API Calls Per License Type Per 24-Hour Period Total Calls Per 24-Hour Period
See also  Elevate Your Hotel or Travel Agency Business with the Best Hotel Prices API

API Timeout Limits

For timeout limits, an API request is limited to 600,000 milliseconds in duration (10 minutes). If a request exceeds the timeout limit, the API outputs a REQUEST_RUNNING_TOO_LONG status code for SOAP API or a QUERY TIMEOUT exception code for REST API. This applies to the entire composite request, not each subrequest, when using the REST API for calls to Composite Resources.

Salesforce Bulk API Limits

Bulk API is optimized for working with large sets of data. It allows you to insert, update, upsert, or delete many records asynchronously. Salesforce processes the request in the background.

When there are more than 10,000 records to be read from Salesforce, most applications use Bulk API. Each 24-hour period, you are allowed to send up to 15,000 batch submissions. Both the Bulk API and Bulk API 2.0 share this allocation, so every batch handled in either system counts towards this quota. Ingest jobs use batches in Bulk API 2.0, but query jobs do not.

With Bulk API, you have to manually construct batches, but with Bulk API 2.0, batches are automatically produced for you.

The batch size for API requests is shown in the following table. These limits apply to both Bulk API and Bulk API 2.0.

Item Limit

Salesforce Streaming API Limits

Streaming API is used to listen for changes in Salesforce. Instead of waiting for changes to be seen, updates are sent to the consumer when an event happens. Streaming APIs are used to read data in real-time from the web for consumers who need precise, up-to-date results. This is done by creating a Push Topic that sends notifications to trigger polling when data is changed in Salesforce.

The API limits in Salesforce for the various subscription plans are shown in the following table:

See also  Meta Threads API
Description Performance and Unlimited Editions Enterprise Edition All other editions

Salesforce API Callout Limits

Salesforce API callout limits apply when Apex code makes a callout to an HTTP request or a web services call. A maximum of 100 callouts to an HTTP request or an API call can be made in a single Apex transaction.

The default timeout is 10 seconds, but you can define a custom timeout for each callout. The minimum timeout is 1 millisecond, and the maximum is 120,000 milliseconds.

Each action that sends a call to the API counts toward usage limitations, except for outbound calls such as Apex callouts. Outbound calls from your Apex code are unrestricted on a 24-hour basis. The only restriction is that you cannot create more than 100 callouts in a single execution context.

Salesforce API Limits Check

It is important to check your API limits in Salesforce to monitor your API usage and avoid exceeding the limits. Here’s how you can check your usage:

Daily API Limits in Salesforce – How to Check Your Usage

Daily Salesforce API limits apply to any 24-hour period. To check your API requests and usage over the last 24 hours, follow these steps:

  1. Go to Setup.
  2. Enter “System Overview” in the Quick find box.
  3. Click on the result and look for “API usage.”
  4. You’ll find the API calls you have made within the last 24 hours and how many API calls remain.

Assuming it’s 3 pm on Tuesday, you might see the following in the System Overview: API REQUESTS, LAST 24 HOURS 0. This means that in the last 24 hours, you have used 0 API calls, and you have 15,000 calls left to make.

See also  CloudFormation API Gateway: Building Flexible and Scalable APIs

Monthly API Limits in Salesforce – How to Check Your Usage

Monthly Salesforce API limits are the total number of API calls made by your organization over the last 30 days. To check your API usage over the last 30 days, follow these steps:

  1. Click on Setup.
  2. Enter “Company Information” in the Quick Find box.
  3. The details can be seen under “Usage-Based Entitlements.”

From the screenshot, you can see the contract period, the monthly API limit, and the amount of API used over the last 30 days.

What Happens If You Reach or Exceed Your API Request Limit

If your organization reaches or exceeds its daily API request limit, the following can happen:

  1. All users in the organization may have their ability to make further calls temporarily disabled. Calls are restricted until the previous 24 hours’ usage falls below the limit.
  2. Salesforce may allow activities to continue up to a certain point, if feasible, to avoid workflow interruptions during unexpected workload surges and peak times.

A hard cap is implemented to protect platform resources and prevent unrestricted API calls from exceeding the daily limit.

Increasing Your Salesforce API Call Limits

If you need a higher API limit and don’t want to acquire more user licenses or upgrade your Salesforce Edition, you can purchase additional API calls during the Checkout process or by contacting your account representative.

Reducing API Call Usage

When trying to limit API calls, consider the following:

  • Fix any issues that appear in the Salesforce Error Log tab.
  • Designate unused fields as Unassigned or Do not include.
  • Reduce the number of custom fields that you sync.
  • Consult your Salesforce administrator to check if any other integrations use API calls.

API Limits – Final Thoughts

Salesforce, like many other cloud systems, monitors and imposes restrictions on resource usage. API limits may be frustrating for developers and users, but they serve a crucial purpose.

This shouldn’t discourage you from using Salesforce to its fullest. If you want a cost-effective way to export your Salesforce data to other third-party tools, consider using Coupler.io. In our other tutorials, you’ll learn how to export Salesforce data and understand Salesforce data security.

ProgramMatek