Implement global leaderboards using the Steamworks ISteamUserStats leaderboard API

domain: gaming · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call FindOrCreateLeaderboard with a name, ELeaderboardSortMethod (Ascending/Descending), and ELeaderboardDisplayType (Numeric/Seconds/Milliseconds); wait on the LeaderboardFindResult_t call result to get the leaderboard handle
  2. Submit scores with UploadLeaderboardScore using either k_ELeaderboardUploadScoreMethodKeepBest or k_ELeaderboardUploadScoreMethodForceUpdate, optionally attaching up to 64 int32 values of unsorted associated data
  3. Wait on the LeaderboardScoreUploaded_t call result to confirm the upload and read back whether the score changed rank
  4. Call DownloadLeaderboardEntries (global, around-user, or friends range) and wait on LeaderboardScoresDownloaded_t, then GetDownloadedLeaderboardEntry to read each entry
  5. Set a Community Name for the leaderboard in Steamworks if you want it to appear on the game's Community Hub page
  6. For anti-cheat, route score submission through a trusted backend using the Steamworks Web API SetLeaderboardScore instead of trusting client uploads

Known gotchas

Related routes

Set and retrieve global game stats and achievements using Steamworks Stats API
partner.steamgames.com · 6 steps · unrated
Read and write Steam leaderboard entries from a game backend using the ISteamLeaderboards Web API instead of the client SDK
partner.steamgames.com · 5 steps · unrated
Verify Steam game ownership and query play time on a backend using ISteamUser web API
steamworks · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans