Quota is checked on a 60-second moving average, which allows for spikes in usage. By default, the Classroom API is subject to the limits in the following table:
|Queries per day per client||4,000,000 (Avg. 46 QPS)|
|Queries per minute per client||3,000 (50 QPS)|
|Queries per minute per user||1,200 (20 QPS)|
The permitted QPS may be increased or decreased depending on a number of operational factors.
If you need to make more requests than the limits applied to your project:
- First, ensure that you respond to retryable errors (such as the
RESOURCE_EXHAUSTEDerror that is returned when a request exceeds your limits) by retrying the request, preferably using exponential backoff.
- If you are polling for changes on an endpoint where this is offered, consider using push notifications instead.
- If you still need to make more requests than the limits assigned to your project, see below for instructions on requesting higher limits.
To view or change usage limits for your project, or to request an increase to your quota, do the following:
- If you don't already have a billing account for your project, then create one.
- Visit the Enabled APIs page of the API library in the API Console, and select an API from the list.
- To view and change quota-related settings, select Quotas. To view usage statistics, select Usage.