-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints Community Inventory
The Community inventory client reads public Steam Community inventories and combines asset instances with their matching descriptions.
This endpoint is not part of the documented Steamworks Web API. The client is experimental and may require changes when Steam modifies the Community API.
$inventory = $steam->communityInventory()->GetInventory(
steamId: $steamId,
appId: 730,
contextId: 2,
language: 'english',
count: 2000,
);GetInventory(
int|string $steamId,
int $appId,
int|string $contextId = 2,
string $language = 'english',
int $count = 2000,
): CommunityInventoryResultThe method converts the Steam ID to Steam64, follows last_assetid pagination
automatically and does not send the configured API key to steamcommunity.com.
CommunityInventoryResult contains:
| Property | Description |
|---|---|
items |
Collection of CommunityInventoryItem objects. |
totalCount |
Total item count reported by Steam. |
pages |
Number of Community requests used. |
Each item can contain:
- asset, class and instance IDs;
- app and context IDs;
- quantity;
- name, type and description text;
- normalized small and large image URLs;
- market name and market hash name;
- tradable and marketable flags;
- tags.
Steam usually returns relative economy-image paths. The item container converts them into complete HTTPS URLs. Already absolute URLs are kept unchanged.
The response contains market metadata but no reliable current Community Market resale price. The client deliberately does not call Steam's undocumented market price endpoint or calculate a total inventory value.
For Inventory Service store prices belonging to your own application, use the Publisher API.
Only publicly accessible inventories can be read. Private inventories or
Community throttling may result in ApiCallFailedException. Cache successful
responses and avoid repeatedly loading full inventories during web requests.
Documentation for teemocell/steam-web-api · Licensed under the MIT License