Google Play Developer Scores API

The Scores API from Google Play Developer — 5 operation(s) for scores.

GitHub OpenAPI

Operations 5

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

GET /games/v1/leaderboards/{leaderboardId}/window/{collection} List scores around a player's score · List window scores #
Ask an LLM
“How do I see the scores on a leaderboard around my own?”
“Can I get a window of scores above and below my rank?”
Tell an agent
List scores in leaderboard {leaderboardId} for {collection} around my score.
Show the {collection} leaderboard window for {leaderboardId} in {timeSpan}.
POST /games/v1/leaderboards/{leaderboardId}/scores Submit a single score to a leaderboard · Submit scores #
Ask an LLM
“How do I post my score to a leaderboard?”
“Will a worse score overwrite a previous one?”
Tell an agent
Submit score {score} to leaderboard {leaderboardId}.
Record a score of {score} on {leaderboardId} with tag {scoreTag}.
POST /games/v1/leaderboards/scores Submit several scores to leaderboards · Submit multiple scores #
Ask an LLM
“Can I submit scores for multiple leaderboards in one request?”
“What does the request body need for a batch score submission?”
Tell an agent
Submit these scores to their leaderboards: {scores}.
Batch-submit scores {scores} for the current player.
GET /games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan} Get a player's leaderboard scores · Get scores #
Ask an LLM
“Where does my score rank on a leaderboard?”
“Can I see my rank on a leaderboard for a specific time span?”
Tell an agent
Get my leaderboard scores for leaderboard {leaderboardId} in time span {timeSpan}.
Show {playerId}'s rank on leaderboard {leaderboardId} for the {timeSpan} span.
GET /games/v1/leaderboards/{leaderboardId}/scores/{collection} List a leaderboard's top scores · List scores #
Ask an LLM
“How do I get the top scores on a leaderboard?”
“Can I list the leaderboard's scores for a time span?”
Tell an agent
List the top scores of leaderboard {leaderboardId} for {collection} in {timeSpan}.
Show the {collection} leaderboard {leaderboardId} for {timeSpan}.

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-scores-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-scores-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play Games Services Scores API
  version: v1
  description: Generated from Google's published Discovery document for Google Play Games Services API (games v1, revision 20261106). 5 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://games.googleapis.com
tags:
- name: Scores
paths:
  /games/v1/leaderboards/{leaderboardId}/window/{collection}:
    get:
      operationId: games.scores.listWindow
      summary: List window scores
      description: Lists the scores in a leaderboard around (and including) a player's score.
      parameters:
      - name: leaderboardId
        in: path
        required: true
        description: The ID of the leaderboard.
        schema:
          type: string
      - name: collection
        in: path
        required: true
        description: The collection of scores you're requesting.
        schema:
          type: string
          enum:
          - PUBLIC
          - SOCIAL
          - FRIENDS
      - name: language
        in: query
        required: false
        description: The preferred language to use for strings returned by this method.
        schema:
          type: string
      - name: maxResults
        in: query
        required: false
        description: The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified `maxResults`.
        schema:
          type: integer
          format: int32
      - name: pageToken
        in: query
        required: false
        description: The token returned by the previous request.
        schema:
          type: string
      - name: resultsAbove
        in: query
        required: false
        description: The preferred number of scores to return above the player's score. More scores may be returned if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the top. Must be less than or equal to maxResults.
        schema:
          type: integer
          format: int32
      - name: returnTopIfAbsent
        in: query
        required: false
        description: True if the top scores should be returned when the player is not in the leaderboard. Defaults to true.
        schema:
          type: boolean
      - name: timeSpan
        in: query
        required: true
        description: Required. The time span for the scores and ranks you're requesting.
        schema:
          type: string
          enum:
          - ALL_TIME
          - WEEKLY
          - DAILY
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeaderboardScores'
        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:
      - Scores
  /games/v1/leaderboards/{leaderboardId}/scores:
    post:
      operationId: games.scores.submit
      summary: Submit scores
      description: Submits a score to the specified leaderboard.
      parameters:
      - name: leaderboardId
        in: path
        required: true
        description: The ID of the leaderboard.
        schema:
          type: string
      - name: language
        in: query
        required: false
        description: The preferred language to use for strings returned by this method.
        schema:
          type: string
      - name: score
        in: query
        required: true
        description: Required. The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units.
        schema:
          type: string
          format: int64
      - name: scoreTag
        in: query
        required: false
        description: Additional information about the score you're submitting. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
        schema:
          pattern: '[a-zA-Z0-9-._~]{0,64}'
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlayerScoreResponse'
        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:
      - Scores
  /games/v1/leaderboards/scores:
    post:
      operationId: games.scores.submitMultiple
      summary: Submit multiple scores
      description: Submits multiple scores to leaderboards.
      parameters:
      - name: language
        in: query
        required: false
        description: The preferred language to use for strings returned by this method.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlayerScoreSubmissionList'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlayerScoreListResponse'
        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:
      - Scores
  /games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}:
    get:
      operationId: games.scores.get
      summary: Get scores
      description: 'Get high scores, and optionally ranks, in leaderboards for the currently authenticated player. For a specific time span, `leaderboardId` can be set to `ALL` to retrieve data for all leaderboards in a given time span. `NOTE: You cannot ask for ''ALL'' leaderboards and ''ALL'' timeSpans in the same request; only one parameter may be set to ''ALL''.'
      parameters:
      - name: playerId
        in: path
        required: true
        description: A player ID. A value of `me` may be used in place of the authenticated player's ID.
        schema:
          type: string
      - name: leaderboardId
        in: path
        required: true
        description: The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application.
        schema:
          type: string
      - name: timeSpan
        in: path
        required: true
        description: The time span for the scores and ranks you're requesting.
        schema:
          type: string
          enum:
          - ALL
          - ALL_TIME
          - WEEKLY
          - DAILY
      - name: includeRankType
        in: query
        required: false
        description: The types of ranks to return. If the parameter is omitted, no ranks will be returned.
        schema:
          type: string
          enum:
          - ALL
          - PUBLIC
          - SOCIAL
          - FRIENDS
      - name: language
        in: query
        required: false
        description: The preferred language to use for strings returned by this method.
        schema:
          type: string
      - name: maxResults
        in: query
        required: false
        description: The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified `maxResults`.
        schema:
          format: int32
          type: integer
      - name: pageToken
        in: query
        required: false
        description: The token returned by the previous request.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlayerLeaderboardScoreListResponse'
        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:
      - Scores
  /games/v1/leaderboards/{leaderboardId}/scores/{collection}:
    get:
      operationId: games.scores.list
      summary: List scores
      description: Lists the scores in a leaderboard, starting from the top.
      parameters:
      - name: leaderboardId
        in: path
        required: true
        description: The ID of the leaderboard.
        schema:
          type: string
      - name: collection
        in: path
        required: true
        description: The collection of scores you're requesting.
        schema:
          enum:
          - PUBLIC
          - SOCIAL
          - FRIENDS
          type: string
      - name: language
        in: query
        required: false
        description: The preferred language to use for strings returned by this method.
        schema:
          type: string
      - name: maxResults
        in: query
        required: false
        description: The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified `maxResults`.
        schema:
          type: integer
          format: int32
      - name: pageToken
        in: query
        required: false
        description: The token returned by the previous request.
        schema:
          type: string
      - name: timeSpan
        in: query
        required: true
        description: Required. The time span for the scores and ranks you're requesting.
        schema:
          type: string
          enum:
          - ALL_TIME
          - WEEKLY
          - DAILY
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeaderboardScores'
        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:
      - Scores
components:
  schemas:
    PlayerLeaderboardScoreListResponse:
      description: A list of player leaderboard scores.
      properties:
        player:
          $ref: '#/components/schemas/Player'
          description: The Player resources for the owner of this score.
        items:
          items:
            $ref: '#/components/schemas/PlayerLeaderboardScore'
          type: array
          description: The leaderboard scores.
        nextPageToken:
          type: string
          description: The pagination token for the next page of results.
        kind:
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#playerLeaderboardScoreListResponse`.
          type: string
      type: object
    PlayerScoreListResponse:
      description: A list of score submission statuses.
      properties:
        submittedScores:
          description: The score submissions statuses.
          items:
            $ref: '#/components/schemas/PlayerScoreResponse'
          type: array
        kind:
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#playerScoreListResponse`.
          type: string
      type: object
    PlayerExperienceInfo:
      properties:
        nextLevel:
          $ref: '#/components/schemas/PlayerLevel'
          description: The next level of the player. If the current level is the maximum level, this should be same as the current level.
        currentExperiencePoints:
          type: string
          format: int64
          description: The current number of experience points for the player.
        kind:
          type: string
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#playerExperienceInfo`.
        lastLevelUpTimestampMillis:
          description: The timestamp when the player was leveled up, in millis since Unix epoch UTC.
          type: string
          format: int64
        currentLevel:
          $ref: '#/components/schemas/PlayerLevel'
          description: The current level of the player.
      description: 1P/3P metadata about the player's experience.
      type: object
    PlayerLeaderboardScore:
      properties:
        scoreValue:
          format: int64
          description: The numerical value of this score.
          type: string
        leaderboard_id:
          description: The ID of the leaderboard this score is in.
          type: string
        kind:
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#playerLeaderboardScore`.
          type: string
        friendsRank:
          $ref: '#/components/schemas/LeaderboardScoreRank'
          description: The rank of the score in the friends collection for this leaderboard.
        writeTimestamp:
          type: string
          format: int64
          description: The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
        scoreTag:
          description: Additional information about the score. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
          type: string
        publicRank:
          $ref: '#/components/schemas/LeaderboardScoreRank'
          description: The public rank of the score in this leaderboard. This object will not be present if the user is not sharing their scores publicly.
        scoreString:
          type: string
          description: The formatted value of this score.
        socialRank:
          $ref: '#/components/schemas/LeaderboardScoreRank'
          description: The social rank of the score in this leaderboard.
        timeSpan:
          type: string
          description: The time span of this score.
          enum:
          - ALL_TIME
          - WEEKLY
          - DAILY
      type: object
      description: A player leaderboard score object.
    PlayerScore:
      type: object
      description: A player score.
      properties:
        score:
          format: int64
          type: string
          description: The numerical value for this player score.
        timeSpan:
          type: string
          description: The time span for this player score.
          enum:
          - ALL_TIME
          - WEEKLY
          - DAILY
        kind:
          type: string
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#playerScore`.
        formattedScore:
          type: string
          description: The formatted score for this player score.
        scoreTag:
          description: Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
          type: string
    LeaderboardScores:
      type: object
      description: A ListScores response.
      properties:
        items:
          description: The scores in the leaderboard.
          type: array
          items:
            $ref: '#/components/schemas/LeaderboardEntry'
        playerScore:
          $ref: '#/components/schemas/LeaderboardEntry'
          description: The score of the requesting player on the leaderboard. The player's score may appear both here and in the list of scores above. If you are viewing a public leaderboard and the player is not sharing their gameplay information publicly, the `scoreRank`and `formattedScoreRank` values will not be present.
        nextPageToken:
          description: The pagination token for the next page of results.
          type: string
        kind:
          type: string
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboardScores`.
        numScores:
          description: The total number of scores in the leaderboard.
          type: string
          format: int64
        prevPageToken:
          type: string
          description: The pagination token for the previous page of results.
    Player:
      type: object
      description: A Player resource.
      properties:
        title:
          type: string
          description: The player's title rewarded for their game activities.
        friendStatus:
          enum:
          - NO_RELATIONSHIP
          - FRIEND
          description: The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
          type: string
        kind:
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#player`
          type: string
        originalPlayerId:
          description: The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
          type: string
        bannerUrlLandscape:
          description: The url to the landscape mode player banner image.
          type: string
        profileSettings:
          $ref: '#/components/schemas/ProfileSettings'
          description: The player's profile settings. Controls whether or not the player's profile is visible to other players.
        playerId:
          description: The ID of the player.
          type: string
        name:
          properties:
            familyName:
              type: string
              description: The family name of this player. In some places, this is known as the last name.
            givenName:
              type: string
              description: The given name of this player. In some places, this is known as the first name.
          description: A representation of the individual components of the name.
          type: object
        experienceInfo:
          $ref: '#/components/schemas/PlayerExperienceInfo'
          description: An object to represent Play Game experience information for the player.
        avatarImageUrl:
          description: The base URL for the image that represents the player.
          type: string
        bannerUrlPortrait:
          type: string
          description: The url to the portrait mode player banner image.
        displayName:
          type: string
          description: The name to display for the player.
        gamePlayerId:
          type: string
          description: Per-application unique player identifier.
    LeaderboardScoreRank:
      properties:
        kind:
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboardScoreRank`.
          type: string
        formattedRank:
          type: string
          description: The rank in the leaderboard as a string.
        rank:
          type: string
          format: int64
          description: The rank in the leaderboard.
        formattedNumScores:
          description: The number of scores in the leaderboard as a string.
          type: string
        numScores:
          format: int64
          type: string
          description: The number of scores in the leaderboard.
      type: object
      description: A score rank in a leaderboard.
    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
    ScoreSubmission:
      description: A request to submit a score to leaderboards.
      type: object
      properties:
        leaderboardId:
          type: string
          description: The leaderboard this score is being submitted to.
        signature:
          type: string
          description: Signature Values will contain URI-safe characters as defined by section 2.3 of RFC 3986.
        score:
          type: string
          description: The new score being submitted.
          format: int64
        kind:
          type: string
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#scoreSubmission`.
        scoreTag:
          description: Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
          type: string
    PlayerScoreResponse:
      type: object
      description: A list of leaderboard entry resources.
      properties:
        leaderboardId:
          type: string
          description: The leaderboard ID that this score was submitted to.
        unbeatenScores:
          description: The scores in time spans that have not been beaten. As an example, the submitted score may be better than the player's `DAILY` score, but not better than the player's scores for the `WEEKLY` or `ALL_TIME` time spans.
          items:
            $ref: '#/components/schemas/PlayerScore'
          type: array
        kind:
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#playerScoreResponse`.
          type: string
        formattedScore:
          description: The formatted value of the submitted score.
          type: string
        beatenScoreTimeSpans:
          items:
            type: string
            enum:
            - ALL_TIME
            - WEEKLY
            - DAILY
          type: array
          description: The time spans where the submitted score is better than the existing score for that time span.
        scoreTag:
          type: string
          description: Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
    LeaderboardEntry:
      description: The Leaderboard Entry resource.
      type: object
      properties:
        formattedScoreRank:
          type: string
          description: The localized string for the rank of this score for this leaderboard.
        scoreValue:
          format: int64
          type: string
          description: The numerical value of this score.
        scoreRank:
          type: string
          description: The rank of this score for this leaderboard.
          format: int64
        scoreTag:
          type: string
          description: Additional information about the score. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
        kind:
          type: string
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboardEntry`.
        player:
          $ref: '#/components/schemas/Player'
          description: The player who holds this score.
        formattedScore:
          type: string
          description: The localized string for the numerical value of this score.
        timeSpan:
          enum:
          - ALL_TIME
          - WEEKLY
          - DAILY
          description: The time span of this high score.
          type: string
        writeTimestampMillis:
          format: int64
          type: string
          description: The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
    PlayerLevel:
      properties:
        kind:
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#playerLevel`.
          type: string
        minExperiencePoints:
          format: int64
          type: string
          description: The minimum experience points for this level.
        maxExperiencePoints:
          format: int64
          type: string
          description: The maximum experience points for this level.
        level:
          type: integer
          format: int32
          description: The level for the user.
      type: object
      description: 1P/3P metadata about a user's level.
    PlayerScoreSubmissionList:
      type: object
      description: A list of score submission requests.
      properties:
        scores:
          items:
            $ref: '#/components/schemas/ScoreSubmission'
          type: array
          description: The score submissions.
        kind:
          type: string
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#playerScoreSubmissionList`.
    ProfileSettings:
      description: Profile settings
      properties:
        profileVisible:
          type: boolean
          description: Whether the player's profile is visible to the currently signed in player.
        kind:
          type: string
          description: Uniquely identifies the type of this resource. Value is always the fixed string `games#profileSettings`.
        friendsListVisibility:
          enum:
          - VISIBLE
          - REQUEST_REQUIRED
          - UNAVAILABLE
          type: string
      type: object
  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)