Skip to content

Endpoints Community Inventory

TeemoCell edited this page Jul 20, 2026 · 1 revision

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.

Usage

$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,
): CommunityInventoryResult

The method converts the Steam ID to Steam64, follows last_assetid pagination automatically and does not send the configured API key to steamcommunity.com.

Result

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.

Images

Steam usually returns relative economy-image paths. The item container converts them into complete HTTPS URLs. Already absolute URLs are kept unchanged.

Prices

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.

Privacy and errors

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.

Clone this wiki locally