logo
Base URL
https://api.steamapihub.com
OpenAPI (JSON)
← Documentation

Steam Inventory API

Fetch any public Steam inventory as JSON with item prices attached. Works for CS2, Dota 2, TF2 and every other game, with pagination and 40+ currencies.

Some items may be invisible but the count is still respected. For example if count = 75 and inventory has 20 invisible items the endpoint will return only 55 items. Read on why valve made this change here: https://steamcommunity.com/app/730/discussions/0/4354491980298970853/
Parameters
appId
*
string
steamId
*
string
apiKey
*
string
count
string
Min - 75, Max - 2000. Default - 75
startAssetId
string
Used for pagination
currency
enum
Default - USD. Used for price details of inventory items
raw
string
If present, returns the inventory JSON as-is from Steam without parsing.
Responses
Code
Description
200
interface Response {
  status: "OK";
  hasMoreItems: boolean;
  lastAssetId: string | null;
  data: {
    assetId: string;
    marketHashName: string;
    appId: string;
    isMarketable: boolean;
    isTradable: boolean;
    classId: string;
    instanceId: string;
    nameColor?: string;
    iconUrl?: string;
    inspectLink?: string;
    lowestSellOrder?: number;
    highestBuyOrder?: number;
    itemNameId?: string;
    itemType: "NORMAL_CARD" | "FOIL_CARD" | "OTHER";
    amount: number;
  }[];
  totalInventoryCount: number;
  hiddenItemsOnPage: number;
  visibleItemsOnPage: number;
}
403
interface Response {
  status: "FORBIDDEN";
  error: "Inventory is private";
  data: null;
}
404
interface Response {
  status: "NOT_FOUND";
  error: "Steam ID not found";
  data: null;
}