Get User Leaderboard Entry – Absinthe Docs
Skip to content

Get User Leaderboard Entry

Retrieve a specific user's leaderboard position and stats by their wallet address or identifier.

Conceptual Overview

Quick Start

Get User Data
curl -X GET "https://gql3.absinthe.network/api/rest/leaderboard/user/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" \
  -H "Authorization: Bearer <YOUR_API_KEY>"

The user leaderboard API provides:

  1. User's Current Rank: Both points-only and referral-inclusive rankings
  2. Multi-Currency Scores: Separate scores for Gold, XP, and Gems (events + referrals)
  3. Identity Information: All linked wallet addresses and social accounts
  4. Real-time Data: Current standings updated every hour

Use Cases

  • User Profile Pages: Show individual user's current ranking
  • Progress Tracking: Let users check their own performance
  • Competitive Features: Compare specific users
  • User Dashboards: Display personalized leaderboard stats

API Details

  • Endpoint: https://gql3.absinthe.network/api/rest/leaderboard/user/{address}
  • Method: GET
  • Auth: Authorization header (API key generated per campaign)
  • Response: JSON object with user's leaderboard entry

Authorization

Header
Authorization: Bearer \<YOUR_API_KEY>

Fetching User Data

curl
curl -X GET "https://gql3.absinthe.network/api/rest/leaderboard/user/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" \
  -H "Authorization: Bearer \<YOUR_API_KEY>"

Address Format Examples

EVM Address
curl -X GET "https://gql3.absinthe.network/api/rest/leaderboard/user/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" \
  -H "Authorization: Bearer \<YOUR_API_KEY>"

Response Format

Successful Response (User Found)

Complete Response
{
  "data": {
    "mart_leaderboard_secret_v2": [
      {
        "points_rank": 6,
        "rank_with_referral": 6,
        "gold_score": 0,
        "gold_referral_score": 0,
        "xp_score": 184079.69876499794,
        "xp_referral_score": 0,
        "gems_score": 0,
        "gems_referral_score": 0,
        "evm_address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        "discord_username": null,
        "twitter_username": null,
        "sol_address": "CgyDPEokAFugPQqj4zA5bN49QMeidtVRMA52YPr4t8Dp"
      }
    ]
  }
}

User Not Found

No Results
{
  "data": {
    "mart_leaderboard_secret_v2": []
  }
}

Path Parameters

ParameterTypeRequiredDescription
addressstringYesUser's wallet address (EVM or Solana format) in the URL path

Response Fields

FieldTypeDescription
points_rankintegerUser's rank based purely on points (1 = first place)
rank_with_referralintegerUser's rank including referral bonuses
gold_scorenumberUser's accumulated Gold points from events
gold_referral_scorenumberAdditional Gold points from referral activities
xp_scorenumberUser's accumulated XP points from events
xp_referral_scorenumberAdditional XP points from referral activities
gems_scorenumberUser's accumulated Gems from events
gems_referral_scorenumberAdditional Gems from referral activities
evm_addressstring|nullUser's Ethereum/EVM wallet address
discord_usernamestring|nullUser's Discord username
twitter_usernamestring|nullUser's Twitter/X username
sol_addressstring|nullUser's Solana wallet address

Error Handling

All requests return 200 OK. Check the top-level errors[] array for failures:

Missing Address Parameter
{
  "data": null,
  "errors": [
    {
      "message": "address path parameter is required",
      "extensions": { "code": "validation-failed" }
    }
  ]
}
Authentication Error
{
  "data": null,
  "errors": [
    {
      "message": "invalid or expired API key",
      "extensions": { "code": "unauthorized" }
    }
  ]
}

FAQ

How often is user data updated?

What happens if I search for a non-existent address?

Can I search by Discord or Twitter username?

What's the difference between points_rank and rank_with_referral?

What are the different score types (Gold, XP, Gems)?

Does the API support partial address matching?

Can one user have both EVM and Solana addresses?