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

# PFLeaderboardsGetLeaderboardAroundEntityAsync

> Reference for PFLeaderboardsGetLeaderboardAroundEntityAsync, a PlayFab Services C API function that gets leaderboard entries around an entity.

Get the leaderboard around a specific entity.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFLeaderboardsGetLeaderboardAroundEntityRequest\*](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetleaderboardaroundentityrequest)

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 all platforms. When the asynchronous task is complete, call [PFLeaderboardsGetLeaderboardAroundEntityGetResultSize](/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardaroundentitygetresultsize) and [PFLeaderboardsGetLeaderboardAroundEntityGetResult](/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardaroundentitygetresult) to get the result.

## Requirements

**Header:** PFLeaderboards.h

## See also

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


## Related topics

- [PFLeaderboardsGetLeaderboardAroundEntityGetResult](/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardaroundentitygetresult.md)
- [Services C API overview - PFLeaderboards.h](/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [PFLeaderboardsGetLeaderboardAroundEntityGetResultSize](/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardaroundentitygetresultsize.md)
- [PFLeaderboardsGetLeaderboardAroundEntityRequest](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetleaderboardaroundentityrequest.md)
- [Doing with more leaderboards](/services/playfab/community/leaderboards/doing-more-with-leaderboards.md)
