Skip to main content
GET
/
{storageZoneName}
/
{path}
List Files
curl --request GET \
  --url https://storage.bunnycdn.com/{storageZoneName}/{path}/ \
  --header 'AccessKey: <api-key>'
[
  {
    "Guid": "<string>",
    "StorageZoneName": "<string>",
    "Path": "<string>",
    "ObjectName": "<string>",
    "Length": 123,
    "LastChanged": "<string>",
    "IsDirectory": true,
    "ServerId": 123,
    "UserId": "<string>",
    "DateCreated": "<string>",
    "StorageZoneId": 123
  }
]

Authorizations

AccessKey
string
header
required

The storage zone password also doubles as your API key. You can find it in your storage zone details page in the bunny.net dashboard.

Path Parameters

storageZoneName
string
required

he name of your storage zone where you are connecting to.

path
string
required

The directory path that you want to list.

Response

A JSON encoded array of objects.

Guid
string<guid>

The unique Guid that represents the file

StorageZoneName
string

The full hostname domain value

Path
string

True directory path where the object is located

ObjectName
string

The name of the object, file or directory name

Length
integer<int64>

The size of the file

LastChanged
string<datetime>

The time when the file was last changed

IsDirectory
boolean

True if this is a directory object, false if it's a file

ServerId
integer

The ID of the physical server that holds the file

UserId
string

The ID of the user that holds the file

DateCreated
string<datetime>

The date and time when the object was first created

StorageZoneId
integer

The storage zone ID to which the file belongs