Skip to main content
GET
/
storagezone
/
{id}
/
statistics
Get Storage Zone Statistics
curl --request GET \
  --url https://api.bunny.net/storagezone/{id}/statistics \
  --header 'AccessKey: <api-key>'
{
  "StorageUsedChart": {},
  "FileCountChart": {}
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the storage zone

Query Parameters

dateFrom
string<date-time>

(Optional) The start date of the statistics. If no value is passed, the last 30 days will be returned.

dateTo
string<date-time>

(Optional) The end date of the statistics. If no value is passed, the last 30 days will be returned.

Response

The statistics data for the passed parameters.

StorageUsedChart
object

The constructed chart of the storage used by day

FileCountChart
object

The constructed chart of requests stored