Cloudflare

Cloudflare cost by product, line item and zone

Data and infrastructure Connects with API token

Costfluent reads the usage-based charges of your Cloudflare account, for every zone and product in it, from Cloudflare's billable usage API with an API token you create for it. They feed cost reports, cost allocation and budgets beside your other providers.

Permanent Free plan with no time limit

What arrives

The account's usage by day, product and zone

Product families as services

The service is the product family as Cloudflare names it, such as “Workers” or “R2”. Its category follows the family, compute for “Workers” and storage for “R2”, and a family without one is in “Other”.

Line items as SKUs

The SKU is the line item, such as “Workers Standard” or “R2 Storage”. A charge Cloudflare reports for a period longer than a day is one cost, dated on that period's first day.

Zones as resources

Each charge names its zone, by name and ID, as the resource, and a charge that belongs to no zone has none. The billing account is the Cloudflare account.

Billing currency and billing day

Amounts arrive in the account's billing currency. A Cloudflare billing period starts on the account's billing day, the day of the month its subscription started, so a calendar month in Costfluent and a Cloudflare invoice cover different days.

What you do with it

Cloudflare usage in reports, team allocation and budgets

Cloudflare cost per product

Group Cloudflare cost by service to put Cloudflare Workers, R2 and the other product families side by side, or by SKU to see which line item grows, and save the view as a report.

Cloudflare zones by team

An allocation rule matches a zone by its resource name, such as a team's domain, and assigns that zone's cost to the team's segment.

A budget on Cloudflare spend

Put a budget on a saved report filtered to Cloudflare, or to one product family such as R2, and follow actual spend against the forecast through the billing period.

How Costfluent connects

One API token per Cloudflare account

  • Create a custom API token for Costfluent alone with the one permission “Account, Billing, Read”, on the one account you connect. Cloudflare does not show a token's permissions to a token that can only read billing, so Costfluent cannot refuse a token that can do more: give it nothing else. Copy the token and the account's 32-character account ID, not a zone ID.
  • Costfluent stores the token encrypted and uses it for two calls on the account you name: its usage-based subscriptions and their billable usage. The account ID is the connection's identity, and Costfluent reads the subscriptions before storing anything, so a connection that saves can read your billing. A second connection of the same account is refused.
  • A connection syncs once a day by default, and you can set it as often as hourly. Cloudflare updates the usage once a day, so each sync reads the running billing period and the one before it again.
  • Connecting imports your plan's backfill, at most six months, as far back as Cloudflare reports usage. Only self-serve usage-based charges are read: plan subscriptions such as “Pro”, “Business” or the “Workers Paid” base fee are not, and an “Enterprise” contract's cost is not in this API.

Related pages

  • Confluent Cloud

    Daily cost by environment, resource and product, in US dollars

  • Datadog

    Datadog's estimates per day and final cost, by product and organization, in US dollars

  • Cost insights

    Significant movements, growing services and anomalies, with the costs behind them.

See your Cloudflare cost by zone and product

Start on the permanent Free plan and connect your Cloudflare account.

Permanent Free plan with no time limit

We value your privacy

We use essential storage to operate the site and, only if you allow it, Google Analytics to understand how it is used. Read more in our Privacy policy.

Cookie preferences

Essential cookies Always on

Required for the website to function properly. These cannot be disabled.

Google Analytics

Records page views and four named actions: sign-up and demo clicks, contact form submissions and lead requests. Google's script and its _ga cookies load only after you allow them. We do not send account, tenant, form, or resource identifiers.