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

# XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsAsync

> XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsAsync

# XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsAsync

Get statistics for users across different Service configurations.

## Syntax

```cpp theme={null}
HRESULT XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t* xboxUserIds,  
         uint32_t xboxUserIdsCount,  
         const XblRequestedStatistics* requestedServiceConfigurationStatisticsCollection,  
         uint32_t requestedServiceConfigurationStatisticsCollectionCount,  
         XAsyncBlock* async  
)  
```

### Parameters

*xblContextHandle*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XBOX live context for the local user.

*xboxUserIds*   \_In\_\
Type: uint64\_t\*

A list of the user XBOX user ID to get stats for.

*xboxUserIdsCount*   \_In\_\
Type: uint32\_t

A list of the user XBOX user ID to get stats for.

*requestedServiceConfigurationStatisticsCollection*   \_In\_\
Type: [XblRequestedStatistics\*](/reference/live/xsapi-c/user_statistics_c/structs/xblrequestedstatistics)

A list of the service config IDs and its associated array of statistics.

*requestedServiceConfigurationStatisticsCollectionCount*   \_In\_\
Type: uint32\_t

The number of the service config IDs and its associated array of statistics.

*async*   \_In\_\
Type: XAsyncBlock\*

The AsyncBlock for this operation.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Call [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsResultSize](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsresultsize) and [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsResult](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsresult) upon completion to get the result. Only statistics with values are returned. For example, if you ask for 3 statistic names and only 2 have values, only 2 statistics are returned by the service.

## REST Call

V1 POST /batch

## Requirements

**Header:** user\_statistics\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[user\_statistics\_c](/reference/live/xsapi-c/user_statistics_c/user_statistics_c_members)


## Related topics

- [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsResult](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsresult.md)
- [XblRequestedStatistics](/reference/live/xsapi-c/user_statistics_c/structs/xblrequestedstatistics.md)
- [Getting event-based stats](/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-getting-eb-stat.md)
- [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsResultSize](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsresultsize.md)
- [XblUserStatisticsGetMultipleUserStatisticsAsync](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsasync.md)
