That’s mostly an API for the dashboard
That’s mostly an API for the dashboard, and is undocumented right now because I plan on changing it slightly. If you’re looking for a way to get bucket usage statistics, you might want to look into the GraphQL API instead.
3 Replies
Nice, can you link to some docs on the GraphQL API?
Do you plan on providing usage summary per... prefix? 🙂 usecase: folder size
Sure, I was just talking about the general CF GraphQL API: https://developers.cloudflare.com/stream/getting-analytics/fetching-bulk-analytics/#graphql-analytics-api
GraphQL Analytics API · Cloudflare Stream docs
Stream provides analytics about both live video and video uploaded to Stream, via the GraphQL API described below, as well as in the Stream dashboard.
It's self-documenting of course, but you can snoop around on the
Metrics
tab of your bucket to find the exact query we send from there
Prefix-level metrics are really hard. I wouldn't expect those anytime soon