---
title: Get Account Billable Usage (Version 1, Alpha)
---

[Skip to content](#_top)

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

[Billing](https://developers.cloudflare.com/api/python/resources/billing)

[Usage](https://developers.cloudflare.com/api/python/resources/billing/subresources/usage)

Copy Markdown

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

---

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

# Get Account Billable Usage (Version 1, Alpha)

billing.usage.get\_account\_usage\_v1(UsageGetAccountUsageV1Params\*\*kwargs) -> [UsageGetAccountUsageV1Response](<https://developers.cloudflare.com/api/python/resources/billing#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/billable-usage

Returns billable usage data for the account. When no query parameters are provided, returns usage for the current billing period.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



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

**Example:**<code>X-Auth-Email: user@example.com</code>

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

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### ParametersExpand Collapse

account\_id: str

Represents a Cloudflare resource identifier tag.

maxLength32

[Link to this property](<#(resource)%20billing.usage%20%3E%20(method)%20get_account_usage_v1%20%3E%20(params)%20default%20%3E%20(param)%20account_id%20%3E%20(schema)>)

from\_: Optional\[Union\[null, null]]

Start date for the usage query (ISO 8601). The provided time range must include the subscription billing cycle anchor day, otherwise no usage data is returned. Use the info endpoint to retrieve the subscription anchor day.

formatdate

[Link to this property](<#(resource)%20billing.usage%20%3E%20(method)%20get_account_usage_v1%20%3E%20(params)%20default%20%3E%20(param)%20from%20%3E%20(schema)>)

to: Optional\[Union\[null, null]]

End date for the usage query (ISO 8601).

formatdate

[Link to this property](<#(resource)%20billing.usage%20%3E%20(method)%20get_account_usage_v1%20%3E%20(params)%20default%20%3E%20(param)%20to%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

List\[UsageGetAccountUsageV1ResponseItem]

Contains the array of billable usage records.

</summary>

billed\_cost: float

The amount invoiced for this charge. PayGo is billed directly by Cloudflare, so this equals ContractedCost.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BilledCost">Link to this property</a>

billing\_account\_id: str

The identifier of the account the charge is billed to (account tag).

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingAccountId">Link to this property</a>

billing\_account\_name: Optional\[str]

The display name of the billing account. Null when the name could not be resolved.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingAccountName">Link to this property</a>

billing\_currency: str

Specifies the billing currency code (ISO 4217).

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingCurrency">Link to this property</a>

billing\_period\_start: datetime

Indicates the start of the billing period. There is no <code>BillingPeriodEnd</code> counterpart; see the known gaps described on this schema.

formatdate-time

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingPeriodStart">Link to this property</a>

charge\_category: Literal\["Usage"]

Describes the nature of the charge. Always “Usage” for this endpoint, which only returns metered usage.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargeCategory">Link to this property</a>

charge\_class: Optional\[str]

Indicates whether the row corrects a previously invoiced billing period. Always null for this endpoint, which does not return corrections.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargeClass">Link to this property</a>

charge\_description: Optional\[str]

A human-readable summary of the charge.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargeDescription">Link to this property</a>

charge\_period\_end: datetime

Indicates the end of the charge period.

formatdate-time

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargePeriodEnd">Link to this property</a>

charge\_period\_start: datetime

Indicates the start of the charge period.

formatdate-time

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargePeriodStart">Link to this property</a>

consumed\_quantity: float

Specifies the quantity consumed during this charge period.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ConsumedQuantity">Link to this property</a>

consumed\_unit: str

A display name for the unit of measurement used for the product (for example, “GB-months”, “GB-seconds”). May be empty when the unit is implicit in the service name.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ConsumedUnit">Link to this property</a>

contracted\_cost: float

Specifies the cost for this charge period in the billing currency.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ContractedCost">Link to this property</a>

cumulated\_contracted\_cost: float

Specifies the cumulated cost for the billing period in the billing currency.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20CumulatedContractedCost">Link to this property</a>

cumulated\_pricing\_quantity: int

Specifies the portion of usage that is actually subject to a unit price.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20CumulatedPricingQuantity">Link to this property</a>

effective\_cost: float

The amortized cost of the charge. PayGo has no upfront commitments, so this equals ContractedCost.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20EffectiveCost">Link to this property</a>

host\_provider\_name: str

The provider that hosts the infrastructure or platform the service runs on.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20HostProviderName">Link to this property</a>

invoice\_issuer\_name: str

The entity that issues the invoice for this charge.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20InvoiceIssuerName">Link to this property</a>

list\_cost: float

The cost at published list prices, before any discount. PayGo has no commitment discounts, so this equals ContractedCost.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ListCost">Link to this property</a>

pricing\_quantity: int

Specifies the pricing quantity for this charge period.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20PricingQuantity">Link to this property</a>

pricing\_unit: str

The unit that PricingQuantity is expressed in. Unlike ConsumedUnit this is never empty; it falls back to “Count” when the service has no explicit unit.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20PricingUnit">Link to this property</a>

service\_name: str

Identifies the Cloudflare service.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ServiceName">Link to this property</a>

service\_provider\_name: str

The provider of the purchased service.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ServiceProviderName">Link to this property</a>

service\_family\_name: Optional\[str]

Identifies the product family for the Cloudflare service.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ServiceFamilyName">Link to this property</a>

subscription\_id: Optional\[str]

The identifier for the Cloudflare subscription.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20SubscriptionId">Link to this property</a>

zone\_id: Optional\[str]

The identifier for the Cloudflare zone (zone tag).

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ZoneId">Link to this property</a>

zone\_name: Optional\[str]

The display name of the Cloudflare zone.

<a href="#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ZoneName">Link to this property</a>

</details>

[Link to this property](<#(resource)%20billing.usage%20%3E%20(model)%20usage_get_account_usage_v1_response%20%3E%20(schema)>)

### Get Account Billable Usage (Version 1, Alpha)

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
response = client.billing.usage.get_account_usage_v1(
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
print(response)
```

200 example

```
{
  "errors": [
    {
      "message": "message",
      "code": 0
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 0
    }
  ],
  "result": [
    {
      "BilledCost": 0.75,
      "BillingAccountId": "023e105f4ecef8ad9ca31a8372d0c353",
      "BillingAccountName": "Example Account",
      "BillingCurrency": "USD",
      "BillingPeriodStart": "2025-02-01T00:00:00Z",
      "ChargeCategory": "Usage",
      "ChargeClass": "ChargeClass",
      "ChargeDescription": "Workers Standard usage measured in Count",
      "ChargePeriodEnd": "2025-02-02T00:00:00Z",
      "ChargePeriodStart": "2025-02-01T00:00:00Z",
      "ConsumedQuantity": 150000,
      "ConsumedUnit": "GB-months",
      "ContractedCost": 0.75,
      "CumulatedContractedCost": 2.25,
      "CumulatedPricingQuantity": 4500000,
      "EffectiveCost": 0.75,
      "HostProviderName": "Cloudflare, Inc.",
      "InvoiceIssuerName": "Cloudflare, Inc.",
      "ListCost": 0.75,
      "PricingQuantity": 150000,
      "PricingUnit": "Count",
      "ServiceName": "Workers Standard",
      "ServiceProviderName": "Cloudflare, Inc.",
      "ServiceFamilyName": "Workers",
      "SubscriptionId": "3F3CD4CQ6N7FXO7IK6NVFJBOYA",
      "ZoneId": "023e105f4ecef8ad9ca31a8372d0c353",
      "ZoneName": "example.com"
    }
  ],
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "message": "message",
      "code": 0
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 0
    }
  ],
  "result": [
    {
      "BilledCost": 0.75,
      "BillingAccountId": "023e105f4ecef8ad9ca31a8372d0c353",
      "BillingAccountName": "Example Account",
      "BillingCurrency": "USD",
      "BillingPeriodStart": "2025-02-01T00:00:00Z",
      "ChargeCategory": "Usage",
      "ChargeClass": "ChargeClass",
      "ChargeDescription": "Workers Standard usage measured in Count",
      "ChargePeriodEnd": "2025-02-02T00:00:00Z",
      "ChargePeriodStart": "2025-02-01T00:00:00Z",
      "ConsumedQuantity": 150000,
      "ConsumedUnit": "GB-months",
      "ContractedCost": 0.75,
      "CumulatedContractedCost": 2.25,
      "CumulatedPricingQuantity": 4500000,
      "EffectiveCost": 0.75,
      "HostProviderName": "Cloudflare, Inc.",
      "InvoiceIssuerName": "Cloudflare, Inc.",
      "ListCost": 0.75,
      "PricingQuantity": 150000,
      "PricingUnit": "Count",
      "ServiceName": "Workers Standard",
      "ServiceProviderName": "Cloudflare, Inc.",
      "ServiceFamilyName": "Workers",
      "SubscriptionId": "3F3CD4CQ6N7FXO7IK6NVFJBOYA",
      "ZoneId": "023e105f4ecef8ad9ca31a8372d0c353",
      "ZoneName": "example.com"
    }
  ],
  "success": true
}
```