+ Start a Discussion
Greg FinzerGreg Finzer 

Limits of calling external APIs

What is the call limit and data limit for an external rest API?  I am planning to write an APEX batch job what will be scheduled to run hourly.  This batch job will call an external Rest API up to 300 times and retrieve 4500 records which will be inserted as Big Objects.  Is this possible with Salesforce?
Best Answer chosen by Greg Finzer
Krishna.AvvaKrishna.Avva
Hi Greg,

Please use the llimits class https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_limits.htm
to dynamically query the number of callouts made and the number of remaining callouts before making the next call.

Please find the per transaction limits of Salesforce : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm

Please mark this as SOLVED if had helped you. Thanks!

Regards,
Krishna Avva