Get Leaderboard Entries
steam_getLeaderboardEntriesRetrieves Steam leaderboard scores and rankings for an app using a numeric ID or leaderboard name, supporting global, around-user, and friends-only views to compare player standings.
Instructions
Get leaderboard scores and rankings for a Steam app. Pass the numeric leaderboardid or the leaderboard_name (resolved through GetLeaderboardsForGame; the output then includes resolved_from). Uses the partner API (partner.steam-api.com) which requires a publisher API key with server IP allowlisted in Steamworks. Supports global, around-user, and friends-only views.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"appid": "<appid>"
},
"name": "steam_getLeaderboardEntries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appid | Yes | Steam application ID | |
| steamid | No | Steam ID required for AroundUser (1) and Friends (2) requests | |
| rangeend | No | End of the range, inclusive. Global and Friends: a rank index (default: 100). Around user: an offset from the user (default: 10). At most 500 entries per call; page with rangestart/rangeend. | |
| rangestart | No | Start of the range. Global (0) and Friends (2): a rank index, 0 or more (default: 0). Around user (1): an offset from the user, negative for players above them (default: -10). | |
| datarequest | No | Request type: 0 = Global, 1 = Around user, 2 = Friends (default: 0) | |
| include_names | No | Add each player's persona name (personaname) to the entries, looked up with ISteamUser/GetPlayerSummaries in batches of 100 (default: false) | |
| leaderboardid | No | Numeric leaderboard ID (Steamworks dashboard > Leaderboards, or steam_getLeaderboardsForGame). Pass this or leaderboard_name. | |
| leaderboard_name | No | Leaderboard name (API name or display name) as listed by steam_getLeaderboardsForGame. Use instead of leaderboardid; it is resolved to the numeric ID. |