Add an API rate limit check