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

# 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\*](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsgetstatisticsrequest)

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

## Requirements

**Header:** PFStatistics.h

## See also

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


## Related topics

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