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
soorya rsoorya r 

is Rest API Callout count against the org Api limit in salesforce

Hi All,

In my apex code i am using Rest API call out towards the third party Java application. And I am using Jquery Ajax call towards the third party Java application.  

From this i have a doubt, whether this Rest Api callout and Jquery Ajax call is counted against the org API limit in salesforce.
jQuery.ajax({
                type: 'POST',
                url: '{!JSENCODE(endpointURL)}' + '/service',
                data: {
                    SF_session_id: SFSessionId,
                },
                contentType: 'application/x-www-form-urlencoded',
                success: function(response) {
                  ---code here---
                    
                },
                error: function(jqXHR, textStatus) {
});
 
HttpRequest req = new HttpRequest();
	        req.setMethod('POST');
	        req.setHeader('Content-Type','application/x-www-form-urlencoded');
	        req.setTimeout(120000);
	        req.setBody(----request parameters here----);
	        req.setEndpoint(endpointURL);
	        Http http = new Http();
	        HTTPResponse res;
	     
                res = http.send(req);


Please Clarify me. It is Urgent!.

Thnaks in advance!
Khan AnasKhan Anas (Salesforce Developers) 
Hi Soorya,

Greetings to you!

SOAP API and REST API calls (which include Bulk API calls) are counted against an organization API call limit.

Please refer to the below links which might help you further.

https://help.salesforce.com/articleView?id=000326126&type=1&mode=1 (https://help.salesforce.com/articleView?id=000326126&type=1&mode=1)

https://salesforce.stackexchange.com/questions/110801/is-salesforce-api-limit-on-outbound-or-inbound

https://salesforce.stackexchange.com/questions/79803/api-usage-limits

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
soorya rsoorya r
Thanks Khan Anas!

is JQuery Ajax call also counted against  the org Api limit?

Can you Clarify me. Because in that JQuery Ajax Call also, I get response from Third party application.
Naveen KNNaveen KN
Looks like Ajax calls are counted against org API limit. Found known salesforce bug created

https://success.salesforce.com/issues_view?id=a1p30000000T1FsAAK

- Naveen K N