Skip to Content
Xeonr Developer Docs
UplApiBuckets

Get bucket statistics

POST
/uplim.api.v1.BucketsService/GetBucketStatistics

A time series over the bucket, one row per hour, day or month (UTC) between start_time and end_time, every period present: size_bytes is the bytes stored at the end of each period (a level), uploaded_bytes and upload_count are what that period's uploads brought (a flow). request_count, download_count, bandwidth_bytes (egress) and ingress_bytes come from upl's own per-request log, folded into hourly per-bucket figures every few minutes; traffic_counted_through says how far, and is absent when no traffic has been counted. Egress for a presigned download is the bytes requested, since the bucket hostname redirects to storage rather than streaming. Needs the bucket admin role.

Required scopes: upl:bucket:analytics

Authorization

OAuth2 upl:bucket:analytics
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:bucket:analytics

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketRef?|&|
startTime?string

Start of the window. The series begins at the period (hour, day or month, UTC) this falls in. Unset: twelve months before end_time. timestamp.lt_now = true

Formatdate-time
endTime?string

End of the window, inclusive; must be after start_time. The series ends at the period this falls in. Unset: now. timestamp.lt_now = true

Formatdate-time
granularity?string

Width of one period. Unset: monthly. A window wider than 1000 periods at the chosen granularity is refused with InvalidArgument. enum.defined_only = true

Value in"STATISTICS_GRANULARITY_UNSPECIFIED" | "STATISTICS_GRANULARITY_HOURLY" | "STATISTICS_GRANULARITY_DAILY" | "STATISTICS_GRANULARITY_MONTHLY"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/GetBucketStatistics" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "statistics": [
    "map[bandwidthBytes:2147483648 downloadCount:912 ingressBytes:53477376 requestCount:4318 sizeBytes:734003200 timestamp:2026-10-01T00:00:00Z uploadCount:37 uploadedBytes:52428800]"
  ],
  "trafficCountedThrough": "2026-10-22T09:00:00Z"
}