Documentation

GetCharacterStatistics

Retrieves the details of all title-specific statistics for the user

Request Details

GetCharacterStatisticsRequest
Request Properties
CharacterId (required) String

Unique PlayFab assigned ID for a specific character owned by a user

POST https://{{TitleID}}.playfabapi.com/Client/GetCharacterStatistics
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "CharacterId": "98765432"
}
        

Response Details

In addition to being available for use by the title, the statistics are used for all leaderboard operations in PlayFab.

GetCharacterStatisticsResult
Result Properties
CharacterStatistics Dict<String, int32>

The requested character statistics.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "CharacterStatistics": {
      "Headshots": 18,
      "Kills": 47
    }
  }
}

Authentication

SessionTicket

Possible Error Codes

Name Code
CharacterNotFound 1135