Cloudflare Launches Billable Usage API for Programmatic Cost Visibility

Cloudflare · 3 Aug 2026 · 2 min read

#cloudflare

Cloudflare has introduced the Billable Usage API, a new endpoint that gives developers and FinOps teams programmatic access to cost and usage data across all self-serve products. This single API simplifies cost tracking, eliminating the need to manually aggregate data from separate dashboards or internal tools. The API is built around the FOCUS (FinOps Open Cost and Usage Specification), ensuring spend data is standardized and can be seamlessly integrated with the rest of your cloud stack.

Key changes for developers:

  • Single endpoint access: Use the new API, GET /accounts/{account_id}/billable_usage, to retrieve detailed usage and cost metrics for all self-serve products in one request.
  • FOCUS-compliant schema: The response follows the FOCUS specification, providing a consistent format (e.g., billing_period, charge_type, resource_id, sku_price_id) that aligns with other cloud providers' cost data, making multi-cloud FinOps tools easier to build.
  • Granular visibility: Drill down into specific products, time ranges, and resource IDs via query parameters like product, since, until, and resource_id, enabling precise cost analysis and anomaly detection.
  • Programmatic budgeting: Integrate the API into scripts or CI/CD pipelines to automate budget alerts, create custom reports, or sync usage data with internal billing systems.
  • No extra cost: The API is available to all self-serve accounts at no additional charge, and authentication uses standard Cloudflare API tokens.

This API matters because it transforms cost visibility from a manual, retrospective activity into a real-time, automated process. Developers can now build custom dashboards, set up proactive spend alerts, and correlate Cloudflare costs with other cloud services using familiar tools like Python or curl. The alignment with FOCUS also future-proofs your FinOps practices, making it easier to compare costs across vendors and adopt open standards. Whether you're managing a single project or a large enterprise account, the Billable Usage API brings Cloudflare into your existing cost-management workflows with minimal overhead.

Source: https://blog.cloudflare.com/billable-usage-api/

Related

auto-curated · source linked above ← all news