v5

latestOpenAPI 3.1.02026-08-025631,1012.8 MB
Analytics
Analytics - 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/v1/analytics/buckets/{bucket_id}/usage

Path parameters

bucket_idstring required

Query parameters

start_datestring date-time nullable

Start date (UTC)

Start date (UTC)

end_datestring date-time nullable

End date (UTC)

End date (UTC)

group_bystring

Time grouping: hour, day, week, month

Time grouping: hour, day, week, month

Response

Successful Response

bucket_idstring required

Bucket identifier

total_creditsinteger required

Total credits consumed

total_cost_usdnumber required

Total cost in USD