Back to Blog

Salesforce API Limits and Usage

Salesforce data may be accessed without needing to utilize the Salesforce platform itself. However, the number of API queries that a Salesforce client may call is restricted. This is done to guarantee that all customers have equal access to the hosted service. 

Any user in the organization that contacts the API more than a certain number of times will be temporarily barred from using the API.

This article goes through the various Salesforce API limits in detail.

API Limits in Salesforce

API Permission is enabled before using the Salesforce API. An organization’s administrator grants this authorization. The Developer Edition comes with this permission by default. SOAP API, REST API, BULK API, Streaming API, Metadata API, and so on are all supported by Salesforce. As a result, there are various options for getting what you need. 

The various tools you may integrate with Salesforce make use of these APIs. Tools such as Coupler.io, for example, leverage APIs to pull Salesforce data into Google Sheets, Excel, or BigQuery for a more in-depth analysis.  

Salesforce REST API limits

The REST API Salesforce request has three types of limits imposed:

  • Concurrent API Request Limit.
  • Total API Request Allocation.
  • API Timeout Limits.

Concurrent API Request Limits

The following table lists the concurrent API request restrictions for requests lasting at least 20 seconds.

Org TypeLimit
Developer Edition and Trial orgs5
Production orgs and Sandboxes25

Total API Request Allocation

The following table shows the 24-hour totals for API requests.

Salesforce EditionAPI Calls Per License Type Per 24-Hour PeriodTotal Calls Per 24-Hour Period
– Developer EditionN/A15,000
– Enterprise Edition
– Professional Edition with API access enabled
– Salesforce: 1,000
– Salesforce Platform: 1,000
– Lightning Platform – One App: 200
– Customer Community: 0
– Customer Community Login: 0
– Customer Community Plus: 200
– Customer Community Plus Login: 10 
– External Identity 25,000 SKU: 70,000
– External Identity 250,000 SKU, 750,000
– External Identity 1,000,000 SKU: 4,000,000
– Partner Community: 200
– Partner Community Login: 10
– Lightning Platform Starter: 200 per member for Enterprise Edition orgs
– Lightning Platform Plus: 1000 per member for Enterprise Edition orgs
100,000 + (number of licenses x calls per license type) + purchased API Call Add-Ons
– Unlimited Edition
– Performance Edition
– Salesforce: 5,000
– Salesforce Platform: 5,000
– Lightning Platform – One App: 200
– Customer Community: 0
– Customer Community Login: 0
– Customer Community Plus: 200
– Customer Community Plus Login: 10
– External Identity 25,000 SKU: 70,000
– External Identity 250,000 SKU, 750,000
– External Identity 1,000,000 SKU: 4,000,000
– Partner Community: 200
– Partner Community Login: 10
– Lightning Platform Starter: 200 per member for Unlimited and Performance Edition orgs
– Lightning Platform Plus: 5,000 per member for Unlimited and Performance Edition orgs
100,000 + (number of licenses x calls per license type) + purchased API Call Add-Ons
– SandboxN/A5,000,000

API Timeout Limits

For timeout limits, an API request is limited to 600,000 milliseconds in duration (10 minutes). The API outputs a REQUEST_RUNNING_TOO_LONG status code for SOAP API or a QUERY TIMEOUT exception code for REST API if a request exceeds the timeout limit. 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 based on REST principles and is optimized for working with large sets of data. You can use it to insert, update, upsert, or delete many records asynchronously, meaning that you submit a request and come back for the results later. Salesforce processes the request in the background.

Most applications use Bulk API when there are more than 10,000 records to be read from Salesforce. Each 24-hour period, you are allowed to send up to 15,000 batch submissions. The bulk API and bulk API 2.0 share this allocation, therefore every batch that is handled in either of these systems counts towards this quota. Only ingest jobs use batches in Bulk API 2.0. The same cannot be said for query jobs. 

You have to manually construct batches in Bulk API. However, with Bulk API 2.0, batches are produced automatically for you.

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

ItemLimit
Batches for data loads can consist of a single CSV or XML file that can be no larger than10 MB.
A batch can contain a maximum of 10,000 records.
A batch can contain a maximum of all the data in a batch.10,000,000 characters.
A field can contain a maximum of32,000 characters.
A record can contain a maximum of5,000 fields.
A record can contain a maximum of all its fields.131,072 characters.

Salesforce Streaming API limits

Streaming API is used essentially to listen for changes in Salesforce. Rather than having to wait 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 for precise, up-to-date results. It does so by creating a Push Topic that will send notifications to trigger polling when data is changed in Salesforce.

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

DescriptionPerformance and Unlimited EditionsEnterprise EditionAll other editions
Maximum number of topics (PushTopic records) per organization1005040
Maximum number of clients (subscribers) per topic2000100020
Maximum number of concurrent clients (subscribers) across all topics2000100020
Maximum number of events per day (24–hour period)1,000,000200,00050,000 (10,000 for free organizations)
Socket timeout during connection (CometD session)110 seconds110 seconds110 seconds
Timeout to reconnect after successful connection (keepalive)40 seconds40 seconds40 seconds
Maximum length of the SOQL query in the Query field of a PushTopic record1300 characters1300 characters1300 characters
Maximum length for a PushTopic name25 characters25 characters25 characters

Salesforce API callout limits

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

The default timeout is 10 seconds. A custom timeout can be defined for each callout. The minimum is 1 millisecond, and the maximum is 120,000 milliseconds. 

Except for outbound calls, such as Apex callouts, each action that sends a call to the API counts toward usage limitations. Apex callouts, i.e., outbound calls from your Apex code, are unrestricted on a 24-hour basis. The sole restriction is that you cannot create more than 100 callouts in a single execution co.

Salesforce API limits check

It is important to conduct checks and know when you’re about to exceed your API limits in Salesforce or have done so already. This helps to monitor your API usage.

Daily API limits in Salesforce – how to check your usage 

Daily Salesforce API limits apply to any 24-hour period and are not tied to any calendar date. You can see the 24-hour totals for API requests in the Total API Request section.

When you have reached your Salesforce API daily limit, you will receive a notification within your Salesforce Settings page. In Salesforce, to check your API limits and how many API calls you sent over the last 24 hours, do the following: 

  • Go to Setup. 
  • Enter System overview in the Quick find box.
  • Click on the result and look for API usage.
  • You’ll find the API calls you have made within the last 24 hours and how many API calls remain.

Assume that it’s 3pm on Tuesday. Within the System Overview, you’ll see the following: 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.

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. The monthly limit applies to any one-month period, and it’s not tied to any calendar date. 

To check Salesforce API limits and API calls over the last 30 days, do the following:

  • Click on Setup.
  • Enter Click on Company Information in the Quick Find box.
  • The details can be seen under Usage-Based Entitlements.

From the screenshot, the start and end date show the contract period, and we have an allowance of 450,000, which is the monthly API limit. We also have a column that also shows the amount of API used and the usage date. 

What happens if you reach or exceed your API request limit

If your org reaches or exceeds its daily API request limit, there are two things that can happen.

  1. All users in that 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 permits activities to continue up to a particular point, if feasible. This assists in avoiding workflow interruptions during unexpected workload surges and infrequent 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 limit and do not want to acquire more user licenses or upgrade your Salesforce Edition, you may purchase additional API calls during the Checkout process or by contacting your account representative.

Reducing API call usage

When attempting to limit API calls, keep the following in mind:

  • Fix any issues that appear in the Salesforce Error Log tab. 
  • Unused fields should be designated as Unassigned or Do not include. 
  • Reduce the number of custom fields that you sync. 
  • Consult your Salesforce administrator to discover whether any other integrations use API Calls.

API limits – final thoughts

Salesforce, like many other cloud systems, monitors and imposes restrictions on resource use The limitations that APIs impose may be a source of frustration for API developers and users alike, yet they serve a crucial purpose. 

This shouldn’t stop you from using Salesforce to its fullest. If you wish to use a cost-effective means to export your data stored on salesforce databases to other third-party tools, Coupler.io will be a great choice for you. In our other tutorials, you’ll learn how to export Salesforce data and what Salesforce data security is about.

Back to Blog

Comments are closed.

Access your data
in a simple format for free!

Start Free