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.
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;
}
interface Response {
status: "FORBIDDEN";
error: "Inventory is private";
data: null;
}
interface Response {
status: "NOT_FOUND";
error: "Steam ID not found";
data: null;
}