I'm working on an application, which uses SOAP, REST and Bulk API to integrate with Salesforce.
Is there any API call in Salesforce which enables me to track how much API calls did I consume in a certain time frame?
I'm aware of 'API Calls Made Within Last 7 Days' report, however, I can't find any information on the application which made the calls. It gives me only the number of API calls made using a user's token.
Thanks in advance!
Best Answer
Every time you call a web method in the Partner API the response includes the Limit Info Header in the response.
The header is also available in the REST API - Limit Info Header
With this you can monitor your API usage.
Merged from comment for completeness:
This header is the global account across all applications. The documentation does mention a
API REQUESTS PER APP
pilot that will provide limit quota information for a connected app. You could try and get on this pilot. Otherwise it is usually best if the application tracks its own usage.