Load the CS2 inventory of any public Steam account with one request. Every item comes back parsed and with its market price attached, so you do not have to call Steam a second time. The same endpoint works for Dota 2, TF2, Rust and every other Steam game: only the appId changes.
Each item includes its market hash name, asset id, amount, icon, name colour and inspect link, plus whether it is tradable and marketable. The lowest sell order and the highest buy order from the Steam Community Market are included in the currency you choose.
Request between 75 and 2000 items per call and continue with the returned lastAssetId until hasMoreItems is false. The response also tells you the total size of the inventory and how many items on the page are hidden by Steam.
Steam limits how often a single IP address may load inventories. Requests to this endpoint run through our own infrastructure, so your application only has to respect the limit of your plan. If you prefer the original Steam response, add the raw parameter and parse it yourself.
GET https://api.steamapihub.com/inventory?appId=730&steamId=STEAM_ID&apiKey=YOUR_API_KEY{
"status": "OK",
"hasMoreItems": true,
"lastAssetId": "41234567891",
"data": [
{
"assetId": "41234567890",
"classId": "310777185",
"instanceId": "302028390",
"appId": "730",
"amount": 1,
"iconUrl": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4Ym...",
"nameColor": "D2D2D2",
"isMarketable": true,
"marketHashName": "AK-47 | Redline (Field-Tested)",
"inspectLink": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198000000000A41234567890D...",
"isTradable": true,
"lowestSellOrder": 38.52,
"highestBuyOrder": 37.9,
"itemNameId": "7178002",
"itemType": "OTHER"
}
],
"totalInventoryCount": 412,
"hiddenItemsOnPage": 3,
"visibleItemsOnPage": 72
}An HTTP 403 response with status FORBIDDEN and the error "Inventory is private". A SteamID that does not exist returns 404 with "Steam ID not found". The API can only read inventories that are set to public.
Steam hides some items from other users, and count includes them. If you request 75 items and 20 of them are hidden, you receive 55, and hiddenItemsOnPage is 20. Use hasMoreItems, not the size of the page, to decide whether to request the next one.
In any of 41 currencies, among them USD, EUR, GBP, CNY and RUB. Set the currency parameter; without it prices are in USD. The steamId has to be the 17-digit SteamID64 of the account.