Get Account Usage (Version 2, Alpha, Restricted)
Returns cost and usage data for a single Cloudflare account, aligned with the FinOps FOCUS v1.3 Cost and Usage dataset specification.
Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost.
Note: Cost and pricing fields are not yet populated and will be absent from responses until billing integration is complete.
When from and to are omitted, defaults to the start of the current
month through today. The maximum date range is 31 days.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Query Parameters
Start date for the usage query (ISO 8601). Required if to is set. When omitted along with to, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days.
Get Account Usage (Version 2, Alpha, Restricted)
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/billable/usage \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"message": "message",
"code": 0
}
],
"messages": [
{
"message": "message",
"code": 0
}
],
"result": [
{
"BillingAccountId": "023e105f4ecef8ad9ca31a8372d0c353",
"BillingAccountName": "My Account",
"ChargeCategory": "Usage",
"ChargeDescription": "Workers Standard Requests — daily usage",
"ChargeFrequency": "Usage-Based",
"ChargePeriodEnd": "2025-05-02T00:00:00Z",
"ChargePeriodStart": "2025-05-01T00:00:00Z",
"ConsumedQuantity": 150000,
"ConsumedUnit": "Requests",
"HostProviderName": "Cloudflare",
"InvoiceIssuerName": "Cloudflare",
"ServiceProviderName": "Cloudflare",
"x_BillableMetricName": "Workers Standard Requests",
"BilledCost": 0,
"BillingCurrency": "USD",
"BillingPeriodEnd": "2025-06-01T00:00:00Z",
"BillingPeriodStart": "2025-05-01T00:00:00Z",
"ChargeClass": "Correction",
"ContractedCost": 0.75,
"ContractedUnitPrice": 0.000005,
"EffectiveCost": 0,
"ListCost": 0.75,
"ListUnitPrice": 0.000005,
"PricingQuantity": 150000,
"PricingUnit": "Requests",
"RegionId": "EEUR",
"RegionName": "Eastern Europe",
"SubAccountId": "c9bd752d-9ca8-411d-b804-be44a758057f",
"SubAccountName": "My Subscription",
"x_BillableMetricId": "workers_standard_requests",
"x_ProductFamilyName": "Workers",
"x_ZoneId": "023e105f4ecef8ad9ca31a8372d0c353",
"x_ZoneName": "example.com"
}
],
"success": true
}Returns Examples
{
"errors": [
{
"message": "message",
"code": 0
}
],
"messages": [
{
"message": "message",
"code": 0
}
],
"result": [
{
"BillingAccountId": "023e105f4ecef8ad9ca31a8372d0c353",
"BillingAccountName": "My Account",
"ChargeCategory": "Usage",
"ChargeDescription": "Workers Standard Requests — daily usage",
"ChargeFrequency": "Usage-Based",
"ChargePeriodEnd": "2025-05-02T00:00:00Z",
"ChargePeriodStart": "2025-05-01T00:00:00Z",
"ConsumedQuantity": 150000,
"ConsumedUnit": "Requests",
"HostProviderName": "Cloudflare",
"InvoiceIssuerName": "Cloudflare",
"ServiceProviderName": "Cloudflare",
"x_BillableMetricName": "Workers Standard Requests",
"BilledCost": 0,
"BillingCurrency": "USD",
"BillingPeriodEnd": "2025-06-01T00:00:00Z",
"BillingPeriodStart": "2025-05-01T00:00:00Z",
"ChargeClass": "Correction",
"ContractedCost": 0.75,
"ContractedUnitPrice": 0.000005,
"EffectiveCost": 0,
"ListCost": 0.75,
"ListUnitPrice": 0.000005,
"PricingQuantity": 150000,
"PricingUnit": "Requests",
"RegionId": "EEUR",
"RegionName": "Eastern Europe",
"SubAccountId": "c9bd752d-9ca8-411d-b804-be44a758057f",
"SubAccountName": "My Subscription",
"x_BillableMetricId": "workers_standard_requests",
"x_ProductFamilyName": "Workers",
"x_ZoneId": "023e105f4ecef8ad9ca31a8372d0c353",
"x_ZoneName": "example.com"
}
],
"success": true
}