Get app leaderboard

GET /v1/client/leaderboard

Get Leaderboard returns the leaderboard of the app.

Responses

GET /v1/client/leaderboard
curl \
 --request GET 'https://api.bitlabs.ai/v1/client/leaderboard' \
 --header "X-Api-Token: $API_KEY" \
 --header "X-User-Id: $API_KEY"
Response examples (200)
{
  "data": {
    "next_reset_at": "2022-01-01T12:00:00Z",
    "rewards": [
      {
        "rank": 42,
        "reward_raw": 42.0,
        "reward_currency": 42.0
      }
    ],
    "top_users": [
      {
        "rank": 42,
        "name": "string",
        "earnings_raw": 42.0,
        "earnings_currency": 42.0
      }
    ],
    "own_user": {
      "rank": 42,
      "name": "string",
      "earnings_raw": 42.0,
      "earnings_currency": 42.0
    }
  }
}