Use the System.OrgLimits getAll and getMap methods to obtain either a list or a map of all your org limits. To get details on each limit, use instance methods from System.OrgLimit.
For comparison, the Limits Class returns Apex governor limits and not Salesforce API limits.
The following are methods for OrgLimits.
public static List<System.OrgLimit> getAll()
Type: List<System.OrgLimit>
public static Map<String,System.OrgLimit> getMap()
Type: Map<String,System.OrgLimit>
Map<String,System.OrgLimit> limitsMap = OrgLimits.getMap(); System.OrgLimit apiRequestsLimit = limitsMap.get('DailyApiRequests'); System.debug('Limit Name: ' + apiRequestsLimit.getName()); System.debug('Usage Value: ' + apiRequestsLimit.getValue()); System.debug('Maximum Limit: ' + apiRequestsLimit.getLimit());