function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mzuckermanmzuckerman 

how to debug massive spike in api calls

We have reached our max for api calls (85k) two days in a row suddenly. We have never run into this before.

I have looked at the API calls made within the last 7 days report and it shows that one of my users (an api program I wrote) has suddenly spiked its calls from a typical of 3k a day to 50k a day. But I cant see why?  Also it doesnt show the date just the day of week so its hard to tell how real time it is (i.e. is Wednesday last Wednesday or today?).  The report also shows that some of my customer portal users are using api calls as well. I read that customer portal user logins do not count toward api calls.

I need help to identify what is causing this spike. How can I see live what api calls are coming in.  I am happy to bring down my app to see if the calls slow down but cant find anyway to see and investigate them in real time. 

This is causing serious inconvenience for my company. Please help me resolve. thanks.
-megan
pucca0519pucca0519
Maybe the information is available in the Event Logs? Have you tried opening a case with Salesforce? They might be able to steer you in the right direction.
mzuckermanmzuckerman
I did open a case with them but since I dont have a premier account, they said that posting in this forum is my only option.  I did look in Event logs but it shows only logs for the last 3 days and only logins and logouts and they all look find (nothing out of the ordinary). 
 
mzuckermanmzuckerman
here is their reply (or most of it). 

Hi Megan,

Thank you for your time on the call. As per our discussion, I checked the issue on screen sharing session. There is an Automated user which is using relatively high API calls since couple of days. As informed I am not an expert on finding why this kind of API calls are being used. Also, this account does not have Developer Support. I would suggest you to ask the query on Developer forum as shown on screen sharing. The link is also mentioned below.

I also suggested you that you can go for a temporary limit increase in API for two weeks according to the below article:
https://help.salesforce.com/articleView?id=Increasing-your-Organization-s-API-Limit&language=en_US&type=1

This case will be closed as request out of scope.

Developer support is available to customers and partners with Premier Success plans. If you wish to upgrade to premier support please contact your Account Executive. Our records indicate that your account is currently entitled to Standard support therefore we will need to close this case and direct you to our developer support forums where there is a wealth of information.
pucca0519pucca0519
This is an old post, but see if it helps. https://success.salesforce.com/answers?id=90630000000CvsEAAS
David Vowels 7David Vowels 7
Thanks guys. Very helpful.