---
updatedAt: 2026-05-20T09:44:11.000Z
agentTools:
  projectIndex: https://developer.bitlabs.ai/llms.txt
---

# Get app leaderboard

Get Leaderboard returns the leaderboard of the app.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2.0.160",
    "title": "BitLabs Client API",
    "description": "BitLabs' public API to be integrated by our own products as well as publishers who desire maximum customization.\n",
    "contact": {
      "name": "BitLabs",
      "email": "contact@bitlabs.ai",
      "url": "https://bitlabs.ai"
    }
  },
  "servers": [
    {
      "url": "https://api.bitlabs.ai"
    }
  ],
  "security": [
    {
      "HeaderApiToken": [],
      "HeaderUserId": []
    },
    {
      "QueryApiToken": [],
      "QueryUserId": []
    },
    {
      "HeaderBearerToken": []
    }
  ],
  "tags": [
    {
      "name": "Internal - Not for publishers",
      "description": "Internal endpoints not to be used by publisher API integrations. Incorrect usage might lead to errors and bad\nuser experience.\n"
    }
  ],
  "paths": {
    "/v1/client/leaderboard": {
      "get": {
        "summary": "Get app leaderboard",
        "operationId": "getLeaderboard",
        "description": "Get Leaderboard returns the leaderboard of the app.\n",
        "tags": [
          "Internal - Not for publishers"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Leaderboard"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found if leaderboard is disabled"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "HeaderApiToken": {
        "type": "apiKey",
        "name": "X-Api-Token",
        "in": "header",
        "description": "ApiToken of your BitLabs app."
      },
      "HeaderUserId": {
        "type": "apiKey",
        "name": "X-User-Id",
        "in": "header",
        "description": "Unique identifier of the user you are sending to BitLabs. These are passed back to you in callbacks to allow\nyou to identify your users. If possible, use UUIDs, numerical IDs or ASCII strings to avoid formatting issues.\nDo NOT use JWT or other sensitive tokens to identify your users. We only support up to 65 character long ids.\n"
      },
      "QueryApiToken": {
        "type": "apiKey",
        "name": "token",
        "in": "query",
        "description": "ApiToken of your BitLabs app."
      },
      "QueryUserId": {
        "type": "apiKey",
        "name": "uid",
        "in": "query",
        "description": "Unique identifier of the user you are sending to BitLabs. These are passed back to you in callbacks to allow\nyou to identify your users. If possible, use UUIDs, numerical IDs or ASCII strings to avoid formatting issues.\nDo NOT use JWT or other sensitive tokens to identify your users. We only support up to 65 character long ids.\n"
      },
      "HeaderBearerToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Enter the token with the `Bearer ` prefix, e.g. \"Bearer abcde12345\".\n"
      }
    },
    "schemas": {
      "Leaderboard": {
        "type": "object",
        "required": [
          "rewards",
          "top_users"
        ],
        "properties": {
          "next_reset_at": {
            "type": "string",
            "format": "date-time",
            "example": "2022-01-01T12:00:00Z"
          },
          "rewards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LeaderboardReward"
            }
          },
          "top_users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LeaderboardUser"
            }
          },
          "own_user": {
            "$ref": "#/components/schemas/LeaderboardUser"
          }
        }
      },
      "LeaderboardReward": {
        "type": "object",
        "required": [
          "rank",
          "reward_raw",
          "reward_currency"
        ],
        "properties": {
          "rank": {
            "type": "integer"
          },
          "reward_raw": {
            "type": "number"
          },
          "reward_currency": {
            "type": "number"
          }
        }
      },
      "LeaderboardUser": {
        "type": "object",
        "required": [
          "rank",
          "name",
          "earnings_raw",
          "earnings_currency"
        ],
        "properties": {
          "rank": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "earnings_raw": {
            "type": "number"
          },
          "earnings_currency": {
            "type": "number"
          },
          "claimable_rewards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClaimableReward"
            }
          }
        }
      },
      "ClaimableReward": {
        "type": "object",
        "required": [
          "id",
          "date",
          "reward_amount"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "The id of the claimable reward.",
            "example": 65
          },
          "reward_type": {
            "type": "string",
            "enum": [
              "DAILY",
              "WEEKLY"
            ],
            "description": "The type of the claimable reward.",
            "example": "DAILY"
          },
          "date": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the reward was created at",
            "example": "2025-07-21T00:00:00.000Z"
          },
          "reward_amount": {
            "type": "number",
            "format": "float",
            "description": "The amount of currency the user is rewarded upon reward claim.",
            "example": 33.3
          }
        }
      }
    }
  }
}
```