Documentation

GetContentList

List all contents of the title and get statistics such as size

Request Details

GetContentListRequest
Request Properties
Prefix String

Limits the response to keys that begin with the specified prefix. You can use prefixes to list contents under a folder, or for a specified version, etc.

POST https://{{TitleID}}.playfabapi.com/Admin/GetContentList
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "Prefix": "2016/1"
}
        

Response Details

GetContentListResult
Result Properties
Contents List<ContentInfo>

List of content items.

ItemCount (required) int32

Number of content items returned. We currently have a maximum of 1000 items limit.

TotalSize (required) uint32

The total size of listed contents in bytes.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "ItemCount": 2,
    "TotalSize": 13100,
    "Contents": [
      {
        "Key": "a.jpg",
        "Size": 13000,
        "LastModified": "0001-01-01T00:00:00Z"
      },
      {
        "Key": "subfolder/b.txt",
        "Size": 100,
        "LastModified": "0001-01-01T00:00:00Z"
      }
    ]
  }
}

Authentication

SecretKey

Possible Error Codes

Name Code
ContentS3OriginBucketNotConfigured 1299