steam_getLeaderboardEntries
Retrieve leaderboard scores and rankings for any Steam application using numeric leaderboard ID. Supports global, around-user, and friends-only views.
Instructions
Get leaderboard scores and rankings for a Steam app. Pass the numeric leaderboard ID from your Steamworks dashboard, not the name. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appid | Yes | Steam application ID | |
| leaderboardid | Yes | Numeric leaderboard ID from your Steamworks dashboard (Settings > Leaderboards). This is NOT the leaderboard name - use the numeric ID. | |
| rangestart | No | Start index for entries (default: 0) | |
| rangeend | No | End index for entries (default: 100) | |
| datarequest | No | Request type: 0 = Global, 1 = Around user, 2 = Friends (default: 0) | |
| steamid | No | Steam ID required for AroundUser (1) and Friends (2) requests |