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

# PFLeaderboardsGetLeaderboardForEntitiesRequest

> Reference for the PFLeaderboardsGetLeaderboardForEntitiesRequest struct in the PlayFab Services C API, used to request rankings for a set of entity IDs.

PFLeaderboardsGetLeaderboardForEntitiesRequest data model. Request a leaderboard limited to a collection of entities.

## Syntax

```cpp theme={null}
typedef struct PFLeaderboardsGetLeaderboardForEntitiesRequest {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    const char* const* entityIds;  
    uint32_t entityIdsCount;  
    const char* leaderboardName;  
    uint32_t const* version;  
} PFLeaderboardsGetLeaderboardForEntitiesRequest;  
```

### Members

**`customTags`**   [PFStringDictionaryEntry](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry.md) const\*\
*may be nullptr*

(Optional) The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

**`customTagsCount`**   uint32\_t

Count of customTags

**`entityIds`**   const char\* const\*

Collection of Entity IDs to include in the leaderboard.

**`entityIdsCount`**   uint32\_t

Count of entityIds

**`leaderboardName`**   const char\*\
*is null-terminated*

Name of the leaderboard.

**`version`**   uint32\_t const\*\
*may be nullptr*

(Optional) Optional version of the leaderboard, defaults to current.

## Requirements

**Header:** PFLeaderboardsTypes.h

## See also

[PFLeaderboardsTypes members](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/pfleaderboardstypes_members.md)


## Related topics

- [PFLeaderboardsGetLeaderboardForEntitiesAsync](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesasync.md)
- [Services C API overview - PFLeaderboardsTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/pfleaderboardstypes_members.md)
- [PFLeaderboardsGetEntityLeaderboardRequest](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetentityleaderboardrequest.md)
- [PFLeaderboardsGetLeaderboardAroundEntityRequest](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetleaderboardaroundentityrequest.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityRequest](https://docs.xbox.com/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetfriendleaderboardforentityrequest.md)
