Obtenir les informations combinées du joueur
Returns whatever info is requested in the response for the user. Note that PII (like email address, facebook id) may be returned. All parameters default to false.
POST
/
Server
/
GetPlayerCombinedInfo
Get Player Combined Info
curl --request POST \
--url https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo \
--header 'Content-Type: application/json' \
--header 'X-SecretKey: <api-key>' \
--data '
{
"PlayFabId": "4027527BF22653D1",
"InfoRequestParameters": {
"GetUserAccountInfo": true,
"GetUserVirtualCurrency": true,
"GetUserData": true,
"UserDataKeys": [
"preferences",
"progress"
]
}
}
'import requests
url = "https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo"
payload = {
"PlayFabId": "4027527BF22653D1",
"InfoRequestParameters": {
"GetUserAccountInfo": True,
"GetUserVirtualCurrency": True,
"GetUserData": True,
"UserDataKeys": ["preferences", "progress"]
}
}
headers = {
"X-SecretKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-SecretKey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
PlayFabId: '4027527BF22653D1',
InfoRequestParameters: {
GetUserAccountInfo: true,
GetUserVirtualCurrency: true,
GetUserData: true,
UserDataKeys: ['preferences', 'progress']
}
})
};
fetch('https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'PlayFabId' => '4027527BF22653D1',
'InfoRequestParameters' => [
'GetUserAccountInfo' => true,
'GetUserVirtualCurrency' => true,
'GetUserData' => true,
'UserDataKeys' => [
'preferences',
'progress'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-SecretKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo"
payload := strings.NewReader("{\n \"PlayFabId\": \"4027527BF22653D1\",\n \"InfoRequestParameters\": {\n \"GetUserAccountInfo\": true,\n \"GetUserVirtualCurrency\": true,\n \"GetUserData\": true,\n \"UserDataKeys\": [\n \"preferences\",\n \"progress\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-SecretKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo")
.header("X-SecretKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"PlayFabId\": \"4027527BF22653D1\",\n \"InfoRequestParameters\": {\n \"GetUserAccountInfo\": true,\n \"GetUserVirtualCurrency\": true,\n \"GetUserData\": true,\n \"UserDataKeys\": [\n \"preferences\",\n \"progress\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-SecretKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"PlayFabId\": \"4027527BF22653D1\",\n \"InfoRequestParameters\": {\n \"GetUserAccountInfo\": true,\n \"GetUserVirtualCurrency\": true,\n \"GetUserData\": true,\n \"UserDataKeys\": [\n \"preferences\",\n \"progress\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"status": "OK",
"data": {
"PlayFabId": "4027527BF22653D1",
"InfoResultPayload": {
"AccountInfo": {
"PlayFabId": "4027527BF22653D1",
"Created": "2013-04-07T09:04:28",
"Username": "my name",
"TitleInfo": {
"Origination": "IOS",
"Created": "2014-01-08T11:03:18",
"LastLogin": "2014-04-07T09:04:28",
"FirstLogin": "2014-01-08T11:03:18",
"TitlePlayerAccount": {
"Id": "174812abf712",
"Type": "title_player_account",
"TypeString": "title_player_account"
}
},
"FacebookInfo": {
"FacebookId": "23525445454"
},
"SteamInfo": {
"SteamCountry": "US",
"SteamCurrency": "USD"
},
"GameCenterInfo": {
"GameCenterId": "someone"
}
},
"UserVirtualCurrency": {
"GC": 15
},
"UserVirtualCurrencyRechargeTimes": {
"GC": {
"SecondsToRecharge": 3600,
"RechargeTime": "2014-01-01T12:00:00",
"RechargeMax": 50
}
},
"UserData": {
"preferences": {
"Value": "alpha",
"LastUpdated": "2014-08-20T12:30:45",
"Permission": "Public"
},
"progress": {
"Value": "level_twenty",
"LastUpdated": "2014-09-01T10:12:30"
}
},
"UserDataVersion": 12,
"PlayerProfile": {
"TitleId": "TitleName",
"PlayerId": "10931252888739651331",
"Created": "0001-01-01T00:00:00",
"LastLogin": "0001-01-01T00:00:00",
"BannedUntil": "9999-12-31T23:59:59.9999999",
"DisplayName": "PlayerDisplayName",
"TotalValueToDateInUSD": 0
}
}
}
}{
"code": 123,
"errorCode": 123,
"status": "<string>",
"error": "<string>",
"errorMessage": "<string>",
"errorDetails": {}
}Autorisations
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
Corps
application/json
Flags for which pieces of info to return for the user.
Show child attributes
Show child attributes
Exemple:
{
"GetUserAccountInfo": true,
"GetUserVirtualCurrency": true,
"GetUserData": true,
"UserDataKeys": ["preferences", "progress"]
}
PlayFabId of the user whose data will be returned
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
Réponse
The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.
The Http status code as a string.
Show child attributes
Show child attributes
Exemple:
{
"PlayFabId": "4027527BF22653D1",
"InfoResultPayload": {
"AccountInfo": {
"PlayFabId": "4027527BF22653D1",
"Created": "2013-04-07T09:04:28",
"Username": "my name",
"TitleInfo": {
"Origination": "IOS",
"Created": "2014-01-08T11:03:18",
"LastLogin": "2014-04-07T09:04:28",
"FirstLogin": "2014-01-08T11:03:18",
"TitlePlayerAccount": {
"Id": "174812abf712",
"Type": "title_player_account",
"TypeString": "title_player_account"
}
},
"FacebookInfo": { "FacebookId": "23525445454" },
"SteamInfo": {
"SteamCountry": "US",
"SteamCurrency": "USD"
},
"GameCenterInfo": { "GameCenterId": "someone" }
},
"UserVirtualCurrency": { "GC": 15 },
"UserVirtualCurrencyRechargeTimes": {
"GC": {
"SecondsToRecharge": 3600,
"RechargeTime": "2014-01-01T12:00:00",
"RechargeMax": 50
}
},
"UserData": {
"preferences": {
"Value": "alpha",
"LastUpdated": "2014-08-20T12:30:45",
"Permission": "Public"
},
"progress": {
"Value": "level_twenty",
"LastUpdated": "2014-09-01T10:12:30"
}
},
"UserDataVersion": 12,
"PlayerProfile": {
"TitleId": "TitleName",
"PlayerId": "10931252888739651331",
"Created": "0001-01-01T00:00:00",
"LastLogin": "0001-01-01T00:00:00",
"BannedUntil": "9999-12-31T23:59:59.9999999",
"DisplayName": "PlayerDisplayName",
"TotalValueToDateInUSD": 0
}
}
}
Dernière modification le 6 octobre 2026
Sujets connexes
Obtenir les informations combinées du joueurObtenir les versions des statistiques du joueurObtenir les étiquettes du joueurObtenir les échanges du joueurObtenir les statistiques du joueurCette page vous a-t-elle été utile ?
⌘I
Get Player Combined Info
curl --request POST \
--url https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo \
--header 'Content-Type: application/json' \
--header 'X-SecretKey: <api-key>' \
--data '
{
"PlayFabId": "4027527BF22653D1",
"InfoRequestParameters": {
"GetUserAccountInfo": true,
"GetUserVirtualCurrency": true,
"GetUserData": true,
"UserDataKeys": [
"preferences",
"progress"
]
}
}
'import requests
url = "https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo"
payload = {
"PlayFabId": "4027527BF22653D1",
"InfoRequestParameters": {
"GetUserAccountInfo": True,
"GetUserVirtualCurrency": True,
"GetUserData": True,
"UserDataKeys": ["preferences", "progress"]
}
}
headers = {
"X-SecretKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-SecretKey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
PlayFabId: '4027527BF22653D1',
InfoRequestParameters: {
GetUserAccountInfo: true,
GetUserVirtualCurrency: true,
GetUserData: true,
UserDataKeys: ['preferences', 'progress']
}
})
};
fetch('https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'PlayFabId' => '4027527BF22653D1',
'InfoRequestParameters' => [
'GetUserAccountInfo' => true,
'GetUserVirtualCurrency' => true,
'GetUserData' => true,
'UserDataKeys' => [
'preferences',
'progress'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-SecretKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo"
payload := strings.NewReader("{\n \"PlayFabId\": \"4027527BF22653D1\",\n \"InfoRequestParameters\": {\n \"GetUserAccountInfo\": true,\n \"GetUserVirtualCurrency\": true,\n \"GetUserData\": true,\n \"UserDataKeys\": [\n \"preferences\",\n \"progress\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-SecretKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo")
.header("X-SecretKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"PlayFabId\": \"4027527BF22653D1\",\n \"InfoRequestParameters\": {\n \"GetUserAccountInfo\": true,\n \"GetUserVirtualCurrency\": true,\n \"GetUserData\": true,\n \"UserDataKeys\": [\n \"preferences\",\n \"progress\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{titleId}.playfabapi.com/Server/GetPlayerCombinedInfo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-SecretKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"PlayFabId\": \"4027527BF22653D1\",\n \"InfoRequestParameters\": {\n \"GetUserAccountInfo\": true,\n \"GetUserVirtualCurrency\": true,\n \"GetUserData\": true,\n \"UserDataKeys\": [\n \"preferences\",\n \"progress\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"status": "OK",
"data": {
"PlayFabId": "4027527BF22653D1",
"InfoResultPayload": {
"AccountInfo": {
"PlayFabId": "4027527BF22653D1",
"Created": "2013-04-07T09:04:28",
"Username": "my name",
"TitleInfo": {
"Origination": "IOS",
"Created": "2014-01-08T11:03:18",
"LastLogin": "2014-04-07T09:04:28",
"FirstLogin": "2014-01-08T11:03:18",
"TitlePlayerAccount": {
"Id": "174812abf712",
"Type": "title_player_account",
"TypeString": "title_player_account"
}
},
"FacebookInfo": {
"FacebookId": "23525445454"
},
"SteamInfo": {
"SteamCountry": "US",
"SteamCurrency": "USD"
},
"GameCenterInfo": {
"GameCenterId": "someone"
}
},
"UserVirtualCurrency": {
"GC": 15
},
"UserVirtualCurrencyRechargeTimes": {
"GC": {
"SecondsToRecharge": 3600,
"RechargeTime": "2014-01-01T12:00:00",
"RechargeMax": 50
}
},
"UserData": {
"preferences": {
"Value": "alpha",
"LastUpdated": "2014-08-20T12:30:45",
"Permission": "Public"
},
"progress": {
"Value": "level_twenty",
"LastUpdated": "2014-09-01T10:12:30"
}
},
"UserDataVersion": 12,
"PlayerProfile": {
"TitleId": "TitleName",
"PlayerId": "10931252888739651331",
"Created": "0001-01-01T00:00:00",
"LastLogin": "0001-01-01T00:00:00",
"BannedUntil": "9999-12-31T23:59:59.9999999",
"DisplayName": "PlayerDisplayName",
"TotalValueToDateInUSD": 0
}
}
}
}{
"code": 123,
"errorCode": 123,
"status": "<string>",
"error": "<string>",
"errorMessage": "<string>",
"errorDetails": {}
}