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

# XblUserStatisticsGetSingleUserStatisticAsync

> XblUserStatisticsGetSingleUserStatisticAsync

# XblUserStatisticsGetSingleUserStatisticAsync

Obtiene una estadística especificada de un usuario especificado.

## Sintaxis

```cpp theme={null}
HRESULT XblUserStatisticsGetSingleUserStatisticAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t xboxUserId,  
         const char* serviceConfigurationId,  
         const char* statisticName,  
         XAsyncBlock* async  
)  
```

### Parámetros

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

Contexto de XBOX live del usuario local.

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

El identificador de usuario de XBOX del jugador del que se obtendrán las estadísticas.

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

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

El nombre de la estadística que se va a devolver.

*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 [XblUserStatisticsGetSingleUserStatisticResultSize](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticresultsize) y a [XblUserStatisticsGetSingleUserStatisticResult](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticresult) al finalizar para obtener el resultado.

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 GET /users/xuid({xuid})/scids/{scid}/stats/{statname1}

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

- [XblUserStatisticsGetSingleUserStatisticResult](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticresult.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)
- [XblUserStatisticsGetSingleUserStatisticsAsync](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticsasync.md)
- [XblUserStatisticsGetSingleUserStatisticsResult](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticsresult.md)
- [XblUserStatisticsGetSingleUserStatisticResultSize](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticresultsize.md)
