question

Riccardo Iengo avatar image
Riccardo Iengo asked

Get a specific statistic from Get Leaderboard->Profile

Hi,

I was finally able to get player stats with the Get Leaderboard API, but how can I call a specific statistic without displaying all of them?

Let's say that I have 100 stats but in a specific leaderboard I just need 2 stats is It possible to do this?

thanks!

stats.png


stats.png (112.3 KiB)
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

·
Seth Du avatar image
Seth Du answered

>>how can I call a specific statistic without displaying all of them?

I am not sure of your description. GetLeaderboard API will return the leaderboard of only one statistic, which contains all players that have this statistic . If you want to get the statistic of 2 players, you may simply call GetPlayerProfile API with ProfileConstaints defined in the request.

2 comments
10 |1200

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

Riccardo Iengo avatar image Riccardo Iengo commented ·

I'm sorry what I mean is, I can see all the Statistics for each player when calling Get Leaderboard API with "ShowStatistics" in the Profile Constraints.

Now, let's say I have 50 stats, but I only want to show just 4 stats for each player, is it possible? Because when I do "Get Field" after the leaderboard result and put "Name" as parameter he will show me all the 50 stats for each player!

Hope it's clear, thanks :D

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Riccardo Iengo commented ·

PlayFab does not support it currently. You may filter the data if necessary for display.

0 Likes 0 ·

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.