---
title: Get Request Quota
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Cloudforce One](https://developers.cloudflare.com/api/go/resources/cloudforce_one)

[Requests](https://developers.cloudflare.com/api/go/resources/cloudforce_one/subresources/requests)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Get Request Quota

client.CloudforceOne.Requests.Quota(ctx, query) (\*[Quota](<https://developers.cloudflare.com/api/go/resources/cloudforce_one#(resource)%20cloudforce_one.requests%20%3E%20(model)%20quota%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/cloudforce-one/requests/quota

Retrieves quota usage for Cloudforce One standard requests.

##### Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**`X-Auth-Email: user@example.com`

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**`X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194`

##### Accepted Permissions (at least one required)

`Cloudforce One Write``Cloudforce One Read`

##### ParametersExpand Collapse

<details>

<summary>

query RequestQuotaParams

</summary>

AccountID param.Field\[string]

Identifier.

maxLength32

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(method)%20quota%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.requests%20%3E%20(method)%20quota%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type Quota struct{…}

</summary>

AnniversaryDate TimeOptional

Anniversary date is when annual quota limit is refreshed.

formatdate-time

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20quota%20%3E%20(schema)%20%3E%20(property)%20anniversary_date">Link to this property</a>

QuarterAnniversaryDate TimeOptional

Quarter anniversary date is when quota limit is refreshed each quarter.

formatdate-time

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20quota%20%3E%20(schema)%20%3E%20(property)%20quarter_anniversary_date">Link to this property</a>

Quota int64Optional

Tokens for the quarter.

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20quota%20%3E%20(schema)%20%3E%20(property)%20quota">Link to this property</a>

Remaining int64Optional

Tokens remaining for the quarter.

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20quota%20%3E%20(schema)%20%3E%20(property)%20remaining">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.requests%20%3E%20(model)%20quota%20%3E%20(schema)>)

### Get Request Quota

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/cloudforce_one"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
    option.WithAPIEmail("user@example.com"),
  )
  quota, err := client.CloudforceOne.Requests.Quota(context.TODO(), cloudforce_one.RequestQuotaParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", quota.AnniversaryDate)
}
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "anniversary_date": "2022-04-01T00:00:00Z",
    "quarter_anniversary_date": "2022-04-01T00:00:00Z",
    "quota": 120,
    "remaining": 64
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "anniversary_date": "2022-04-01T00:00:00Z",
    "quarter_anniversary_date": "2022-04-01T00:00:00Z",
    "quota": 120,
    "remaining": 64
  }
}
```