> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFLeaderboardsGetLeaderboardAsync

> Reference for PFLeaderboardsGetLeaderboardAsync, a PlayFab Services C API function that gets a leaderboard for an entity type and statistic.

Get the leaderboard for a specific entity type and statistic.

## Syntax

```cpp theme={null}
HRESULT PFLeaderboardsGetLeaderboardAsync(  
    PFEntityHandle entityHandle,  
    const PFLeaderboardsGetEntityLeaderboardRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFLeaderboardsGetEntityLeaderboardRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetentityleaderboardrequest.md)

Populated request object.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. When the asynchronous task is complete, call [PFLeaderboardsGetLeaderboardGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardgetresultsize.md) and [PFLeaderboardsGetLeaderboardGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardgetresult.md) to get the result.

## Requirements

**Header:** PFLeaderboards.h

## See also

[PFLeaderboards members](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)


## Related topics

- [PFLeaderboardsGetLeaderboardGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardgetresult.md)
- [Services C API overview - PFLeaderboards.h](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [XblLeaderboardGetLeaderboardAsync](https://docs.xbox.com/reference/live/xsapi-c/leaderboard_c/functions/xblleaderboardgetleaderboardasync.md)
- [PFLeaderboardsGetLeaderboardDefinitionAsync](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboarddefinitionasync.md)
- [PFLeaderboardsGetLeaderboardForEntitiesAsync](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesasync.md)
