Documentation

GetAccountInfo

Retrieves the user's PlayFab account details

Request Details

GetAccountInfoRequest
Request Properties
Email String

User email address for the account to find (if no Username is specified).

PlayFabId String

Unique PlayFab identifier of the user whose info is being requested. Optional, defaults to the authenticated user if no other lookup identifier set.

TitleDisplayName String

Title-specific username for the account to find (if no Email is set). Note that if the non-unique Title Display Names option is enabled for the title, attempts to look up users by Title Display Name will always return AccountNotFound.

Username String

PlayFab Username for the account to find (if no PlayFabId is specified).

POST https://{{TitleID}}.playfabapi.com/Client/GetAccountInfo
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "PlayFabId": "10931252888739651331"
}
        

Response Details

This API retrieves details regarding the player in the PlayFab service. Note that when this call is used to retrieve data about another player (not the one signed into the local client), some data, such as Personally Identifying Information (PII), will be omitted for privacy reasons or to comply with the requirements of the platform belongs to. The user account returned will be based on the identifier provided in priority order: PlayFabId, Username, Email, then TitleDisplayName. If no identifier is specified, the currently signed in user's information will be returned.

GetAccountInfoResult
Result Properties
AccountInfo UserAccountInfo

Account information for the local user.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "AccountInfo": {
      "PlayFabId": "10931252888739651331",
      "Created": "2013-04-07T09:04:28Z",
      "Username": "accountname",
      "TitleInfo": {
        "Origination": "IOS",
        "Created": "2014-01-08T11:03:18Z",
        "LastLogin": "2014-04-07T09:04:28Z",
        "FirstLogin": "2014-01-08T11:03:18Z",
        "TitlePlayerAccount": {
          "Id": "174812abf712",
          "Type": "title_player_account",
          "TypeString": "title_player_account"
        }
      },
      "FacebookInfo": {
        "FacebookId": "23525445454"
      },
      "SteamInfo": {
        "SteamCountry": "US",
        "SteamCurrency": "USD"
      },
      "GameCenterInfo": {
        "GameCenterId": "someone"
      }
    }
  }
}

Authentication

SessionTicket

Possible Error Codes

Name Code
AccountNotFound 1001