-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints Publisher API
Publisher calls require a Steamworks publisher key and must run on a trusted server.
Use a separate client so privileged credentials are not mixed with a normal Web API key:
use TeemoCell\SteamWebApi\Client;
$publisher = (new Client(apiKey: $publisherKey))->publisher();| Method | Description |
|---|---|
| `CheckAppOwnership(int | string $steamId, int $appId)` |
GetNewsForAppAuthed(...) |
Returns authenticated app-news data. |
| `GetInventory(int $appId, int | string $steamId)` |
GetItemDefs(int $appId, array $filters = []) |
Returns decoded item definitions, including names and images. |
GetPriceSheet(int $currency) |
Returns Inventory Service store prices for a currency. |
$ownership = $publisher->CheckAppOwnership(
steamId: $steamId,
appId: 620,
);$items = $publisher->GetInventory($appId, $steamId);
$definitions = $publisher->GetItemDefs($appId, [
'modifiedsince' => '20260720T000000Z',
]);
$prices = $publisher->GetPriceSheet($currency);GetInventory() and GetItemDefs() decode Steam's embedded item_json and
itemdef_json values into arrays. Item definitions may contain icon_url,
icon_url_large, marketable, tradable, names and descriptions.
GetPriceSheet() returns prices configured for the Steam Inventory Service. It
does not return current Community Market resale prices.
Publisher keys must never be sent to browser JavaScript, mobile apps, desktop clients or game clients. Keep calls server-side and restrict access to their results. See Security.
Documentation for teemocell/steam-web-api · Licensed under the MIT License