Method: stats.get
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Retorna estatísticas de engajamento e gastos no aplicativo para o usuário autenticado.
Solicitação HTTP
GET https://games.googleapis.com/games/v1/stats
Corpo da solicitação
O corpo da solicitação precisa estar vazio.
Corpo da resposta
Um recurso de estatísticas de terceiros.
Se bem-sucedido, o corpo da resposta incluirá dados com a estrutura a seguir:
Representação JSON |
{
"churn_probability": number,
"num_purchases": integer,
"spend_percentile": number,
"days_since_last_played": integer,
"num_sessions": integer,
"num_sessions_percentile": number,
"avg_session_length_minutes": number,
"spend_probability": number,
"high_spender_probability": number,
"total_spend_next_28_days": number,
"kind": string
} |
Campos |
churn_probability |
number
A probabilidade de o jogador não voltar a jogar no dia seguinte. Por exemplo: 0, 0,1, 0,5, ..., 1,0. Não é preenchido se não houver informações suficientes.
|
num_purchases |
integer
É o número de compras no app feitas pelo jogador neste jogo. Por exemplo: 0, 1, 5, 10, ... . Não é preenchido se não houver informações suficientes.
|
spend_percentile |
number
O percentil de gastos aproximado do jogador neste jogo. Por exemplo: 0, 0,25, 0,5, 0,75. Não é preenchido se não houver informações suficientes.
|
days_since_last_played |
integer
Número de dias desde a última vez que o usuário jogou. Por exemplo: 0, 1, 5, 10, ... . Não é preenchido se não houver informações suficientes.
|
num_sessions |
integer
O número aproximado de sessões do jogador nos últimos 28 dias, em que uma sessão começa quando o jogador está conectado aos Serviços relacionados a jogos e termina quando ele se desconecta. Por exemplo: 0, 1, 5, 10, ... . Não é preenchido se não houver informações suficientes.
|
num_sessions_percentile |
number
A aproximação da porcentagem de sessões do jogador nos últimos 30 dias, em que uma sessão começa quando o jogador está conectado aos Serviços do Google Play Games e termina quando ele se desconecta. Por exemplo: 0, 0,25, 0,5, 0,75. Não é preenchido se não houver informações suficientes.
|
avg_session_length_minutes |
number
Duração média da sessão em minutos do jogador. Por exemplo: 1, 30, 60, ... . Não é preenchido se não houver informações suficientes.
|
spend_probability |
number
A probabilidade de o jogador gastar no jogo nos próximos sete dias. Por exemplo: 0, 0,25, 0,50, 0,75. Não é preenchido se não houver informações suficientes.
|
high_spender_probability |
number
A probabilidade de o jogador gastar além de um valor mínimo. Por exemplo: 0, 0,25, 0,50, 0,75. Não é preenchido se não houver informações suficientes.
|
total_spend_next_28_days |
number
O valor previsto que o jogador vai gastar nos próximos 28 dias. Por exemplo: 1, 30, 60, ... . Não é preenchido se não houver informações suficientes.
|
kind |
string
Identifica exclusivamente o tipo desse recurso. O valor é sempre a string fixa games#statsResponse .
|
Escopos de autorização
Requer um dos seguintes escopos do OAuth:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
Para mais informações, consulte a Visão geral do OAuth 2.0.
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[null,null,["Última atualização 2025-07-27 UTC."],[],[],null,["# Method: stats.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.PlayerStats.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns engagement and spend statistics in this application for the currently authenticated user.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/stats`\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA third party stats resource.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"churn_probability\": number, \"num_purchases\": integer, \"spend_percentile\": number, \"days_since_last_played\": integer, \"num_sessions\": integer, \"num_sessions_percentile\": number, \"avg_session_length_minutes\": number, \"spend_probability\": number, \"high_spender_probability\": number, \"total_spend_next_28_days\": number, \"kind\": string } ``` |\n\n| Fields ||\n|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `churn_probability` | `number` The probability of the player not returning to play the game in the next day. E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough information. |\n| `num_purchases` | `integer` Number of in-app purchases made by the player in this game. E.g., 0, 1, 5, 10, ... . Not populated if there is not enough information. |\n| `spend_percentile` | `number` The approximate spend percentile of the player in this game. E.g., 0, 0.25, 0.5, 0.75. Not populated if there is not enough information. |\n| `days_since_last_played` | `integer` Number of days since the player last played this game. E.g., 0, 1, 5, 10, ... . Not populated if there is not enough information. |\n| `num_sessions` | `integer` The approximate number of sessions of the player within the last 28 days, where a session begins when the player is connected to Play Games Services and ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated if there is not enough information. |\n| `num_sessions_percentile` | `number` The approximation of the sessions percentile of the player within the last 30 days, where a session begins when the player is connected to Play Games Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not populated if there is not enough information. |\n| `avg_session_length_minutes` | `number` Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not populated if there is not enough information. |\n| `spend_probability` | `number` The probability of the player going to spend the game in the next seven days. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough information. |\n| `high_spender_probability` | `number` The probability of the player going to spend beyond a threshold amount of money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough information. |\n| `total_spend_next_28_days` | `number` The predicted amount of money that the player going to spend in the next 28 days. E.g., 1, 30, 60, ... . Not populated if there is not enough information. |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#statsResponse`. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/games`\n- `\n https://www.googleapis.com/auth/games_lite`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]