Google Play Developer Game Stats API

The GameStats API from Google Play Developer — 1 operation(s) for gamestats.

GitHub OpenAPI

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /games/v1/players/{playerId}/gameStats:batchRecordEvents Record a batch of player game events · Batch record events gameStats #
Ask an LLM
“How do I send several player events in one request?”
“Can I record up to 30 events for a player at once?”
Tell an agent
Record events {events} for player {playerId} in package {packageName}.
Submit a batch of player events for {playerId} at {requestTime}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-play:google-play-gamestats-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-play-gamestats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play Games Services Game Stats API
  version: v1
  description: Generated from Google's published Discovery document for Google Play Games Services API (games v1, revision 20261106). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://games.googleapis.com
tags:
- name: GameStats
paths:
  /games/v1/players/{playerId}/gameStats:batchRecordEvents:
    post:
      operationId: games.gameStats.batchRecordEvents
      summary: Batch record events gameStats
      description: Records a batch of player game events for a specific player. This method allows sending multiple events in a single request.
      parameters:
      - name: playerId
        in: path
        required: true
        description: Required. The player ID of the player that performed the events.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchRecordEventsRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchRecordEventsResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/games
      - apiKey: []
      tags:
      - GameStats
components:
  schemas:
    Status:
      type: object
      description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
      properties:
        message:
          type: string
          description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
        details:
          items:
            additionalProperties:
              description: Properties of the object. Contains field @type with type URL.
            type: object
          description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
          type: array
        code:
          type: integer
          format: int32
          description: The status code, which should be an enum value of google.rpc.Code.
    PlayerGameEvent:
      type: object
      description: A representation of a single player game event triggered by a player's event in a game. This might be completing a level, unlocking an item, or finishing a match.
      properties:
        eventName:
          description: 'Required. Client-defined name of the event (e.g., "run_completed", "level_up"). Maximum length: 100 characters.'
          type: string
        eventTime:
          format: google-datetime
          type: string
          description: Required. The time from the client when this specific event was performed.
        eventProperties:
          description: 'Optional. Key-value properties providing details about the event. - Maximum number of properties: 25. - Property key maximum length: 100 characters. - String values within PropertyValue maximum length: 1024 characters.'
          additionalProperties:
            $ref: '#/components/schemas/PropertyValue'
          type: object
        eventId:
          type: string
          description: Required. A unique client-generated UUID for this specific event instance. Used for server-side idempotency and deduplication. Submitting an event with a previously recorded event_id for the same player will be ignored.
    PropertyValue:
      description: Wrapper for the value.
      properties:
        durationValue:
          type: string
          format: google-duration
          description: A duration value.
        intValue:
          description: An integer value.
          type: string
          format: int64
        boolValue:
          type: boolean
          description: A boolean value.
        doubleValue:
          format: double
          type: number
          description: A double value.
        stringValue:
          description: A string value.
          type: string
      type: object
    BatchRecordEventsResponse:
      description: A successful response indicates that the batch of events has been processed.
      type: object
      properties:
        failedRequests:
          additionalProperties:
            $ref: '#/components/schemas/Status'
          type: object
          description: Map of failed events, keyed by their zero-based index in `BatchRecordEventsRequest.events`. Omitted keys indicate successful recording.
    BatchRecordEventsRequest:
      properties:
        integrityVerdicts:
          items:
            $ref: '#/components/schemas/DeveloperIntegrityVerdict'
          description: Optional. Developer-provided fraud or integrity verdicts passed as a request parameter. Maximum of 10 integrity verdicts per batch request.
          type: array
        packageName:
          type: string
          description: Required. Application package name (e.g., "com.example.game").
        requestTime:
          description: Required. The time from the client when this specific batch of events was submitted.
          type: string
          format: google-datetime
        salt:
          type: string
          description: Optional. The salt used to generate content binding for the DroidGuard blob. This is used to prevent replay attacks.
        droidGuardBlob:
          description: Optional. The DroidGuard blob generated by the client. This is used to detect abuse signals from the devices
          type: string
        events:
          description: Required. A list of player game events to be recorded. Maximum of 30 events per batch request.
          type: array
          items:
            $ref: '#/components/schemas/PlayerGameEvent'
      description: 'Request message for PlayerGameEvents.BatchRecordEvents Next ID: 8'
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    DeveloperIntegrityVerdict:
      description: Represents a developer-provided fraud or integrity verdict.
      type: object
      properties:
        description:
          type: string
          description: 'Optional. Free-form diagnostic description or internal error code. Maximum length: 128 characters. Stored for console debugging; never shown to players.'
        source:
          description: Required. The source that issued the verdict.
          enum:
          - SOURCE_UNSPECIFIED
          - DEVELOPER_INTERNAL
          - PLAY_INTEGRITY
          type: string
        category:
          description: Required. The standardized verdict category.
          type: string
          enum:
          - CATEGORY_UNSPECIFIED
          - DEVICE_UNTRUSTED
          - APP_UNRECOGNIZED
          - ACCOUNT_UNLICENSED
          - ENVIRONMENT_RISK
          - IMPOSSIBLE_GAMEPLAY
          - OTHER
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/games: Create, edit, and delete your Google Play Games activity
            https://www.googleapis.com/auth/androidpublisher: View and manage your Google Play Developer account
            https://www.googleapis.com/auth/drive.appdata: See, create, and delete its own configuration data in your Google Drive
externalDocs:
  url: https://developers.google.com/games/
x-provenance:
  method: harvested
  publisher: Google
  source: https://games.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)