API Stability Short-Term

The exceededQueryQuotas() GraphQL query is used to determine if a user has exceeded their query quota.

For more information on query quotas, see the Query Quotas documentation page.

Syntax

Below is the syntax for the exceededQueryQuotas() query field:

graphql
exceededQueryQuotas(
     username: string!
   ): [QueryQuotaExceeded!]!

This query field requires only the username of the user who exceeded their query quota. Below is an example of this:

Show:
graphql
query {
  exceededQueryQuotas(username: "admin")
  {kind, resetsAt}
}
Example Responses
Show:
json
{
  "data": {
    "exceededQueryQuotas": []
  }
}

The results don't show anything because this user did not exceed the query quota.

Returned Datatypes

The returned datatype QueryQuotaExceeded has only a couple of parameters. They're listed here:

Table: QueryQuotaExceeded

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 2, 2024
kindQueryQuotaMeasurementKindyes Short-TermThe type of measurement for the query quota. See QueryQuotaMeasurementKind.
resetsAtlongyes Short-TermThe point at which the query quota resets.