Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve Salesforce Daily Api Requests limit

Does anyone know how to retrieve the SFDC daily requests api limit through SOAP or REST ? I don't see any call for this. Currently I have to access this info at the Company Info page. I would like to retrieve this info at code level for batch processing.

Thanks!

like image 833
Kien Pham Avatar asked Feb 10 '12 00:02

Kien Pham


People also ask

How do I see REST API limits in Salesforce?

The API Requests, Last 24 Hours item in the Organization Detail section of the System Overview page in Setup. The API Request Limit per Month usage-based entitlement, which shows you your org's API calls aggregated over 30 days. This information can be found on the Company Information page in Setup.

How do I find bulk API limits in Salesforce?

You can submit up to 10,000 batches per rolling 24-hour period. You can't create batches associated with a job that is more than 24 hours old. Batches and jobs that are older than seven days are removed from the queue regardless of job status.

How many requests API calls can you make at a time?

In the API Console, there is a similar quota referred to as Requests per 100 seconds per user. By default, it is set to 100 requests per 100 seconds per user and can be adjusted to a maximum value of 1,000. But the number of requests to the API is restricted to a maximum of 10 requests per second per user.


1 Answers

This info was not exposed in the API.

As of Salesforce Spring '15 and REST API version 29.0, the /limits resource can be used to retrieve this info. https://developer.salesforce.com/releases/release/Spring15/restapi

Also, the Sforce-Limit-Info header is returned with every REST response.

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/headers_api_usage.htm

like image 160
superfell Avatar answered Sep 20 '22 00:09

superfell