> ## 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.

# PFLeaderboardsGetLeaderboardForEntitiesAsync

> Reference for PFLeaderboardsGetLeaderboardForEntitiesAsync, a PlayFab Services C API function that gets a leaderboard for a set of entities.

Get the leaderboard limited to a set of entities.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFLeaderboardsGetLeaderboardForEntitiesRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetleaderboardforentitiesrequest.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 Windows, Linux, and macOS. When the asynchronous task is complete, call [PFLeaderboardsGetLeaderboardForEntitiesGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesgetresultsize.md) and [PFLeaderboardsGetLeaderboardForEntitiesGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesgetresult.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

- [PFLeaderboardsGetLeaderboardForEntitiesGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesgetresult.md)
- [Services C API overview - PFLeaderboards.h](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [PFLeaderboardsGetLeaderboardAsync](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardasync.md)
- [PFLeaderboardsGetLeaderboardAroundEntityAsync](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardaroundentityasync.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityAsync](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentityasync.md)
