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

# PFStatisticsGetStatisticsForEntitiesRequest

> Reference for the PFStatisticsGetStatisticsForEntitiesRequest struct in the PlayFab Services C API, listing entities whose statistics to fetch.

PFStatisticsGetStatisticsForEntitiesRequest data model.

## Syntax

```cpp theme={null}
typedef struct PFStatisticsGetStatisticsForEntitiesRequest {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entities;  
    uint32_t entitiesCount;  
    const char* const* statisticNames;  
    uint32_t statisticNamesCount;  
} PFStatisticsGetStatisticsForEntitiesRequest;  
```

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

**`entities`**   [PFEntityKey](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfentitykey-c.md) const\*

Collection of Entity IDs to retrieve statistics for.

**`entitiesCount`**   uint32\_t

Count of entities

**`statisticNames`**   const char\* const\*\
*may be nullptr*

(Optional) The list of statistics to return for the user. If set to null, the current version of all statistics are returned.

**`statisticNamesCount`**   uint32\_t

Count of statisticNames

## Requirements

**Header:** PFStatisticsTypes.h

## See also

[PFStatisticsTypes members](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members.md)


## Related topics

- [PFStatisticsGetStatisticsForEntitiesAsync](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsforentitiesasync.md)
- [Services C API overview - PFStatisticsTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members.md)
- [PFStatisticsGetStatisticsRequest](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsgetstatisticsrequest.md)
- [Get Statistics For Entities](https://docs.xbox.com/api-reference/statistics/get-statistics-for-entities.md)
- [PFStatisticsGetStatisticsForEntitiesResponse](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsgetstatisticsforentitiesresponse.md)
