> For the complete documentation index, see [llms.txt](https://gley.gitbook.io/easy-achievements/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gley.gitbook.io/easy-achievements/complete-api/getplayerrank.md).

# GetPlayerRank

## Description

Get rank from leaderboard for the current user.

## Declaration

```csharp
public static void GetPlayerRank(LeaderboardNames leaderboardName, UnityAction<long> completeMethod)
```

## Parameters

<table><thead><tr><th width="206">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>leaderboardName</strong></td><td>The name from Settings Window of the Leaderboard.</td></tr><tr><td><strong>completeMethod</strong></td><td>Method to call after rank is read.</td></tr></tbody></table>

## Example

```csharp
public class Test : MonoBehaviour
{
    public void GetPlayerRank()
    {
        Gley.GameServices.API.GetPlayerRank(LeaderboardNames.HighestJumpers, RankLoaded);
    }

    private void RankLoaded(long rank)
    {
        //read the rank from here
        Debug.Log("Rank: " + rank);
    }
}
```
