I have been googling this for a while, the closest I have come to getting an answer on this is the API Consumption report here
However, I am looking to retrieve the current SFDC Org-wide API consumption metric via the Salesforce API itself.
Is there an Endpoint I can call to get this data?
Use case: I have several scripts running on a schedule that move large amounts of Data around on Salesforce, which risks our SFDC org getting capped out and I would like to check the API Consumption percentage for last 24 hours, and if the Consumption percentage is over a certain amount, the script does not proceed through the rest of the sequence.
This should help us avoid hitting our allotted max of API calls.