logo

CS2 Inventory API

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.

What you get for every item

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.

Built for large inventories

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.

No Steam rate limits to work around

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

Example response (shortened)

{
  "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
}

Response fields

assetId
Unique id of the item in this inventory. Pass the lastAssetId of a response as startAssetId to load the next page.
marketHashName
Name of the item on the Steam Community Market, including wear for CS2 skins.
amount
Stack size. It is greater than 1 only for stackable items.
isTradable, isMarketable
Whether the item can currently be traded and whether it can be sold on the Steam Community Market.
lowestSellOrder, highestBuyOrder
Steam Community Market prices in the requested currency. Both are left out when we have no price for the item.
inspectLink
Inspect link with the owner and asset id already filled in. Present only on items that can be inspected in game.
itemType
NORMAL_CARD or FOIL_CARD for Steam trading cards, OTHER for everything else.
classId, instanceId, nameColor, iconUrl
Passed through from Steam: the ids of the item description, the colour of the item name and the icon path.
totalInventoryCount
Number of items in the whole inventory, not only on this page.
hiddenItemsOnPage, visibleItemsOnPage
How many items of the requested page Steam hides from other users, and how many were returned.

Have questions?

What does the API return for a private inventory?

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.

Why do I get fewer items than the count I asked for?

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 which currencies are the prices returned?

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.

Endpoint
Inventory
Price per month
$8.99
Requests per day
5000
Show documentation