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
Suman KuchSuman Kuch 

apex RESTful service call limits

Hi,
We have to get the data from external source by calling their API but their API is giving 100 per request only and we need to get 11,000 records. For this I have to make 110 RESTFul service calls with pagination count (1,2,3,...). So Can I use for loop on 110 count and invoke calls inside the loop? Please advice.
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Suman,

1. Any of the calls described in this resource counts towards your API limit:
http://www.salesforce.com/us/developer/docs/api/Content/calls.htm
2. You can save on API calls limit is by creating a custom web service class to handle all your requests.

Scenario: rather than doing the following:
Query data in salesforce
Get this data on the client side - and then based on this data - query some other data in salesforce.
You can create a method in your custom web service combines the 2 steps above all in 1 method. which will save 1 call.
3. The "API Usage last 7 days" report shows you the calls made by user and date for the last 7 days.

I hope it will be helpful.

please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar