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

# PFStatisticsGetStatisticsForEntitiesAsync

> Reference for PFStatisticsGetStatisticsForEntitiesAsync, a PlayFab Services C API function that gets statistics for a collection of entities.

Gets statistics for the specified collection of entities.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFStatisticsGetStatisticsForEntitiesRequest\*](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsgetstatisticsforentitiesrequest)

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. See also StatisticDeleteStatisticsAsync. When the asynchronous task is complete, call [PFStatisticsGetStatisticsForEntitiesGetResultSize](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsforentitiesgetresultsize) and [PFStatisticsGetStatisticsForEntitiesGetResult](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsforentitiesgetresult) to get the result.

## Requirements

**Header:** PFStatistics.h

## See also

[PFStatistics members](/services/playfab/api-references/c/pfstatistics/pfstatistics_members)


## Related topics

- [PFStatisticsGetStatisticsForEntitiesGetResult](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsforentitiesgetresult.md)
- [Services C API overview - PFStatistics.h](/services/playfab/api-references/c/pfstatistics/pfstatistics_members.md)
- [PFStatisticsGetStatisticsAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsasync.md)
- [PFStatisticsGetStatisticDefinitionAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticdefinitionasync.md)
- [PFStatisticsGetStatisticsForEntitiesGetResultSize](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsforentitiesgetresultsize.md)
