SteamSets
ApiAccount

Get Account

POST
/leaderboard.v1.LeaderboardService/GetAccountLeaderboard
/leaderboard.v1.LeaderboardService/GetAccountLeaderboard

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

appobjectnull

For a given app leaderboard, the app id

badgeobjectnull

For a given badge leaderboard, the steam badge id

endintegernull

The end index

Minimum: 0Format: "int32"

goToLeaderboardRankintegernull

The rank to go to

Minimum: 0Format: "int32"

leaderboard
Required
string

The leaderboard to get

Value in: "apps" | "limited_apps" | "app_playtime" | "awards_given" | "awards_received" | "bans" | "game_bans" | "vac_bans" | "donations" | "foil_badges" | "normal_badges" | "badges" | "playtime" | "points_given" | "points_received" | "steam_sets" | "xp" | "badge_completion_time" | "badge_highest_level"

locationarraynull

The location(s)to get the leaderboard for, otherwise global

startintegernull

The start index

Minimum: 0Format: "int32"
curl -X POST "https://api.steamsets.com/leaderboard.v1.LeaderboardService/GetAccountLeaderboard" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "app": {
      "appId": 730
    },
    "badge": {
      "id": 4,
      "isFoil": true
    },
    "end": 10,
    "goToLeaderboardRank": 1,
    "leaderboard": "xp",
    "location": [
      {
        "city": "Bad Krozingen",
        "country": "Germany",
        "region": "Europe",
        "state": "Baden-Wurttemberg"
      }
    ],
    "start": 1
  }'

OK

{
  "accounts": [
    {
      "appCost": 123456,
      "appPlaytime": 1000,
      "apps": 123456,
      "avatar": "f1a1d2c3d0c9d1e1f2f3f4f5f6f7f8f9",
      "averagePlaytime": 123456,
      "awardsGiven": 123456,
      "awardsReceived": 123456,
      "badgeInfo": {
        "completionTime": "2023-01-01T00:00:00Z",
        "level": 123456,
        "xp": 123456
      },
      "badges": 123456,
      "bans": 0,
      "city": {
        "id": 1,
        "name": "Bad Krozingen"
      },
      "country": {
        "code": "DE",
        "id": 1,
        "name": "Germany"
      },
      "createdAt": "2023-01-01T00:00:00Z",
      "economyBan": "steam",
      "foilBadgeCost": 123456,
      "foilBadges": 123456,
      "friends": 123456,
      "gameBans": 0,
      "level": 123456,
      "limitedApps": 123456,
      "name": "steamsets",
      "normalBadgeCost": 123456,
      "normalBadges": 123456,
      "playtime": 123456,
      "pointsGiven": 123456,
      "pointsReceived": 123456,
      "privacy": "public",
      "rank": 1,
      "region": {
        "id": 1,
        "name": "Europe"
      },
      "roles": [
        {
          "rating": 0,
          "role": "user"
        }
      ],
      "state": {
        "id": 1,
        "name": "Baden-Wurttemberg"
      },
      "steamId": "76561198842603734",
      "steamSetsScore": 0,
      "steamSetsVanity": "steamsets",
      "steamVanity": "steamsets",
      "vacBans": 0,
      "xp": 123456
    }
  ],
  "app": {
    "id": 730,
    "image": "https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/730/a1a2f9f3f4c0c2b1f8d3a4e5f6d7e8f9.jpg",
    "name": "Counter-Strike: Global Offensive",
    "type": "game"
  },
  "badgeInfo": {
    "appId": 730,
    "appImage": "https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/730/a1a2f9f3f4c0c2b1f8d3a4e5f6d7e8f9.jpg",
    "appName": "Counter-Strike: Global Offensive",
    "image": "https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/730/a1a2f9f3f4c0c2b1f8d3a4e5f6d7e8f9.jpg",
    "isFoil": true,
    "level": 15,
    "name": "Counter-Strike: Global Offensive"
  },
  "location": [
    {
      "cityName": "Bad Krozingen",
      "countryCode": "DE",
      "countryName": "Germany",
      "region": "Europe",
      "stateName": "Baden-Wurttemberg"
    }
  ],
  "ownAccount": {
    "appCost": 123456,
    "appPlaytime": 1000,
    "apps": 123456,
    "avatar": "f1a1d2c3d0c9d1e1f2f3f4f5f6f7f8f9",
    "averagePlaytime": 123456,
    "awardsGiven": 123456,
    "awardsReceived": 123456,
    "badgeInfo": {
      "completionTime": "2023-01-01T00:00:00Z",
      "level": 123456,
      "xp": 123456
    },
    "badges": 123456,
    "bans": 0,
    "city": {
      "id": 1,
      "name": "Bad Krozingen"
    },
    "country": {
      "code": "DE",
      "id": 1,
      "name": "Germany"
    },
    "createdAt": "2023-01-01T00:00:00Z",
    "economyBan": "steam",
    "foilBadgeCost": 123456,
    "foilBadges": 123456,
    "friends": 123456,
    "gameBans": 0,
    "level": 123456,
    "limitedApps": 123456,
    "name": "steamsets",
    "normalBadgeCost": 123456,
    "normalBadges": 123456,
    "playtime": 123456,
    "pointsGiven": 123456,
    "pointsReceived": 123456,
    "privacy": "public",
    "rank": 1,
    "region": {
      "id": 1,
      "name": "Europe"
    },
    "roles": [
      {
        "rating": 0,
        "role": "user"
      }
    ],
    "state": {
      "id": 1,
      "name": "Baden-Wurttemberg"
    },
    "steamId": "76561198842603734",
    "steamSetsScore": 0,
    "steamSetsVanity": "steamsets",
    "steamVanity": "steamsets",
    "vacBans": 0,
    "xp": 123456
  }
}