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!
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With