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

# PFStatisticsGetStatisticsAsync

> Reference for PFStatisticsGetStatisticsAsync, a PlayFab Services C API function that gets statistics for a specified entity, with syntax and parameters.

Gets statistics for the specified entity.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFStatisticsGetStatisticsRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsgetstatisticsrequest.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. See also StatisticDeleteStatisticsAsync. When the asynchronous task is complete, call [PFStatisticsGetStatisticsGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsgetresultsize.md) and [PFStatisticsGetStatisticsGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsgetresult.md) to get the result.

## Requirements

**Header:** PFStatistics.h

## See also

[PFStatistics members](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/pfstatistics_members.md)


## Related topics

- [PFStatisticsGetStatisticsGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsgetresult.md)
- [Services C API overview - PFStatistics.h](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/pfstatistics_members.md)
- [PFStatisticsDeleteStatisticsAsync](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsdeletestatisticsasync.md)
- [PFStatisticsUpdateStatisticsAsync](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsasync.md)
- [PFStatisticsGetStatisticDefinitionAsync](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticdefinitionasync.md)
