Get Bucket Usage
Buckets
Get Bucket Usage
Get usage and cost metrics.
Analyzes bucket usage and costs including:
- Storage costs (GB-hours)
- Upload operation costs
- Sync operation costs
- Cost breakdown by category
Use Cases:
- Track bucket costs
- Optimize spending
- Forecast future costs
- Cost attribution
Example:
curl -X GET "https://api.mixpeek.com/v1/analytics/buckets/bkt_abc123/usage?group_by=day" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Namespace: your-namespace"
GET
Get Bucket Usage
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Start date (UTC)
End date (UTC)
Time grouping: hour, day, week, month
Response
Successful Response
Bucket usage and cost analytics response.
Bucket identifier
Query time range
Usage metrics
Cost breakdown
Total credits consumed
Total cost in USD

