Set and retrieve global game stats and achievements using Steamworks Stats API

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

Steps

  1. Define achievement and stat schemas in the Steamworks partner portal for the app, specifying API names, display names, unlock descriptions, and stat types (integer or float)
  2. In the game client, call RequestCurrentStats for the user and wait for the UserStatsReceived callback before reading or writing any stats
  3. Use SetStat or SetAchievement (by API name string) to update values in the local cache after the stats have been received
  4. Call StoreStats to flush the locally cached changes to the Steam backend; without this call, changes are not persisted
  5. To retrieve global stats aggregated across all players, call RequestGlobalStats specifying the history days parameter, then read values after the GlobalStatsReceived callback
  6. Use ResetAllStats or ClearAchievement during development to reset state; ensure these calls are removed or gated before shipping

Known gotchas

Related routes

Implement global leaderboards using the Steamworks ISteamUserStats leaderboard API
gaming · 6 steps · unrated
Aggregate a Steam player's unlocked achievements against global unlock-rate percentages using the Steamworks Web API
partner.steamgames.com · 5 steps · unrated
Fetch player achievements and per-game stats for a Steam user
steamcommunity.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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