-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints
This page lists the public endpoint clients exposed by TeemoCell\SteamWebApi\Client. Method names intentionally follow Steam's Web API naming where practical.
$news = $steam->news();| Method | Description |
|---|---|
| `GetNewsForApp(int $appId, int $count = 5, ?int $maxLength = null, ?int $endDate = null, array | string |
$items = $steam->news()->GetNewsForApp(
appId: 620,
count: 10,
maxLength: 500,
feeds: ['steam_community_announcements'],
)->newsitems;$player = $steam->player($steamId);| Method | Description |
|---|---|
GetSteamLevel() |
Returns the user's Steam level. |
GetPlayerLevelDetails() |
Returns the level plus XP details. |
GetBadges() |
Returns the user's badges. |
GetCommunityBadgeProgress($badgeId = null) |
Returns community badge progress. |
GetOwnedGames(bool $includeAppInfo = true, bool $includePlayedFreeGames = false, array $appIdsFilter = []) |
Returns owned games when profile privacy permits it. |
GetRecentlyPlayedGames(?int $count = null) |
Returns games played during the recent Steam activity window. |
GetSingleGamePlaytime(int $appId) |
Returns playtime for an app when the key is associated with that app. |
IsPlayingSharedGame() remains for compatibility but is no longer documented by Steam. See Legacy and deprecated methods.
$user = $steam->user($steamId);| Method | Description |
|---|---|
ResolveVanityURL(?string $displayName = null, int $urlType = 1) |
Resolves a profile, group or game-group vanity URL. |
GetPlayerSummaries(?string $steamId = null) |
Returns summaries for one or multiple users. |
GetPlayerBans($steamId = null) |
Returns ban information. |
GetFriendList(string $relationship = 'all', bool $summaries = true) |
Returns friend IDs or full player summaries. |
urlType values are 1 for an individual profile, 2 for a group and 3 for an official game group.
User-specific calls require a Steam ID:
$stats = $steam->userStats($steamId);| Method | Description |
|---|---|
GetPlayerAchievements(int $appId) |
Returns user achievements from the official Web API. |
GetGlobalAchievementPercentagesForApp(int $appId) |
Returns global unlock percentages. |
GetUserStatsForGame(int $appId, bool $all = false) |
Returns user stats, optionally including the full response. |
GetSchemaForGame(int $appId) |
Returns the game's stat and achievement schema. |
App-wide calls do not require a Steam ID:
$count = $steam->userStats()->GetNumberOfCurrentPlayers(620);$apps = $steam->app();| Method | Description |
|---|---|
| `appDetails(int | array $appIds, ?string $country = null, ?string $language = null)` |
GetAppList(array $arguments = []) |
Reads all matching pages from IStoreService/GetAppList/v1. |
Arguments supported by Steam, such as include_dlc, if_modified_since, last_appid and max_results, can be passed to GetAppList().
$apps = $steam->app()->GetAppList([
'include_dlc' => true,
'max_results' => 50000,
]);$packages = $steam->package()->packageDetails(
packId: 469,
cc: 'de',
language: 'german',
);packageDetails() uses the legacy Steam Store endpoint.
QueryFiles(array $arguments) forwards documented IPublishedFileService/QueryFiles/v1 filters through input_json. Cursor pagination starts at * when no cursor is supplied.
$files = $steam->workshop()->QueryFiles([
'query_type' => 1,
'appid' => 620,
'return_tags' => true,
]);| Method | Description |
|---|---|
GetServerInfo() |
Returns Steam Web API server information. |
GetSupportedAPIList() |
Returns interfaces and methods available to the key. |
$interfaces = $steam->webApi()->GetSupportedAPIList();Only read-only IGameServersService operations are exposed.
| Method | Description |
|---|---|
GetAccountList() |
Lists game-server accounts available to the key. |
| `GetAccountPublicInfo(int | string $steamId)` |
QueryLoginToken(string $loginToken) |
Queries a login token. |
| `GetServerSteamIDsByIP(array | string $serverIps)` |
| `GetServerIPsBySteamID(array | string $serverSteamIds)` |
Account creation, token reset and deletion are deliberately not exposed because they mutate server credentials.
These methods require a Steamworks publisher key on a trusted server.
use TeemoCell\SteamWebApi\Client;
$publisher = (new Client(apiKey: $publisherKey))->publisher();| Method | Description |
|---|---|
| `CheckAppOwnership(int | string $steamId, int $appId)` |
GetNewsForAppAuthed(...) |
Returns authenticated app news. |
The group, inventory and Community achievement clients remain available for compatibility. See Legacy and deprecated methods before using them in a new application.
Documentation for teemocell/steam-web-api · Licensed under the MIT License