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
devNut!devNut! 

API Usage Metering - Apex

Hello,

Does Apex code contribute the API usage limit?



Thanks
SuperfellSuperfell
Only for apex code that's exposed as a web service.
devNut!devNut!
Thanks for the quick reply.

One follow-up question: does calling an apex exposed web service count as one api hit? or does it depend on the operations performed by the apex code?
SuperfellSuperfell
1 HTTP request == 1 API request. doesn't matter how much work you do inside that apex webmethod.