question

eloutsch avatar image
eloutsch asked

Who can i get all player data (title) with a specific key ?

Hello,

I'm trying to get playerdata (title) with a specific key for all player (right now i can only get this key by using : API, so need to make a curl for each player ; really bad.

By the way i'm using curl command, and i store datas locally for a leaderboard

There is a way to got all the value for all the player with this specific key ? Or just get All Player Data ? (not one by one with the PlayFabId

Best regards,

Ety

Player Data
10 |1200

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

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

If I understand it correctly, you want to retrieve values of a specific key for all the players in the leaderboard and you find that using GetUserData for each player is quite a hassle, is that correct? In that case, you can try using the Entity Programming Model to store player data, which uses the SetObjects API to store each player’s data in the title_player_account entity and uses the GetProfiles API to get information about a large set of title_player_account entities (players) in a single request. You can check out these docs for more details about the Entity Programming Model and its usages:

https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/

https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/entity-objects

And, you can also check out these threads to get a better understanding of how it’s used:

https://community.playfab.com/questions/35664/how-to-handle-changes-to-a-large-number-of-usersha.html

https://community.playfab.com/questions/42431/playfab-clanguild-available-features-and-limitatio-1.html

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.