Skip to content

Endpoints User Stats

TeemoCell edited this page Jul 20, 2026 · 2 revisions

User Stats Endpoints

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.

Player achievements

$achievements = $steam
    ->userStats($steamId)
    ->GetPlayerAchievements(620);

Current player count

$count = $steam->userStats()->GetNumberOfCurrentPlayers(620);

Full user stats

$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.

Clone this wiki locally