Costing APIs
i am new to Cloudflare (about 2 month). Which API can I get the most details about cost (monthly or daily)? Thanks!
8 Replies
Are you asking about which APIs cost money (i.e R2's APIs) or an API to get your billable usage from the dashboard to predict your monthly bill?
i will only use R2. At the end, i want to know entire cost breakdown on R2, how much incurred by operation A, operation B, storage, etc. thanks
Does this help? https://developers.cloudflare.com/r2/pricing/
Pricing · Cloudflare R2 docs
R2 charges based on the total volume of data stored, along with two classes of operations on that data:
thanks, it seems UsageSummary specified is a S3 operation. I cannot find the API details of it.
Some of them map to equivalent API actions, e.g. the bucket related APIs will count as Class A operations
But
how much incurred by operation A, operation B, storage, etc. thanksSeems to be a different question, and the answer will be in GraphQL https://developers.cloudflare.com/analytics/graphql-api/
GraphQL Analytics API · Cloudflare Analytics docs
The GraphQL Analytics API provides data regarding HTTP requests passing through Cloudflare’s network, as well as data from specific products, such as …
i am most concerned to use API to get cost breakdown on R2 incurred by each bucket storage and operations.
Check out the GraphQL API