API for Get Bucket Size (Cloudflare R2)
Hi, Cloudflare Team.
I would like to ask if there is a Public API to get information like total bucket size in Cloudflare R2?
If there is, is there a documentation link for me to read, because I have searched but couldn't find it.
If not, is there any plan to add this API? Because in our application case study we need this information.
Thank you.
2 Replies
You can use the GraphQL API to get storage
https://developers.cloudflare.com/r2/platform/metrics-analytics/#storage
Cloudflare Docs
Metrics and analytics · Cloudflare R2 docs
R2 exposes analytics that allow you to inspect the requests and storage of the buckets in your account.
@Cyb3r-Jak3 , Thanks. I will try it...