I handled it by putting a 1.5-second sleep time after every API call. 60/1.5 = 40 This ensures that you only hit the API 40 times in a minute. Hope this pretty trick helps someone.