> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.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\*](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetleaderboardforentitiesrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*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](/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesgetresultsize) and [PFLeaderboardsGetLeaderboardForEntitiesGetResult](/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesgetresult) to get the result.

## Requirements

**Header:** PFLeaderboards.h

## See also

[PFLeaderboards members](/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members)


## Related topics

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