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

# PFLeaderboardsGetFriendLeaderboardForEntityAsync

> Reference for PFLeaderboardsGetFriendLeaderboardForEntityAsync, a PlayFab Services C API function that gets a friend leaderboard of up to 25 entries.

Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFLeaderboardsGetFriendLeaderboardForEntityRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetfriendleaderboardforentityrequest.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 [PFLeaderboardsGetFriendLeaderboardForEntityGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentitygetresultsize.md) and [PFLeaderboardsGetFriendLeaderboardForEntityGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentitygetresult.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

- [PFLeaderboardsGetFriendLeaderboardForEntityGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentitygetresult.md)
- [Services C API overview - PFLeaderboards.h](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [Get Friend Leaderboard For Entity](https://docs.xbox.com/api-reference/leaderboards/get-friend-leaderboard-for-entity.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentitygetresultsize.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityRequest](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetfriendleaderboardforentityrequest.md)
