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
}
]Retrieve a list of files and directories located in the given directory.
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
}
]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.
he name of your storage zone where you are connecting to.
The directory path that you want to list.
A JSON encoded array of objects.
The unique Guid that represents the file
The full hostname domain value
True directory path where the object is located
The name of the object, file or directory name
The size of the file
The time when the file was last changed
True if this is a directory object, false if it's a file
The ID of the physical server that holds the file
The ID of the user that holds the file
The date and time when the object was first created
The storage zone ID to which the file belongs
Was this page helpful?