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
kian
kian7mo ago
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?
philipho
philipho7mo ago
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
Zazh
Zazh7mo ago
Pricing · Cloudflare R2 docs
R2 charges based on the total volume of data stored, along with two classes of operations on that data:
philipho
philipho7mo ago
thanks, it seems UsageSummary specified is a S3 operation. I cannot find the API details of it.
Erisa
Erisa7mo ago
Some of them map to equivalent API actions, e.g. the bucket related APIs will count as Class A operations
Erisa
Erisa7mo ago
But
how much incurred by operation A, operation B, storage, etc. thanks
Seems 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 …
philipho
philipho7mo ago
i am most concerned to use API to get cost breakdown on R2 incurred by each bucket storage and operations.
Erisa
Erisa7mo ago
Check out the GraphQL API
Want results from more Discord servers?
Add your server
More Posts