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

# XblUserStatisticsGetMultipleUserStatisticsAsync

> XblUserStatisticsGetMultipleUserStatisticsAsync

# XblUserStatisticsGetMultipleUserStatisticsAsync

Obtiene estadísticas de varios usuarios.

## Sintaxis

```cpp theme={null}
HRESULT XblUserStatisticsGetMultipleUserStatisticsAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t* xboxUserIds,  
         size_t xboxUserIdsCount,  
         const char* serviceConfigurationId,  
         const char** statisticNames,  
         size_t statisticNamesCount,  
         XAsyncBlock* async  
)  
```

### Parámetros

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

Contexto de XBOX live del usuario local.

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

Una lista de los identificadores de usuario de XBOX de los que se obtendrán las estadísticas.

*xboxUserIdsCount*   \_In\_\
Tipo: size\_t

El número de identificadores de usuario de XBOX.

*serviceConfigurationId*   \_In\_z\_\
Tipo: char\*

El identificador de configuración de servicio (SCID) del título. El SCID distingue mayúsculas de minúsculas, así que péguelo directamente desde el Partner Center.

*statisticNames*   \_In\_\
Tipo: char\*\*

Una colección de nombres de estadísticas que se van a buscar.

*statisticNamesCount*   \_In\_\
Tipo: size\_t

El número de nombres de estadísticas.

*async*   \_In\_\
Tipo: XAsyncBlock\*

El AsyncBlock para esta operación.

### Valor devuelto

Tipo: HRESULT

Código de retorno HRESULT para esta operación de API.

## Comentarios

Llame a [XblUserStatisticsGetMultipleUserStatisticsResultSize](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresultsize) y a [XblUserStatisticsGetMultipleUserStatisticsResult](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresult) al finalizar para obtener el resultado. Solo se devuelven las estadísticas con valores. Por ejemplo, si solicita 3 nombres de estadísticas y solo 2 tienen valores, el servicio solo devuelve 2 estadísticas.

Si usa [estadísticas basadas en eventos](/services/xbox-services/player-data/stats-leaderboards/event-based/live-stats-eb-overview), los nombres de las estadísticas coincidirán con la [instancia de estadística](/services/xbox-services/player-data/stats-leaderboards/event-based/live-stats-eb-overview#defining-stat-instances) de cada estadística. Si usa [estadísticas administradas por el título](/services/xbox-services/player-data/stats-leaderboards/title-managed/live-stats-tm-overview), los nombres de las estadísticas coincidirán con el identificador de cada estadística.

## Llamada REST

V1 POST /batch

## Requisitos

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

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

## Consulte también

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


## Related topics

- [XblUserStatisticsGetMultipleUserStatisticsResult](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresult.md)
- [XblUserStatisticsGetMultipleUserStatisticsResultSize](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresultsize.md)
- [Obtención de estadísticas basadas en eventos](/es/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-getting-eb-stat.md)
- [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsAsync](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsasync.md)
- [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsResult](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsresult.md)
