• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by vbalakrishnatimuz · May 24, 2017 at 06:27 AM · Leaderboards and Statistics

Leaderboard get my Rank in all Global Players

Hi Brendan,

We would like to get current player rank in all Global players (We don't require other players data or ranks)

As we have seen getLoaderboard data will fetch all information about players in that leaderboard.

is there any other method availble like getPlayerRank(bool inAllPlayers) just return Rank (int) value like Rank(45000) in 1000000 players.

We are not expecting too much data.. just integer based on his position.

Please suggest us solution.

Thank You

Balakrishna

Comment
cqatproject

People who like this

1 Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cqatproject · Jul 05, 2018 at 07:19 AM 0
Share

@Brendan Thanks for the reply, I now add my comment to the main thread.

Is there any update about this matter? As the other developers experienced (and me as well) that GetLeaderboard and GetLeaderboardAroundPlayer returns different results, if the player has the same statistic value with the other players.

I also want to get the current player rank from the global players. When I used GetLeaderboardAroundPlayer it gaves me a different result as with GetLeaderboard.

Thanks you.

avatar image Brendan ♦♦ cqatproject · Jul 05, 2018 at 08:42 PM 0
Share

Actually, what I was saying was that this thread is specifically about getting the count of all players. What you're asking is a very different question, so to prevent confusion, I was suggesting starting a new thread, or finding a different thread that is about the values/player positions. This one, for example, would be a more appropriate place for your question: https://community.playfab.com/questions/20111/getleaderboardaroundplayer-returns-different-posit.html

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · May 24, 2017 at 07:11 AM

The leaderboard data currently contains the position of the player in the overall list. I think what you're asking (and please correct me if I'm wrong) is that you want the total number of players in the leaderboard. That's not currently part of the leaderboard system, as computing the number of players with a reported score on a specific statistic would require iterating across that statistic each time, since a player could report a score at any time.

We'll be updating with more tournament-specific functionality later this year, which will include new ways to work with leaderboard data, such as being able to filter on geolocation and have separate cohorts per leaderboard. Please keep an eye on our update announcements in the Game Manager for more information on this.

Comment
adnannazir2012

People who like this

1 Show 11 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image vbalakrishnatimuz · May 25, 2017 at 12:53 PM 0
Share

As you mentioned..

The leaderboard data currently contains the position of the player in the overall list. (this list is limited right?)

We want position of the player in the overall list globally not in limited player..

Example I just want to get my Rank among 1 Million Players. not the data of all 1 Million players.

Thank You Brendan,

avatar image Brendan ♦♦ vbalakrishnatimuz · May 25, 2017 at 06:32 PM 0
Share

No, that's not limited. If you have 100,000,000 players who have a statistic, each player has a position in the leaderboard, which is returned as part of the leaderboard data. So, for example: https://api.playfab.com/documentation/client/method/GetLeaderboardAroundPlayer. If a given player is in position 939,173,376 in the leaderboard and you use that API to request him and the 20 players around his position, you'd get their relative positions in the leaderboard. If that's not what you mean, can you please clarify what the data is that you're looking for?

avatar image vbalakrishnatimuz · May 26, 2017 at 05:52 PM 1
Share

I just want to show player rank among all players of game.

Example: You are at 45,000 Rank out of Total Players 100,000.

Thank you.

avatar image Brendan ♦♦ vbalakrishnatimuz · May 26, 2017 at 06:15 PM 0
Share

Thanks, as I was saying above, the total number of players in the leaderboard is the part that is not currently available. We'll be adding that in a future update.

avatar image andrearossini Brendan ♦♦ · Jan 17, 2018 at 09:16 AM 0
Share

Hi, Any news on leaderboard total player count?

We was thinking about create a fake player and set it's statistic value to -1. All other players will have values >= 0, so the position of that player will be the player count.

Is this possible in your mind?

Show more comments
avatar image mak vbalakrishnatimuz · Nov 03, 2018 at 06:17 AM 0
Share

try this api GetLeaderboardAroundPlayer you'll get your rank in this result. what ever its it will give some records as per parameters like 5 record and your entry will be there so u can find your position from all players.(it will give 5 records which nears to you including you)

avatar image cqatproject · Jul 04, 2018 at 12:43 PM 0
Share

Is there any update about this matter? As the other developers experienced (and me as well) that GetLeaderboard and GetLeaderboardAroundPlayer returns different results, if the player has the same statistic value with the other players.

avatar image Brendan ♦♦ cqatproject · Jul 05, 2018 at 02:46 AM 1
Share

Could you please open a new thread for this (or add this to one that's on that topic), so that we're not conflating separate issues? This question thread was specifically about wanting to get the total number of players in the leaderboard.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    6 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    How to get player Leaderboard information 1 Answer

    How can i remove Player statistic and leaderboard? 1 Answer

    Found a discrepancy in GetLeaderboardAroundPlayer - might be an issue 2 Answers

    Calling GetCharacterLeaderboard multiple times and not confusing the results?,Calling GetCharacterLeaderboard multiple times and not mistake the result? 2 Answers

    How do I view leaderboard from website? 1 Answer

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

      • Documentation
      • Quickstarts
      • API Reference
      • SDKs
      • Usage Limits
    • Support

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges