Can you tell what your API limit is for a 24 hour period?

It appears that salesforce has Unlimited, Developer, Gold plans.

How can I tell which one I have? I'm looking to retrieve it though the API, or through the web interface (assuming I am not an administrator).


Setup menu, administration, organization, company profile. You can see your daily limit and your current number used.

  • Excellent, apparently I have 52,000 !
    – spuder
    Aug 10 '13 at 4:34
  • @spuder I though you needed this information through some API exposed ! Aug 10 '13 at 4:39
  • I'm looking for either.
    – spuder
    Aug 10 '13 at 4:50

Its not possible to count this through any API as salesforce don't expose this information.Its only available in sfdc admin set up.

However there is small workaround that you may try.Although be cautious that its just workaround

WebService static string GetAPIUsage() {
  PageReference pr = new PageReference('/00D20000000HsCQ');//use id of setup page
  String result = pr.getContent().toString();
  Integer start_index = result.indexOf('API Requests, Last 24 Hours', 1) + 52;
  Integer end_index = result.indexOf('<', start_index);
  result = result.substring(start_index, end_index);
  result = result.replaceAll('&nbsp;', ' ');
return result;     

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.