forked from syntaxerrors/Steam
-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints User Stats
TeemoCell edited this page Jul 20, 2026
·
2 revisions
User-specific methods require a Steam ID:
$stats = $steam->userStats($steamId);| Method | Description |
|---|---|
GetPlayerAchievements(int $appId) |
Returns achievements through the official Web API. |
GetGlobalAchievementPercentagesForApp(int $appId) |
Returns global achievement percentages. |
GetUserStatsForGame(int $appId, bool $all = false) |
Returns achievements or the complete game-stat response. |
GetSchemaForGame(int $appId) |
Returns the game's stat and achievement schema. |
GetNumberOfCurrentPlayers(int $appId) |
Returns the current player count; no Steam ID required. |
$achievements = $steam
->userStats($steamId)
->GetPlayerAchievements(620);$count = $steam->userStats()->GetNumberOfCurrentPlayers(620);$response = $steam
->userStats($steamId)
->GetUserStatsForGame(appId: 620, all: true);The Community XML achievement method and the old API alias are documented under Legacy and deprecated methods.
Documentation for teemocell/steam-web-api · Licensed under the MIT License