forked from syntaxerrors/Steam
-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints Player Service
TeemoCell edited this page Jul 20, 2026
·
2 revisions
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. |
$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.
$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.
Documentation for teemocell/steam-web-api · Licensed under the MIT License