Skip to content

Endpoints Player Service

TeemoCell edited this page Jul 20, 2026 · 2 revisions

Player Service Endpoints

Create the service with a Steam ID:

$player = $steam->player($steamId);
Method Description
GetSteamLevel() Returns the user's Steam level.
GetPlayerLevelDetails() Returns level and XP details.
GetBadges() Returns the user's badges.
GetCommunityBadgeProgress($badgeId = null) Returns community badge progress.
GetOwnedGames($includeAppInfo = true, $includePlayedFreeGames = false, $appIdsFilter = []) Returns owned games when privacy permits.
GetRecentlyPlayedGames($count = null) Returns recently played games.
GetSingleGamePlaytime(int $appId) Returns app-specific playtime when the key has access.

Owned games

$games = $steam->player($steamId)->GetOwnedGames(
    includeAppInfo: true,
    includePlayedFreeGames: false,
    appIdsFilter: [620, 730],
);

The method returns a collection of Game containers sorted by name when app information is included.

Recently played games

$games = $steam->player($steamId)->GetRecentlyPlayedGames(count: 5);

Private profiles may return no games. See Profile privacy.

IsPlayingSharedGame() is retained only for compatibility and is covered under Legacy and deprecated methods.

Clone this wiki locally