How is API request calculated?