question

spartan666nm avatar image
spartan666nm asked

How to get other players public [player data] with client API?

i have some combat data inside every players [player data] and those records have public

Permissions. I want somehow to get other players data from the client API for some kind of player profile

how can i do this? is there any way to do this in client API?

apisPlayer Datadata
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gosen Gao avatar image
Gosen Gao answered

Depends on which Player Data you are using, you can use Client API GetUserData or GetUserReadOnlyData to get other player’s public data by specifying the PlayFabId and the Keys.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sidlondon avatar image
sidlondon answered

Is there a way to do this by character name? A player will only see character names in the game, not the owner of that character. But it seems the only way to GetUserData on a character is with the PlayFabId of the character owner (as leaving it blank just fills in the querying player's Id). I know there is a ClientGetAccountInfoRequest that can use either the PlayFabId, Username, TitleDisplayName or Email to return their PlayFabId. But how do you get one of those bits of player account information from just the character name? Is there a way to search for a character's owner?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.