Skip to content

Get Inventory (Old)

Revadike edited this page Jun 24, 2022 · 1 revision

GET /profiles/:steamid/inventory/json/:appid/:contextid

Rate limits

No known rate limit

Request

Authenticated: No

Method: GET

Host: steamcommunity.com

Path: /profiles/:steamid/inventory/json/:appid/:contextid

Variables:

Name Type Description
:steamid TODO TODO
:appid TODO TODO
:contextid TODO TODO

Query Parameters:

Name Type Required Description
l string No Language

Response

200 OK

Name Type Description
success boolean TODO
rgInventory object TODO
rgInventory.:assetid.id string TODO
rgInventory.:assetid.classid string TODO
rgInventory.:assetid.instanceid string TODO
rgInventory.:assetid.amount string TODO
rgInventory.:assetid.hide_in_china number TODO
rgInventory.:assetid.pos number TODO
rgCurrency[] array TODO
rgDescriptions array TODO
rgDescriptions object TODO
rgDescriptions.:assetid_instanceid.appid string TODO
rgDescriptions.:assetid_instanceid.classid string TODO
rgDescriptions.:assetid_instanceid.instanceid string TODO
rgDescriptions.:assetid_instanceid.icon_url string TODO
rgDescriptions.:assetid_instanceid.icon_url_large string TODO
rgDescriptions.:assetid_instanceid.icon_drag_url string TODO
rgDescriptions.:assetid_instanceid.name string TODO
rgDescriptions.:assetid_instanceid.market_hash_name string TODO
rgDescriptions.:assetid_instanceid.market_name string TODO
rgDescriptions.:assetid_instanceid.name_color string TODO
rgDescriptions.:assetid_instanceid.background_color string TODO
rgDescriptions.:assetid_instanceid.type string TODO
rgDescriptions.:assetid_instanceid.tradable number TODO
rgDescriptions.:assetid_instanceid.marketable number TODO
rgDescriptions.:assetid_instanceid.commodity number TODO
rgDescriptions.:assetid_instanceid.market_tradable_restriction string TODO
rgDescriptions.:assetid_instanceid.descriptions[] array TODO
rgDescriptions.:assetid_instanceid.descriptions[].type string TODO
rgDescriptions.:assetid_instanceid.descriptions[].value string TODO
rgDescriptions.:assetid_instanceid.descriptions[].color string TODO
rgDescriptions.:assetid_instanceid.descriptions[].app_data object TODO
rgDescriptions.:assetid_instanceid.descriptions[].app_data.def_index string TODO
rgDescriptions.:assetid_instanceid.owner_descriptions string TODO
rgDescriptions.:assetid_instanceid.actions[] array TODO
rgDescriptions.:assetid_instanceid.actions[].name string TODO
rgDescriptions.:assetid_instanceid.actions[].link string TODO
rgDescriptions.:assetid_instanceid.market_actions[] array TODO
rgDescriptions.:assetid_instanceid.market_actions[].name string TODO
rgDescriptions.:assetid_instanceid.market_actions[].link string TODO
rgDescriptions.:assetid_instanceid.tags[] array TODO
rgDescriptions.:assetid_instanceid.tags[].internal_name string TODO
rgDescriptions.:assetid_instanceid.tags[].name string TODO
rgDescriptions.:assetid_instanceid.tags[].category string TODO
rgDescriptions.:assetid_instanceid.tags[].category_name string TODO
rgDescriptions.:assetid_instanceid.tags[].color string TODO
more boolean TODO
more_start number TODO

Example

GET https://steamcommunity.com/profiles/76561198042965266/inventory/json/570/2
{
  "success": true,
  "rgInventory": {
    "8151654237": {
      "id": "8151654237",
      "classid": "57939770",
      "instanceid": "57943523",
      "amount": "1",
      "hide_in_china": 0,
      "pos": 1
    }
  },
  "rgCurrency": [
    
  ],
  "rgDescriptions": {
    "57939770_57943523": {
      "appid": "570",
      "classid": "57939770",
      "instanceid": "57943523",
      "icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KW1Zwwo4NUX4oFJZEHLbXX7gNTPcUmux5cX1nCQtuu38rAR2J_IB0Z4OyhflVj0qOQcmQW7YzjkNLdlKOjZbmCwDJU7pIh3bvE99qkiQHh_V0sPT4dyYEneQ",
      "icon_url_large": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KW1Zwwo4NUX4oFJZEHLbXX7gNTPcUmux5cX1nCQtuu38rAR2J_IB1ouru3LAIu0aSdJW8atIriwIOIlPGiYOnQzzIF6ZAg2bGZodn02FLlqUE6Nm72LZjVLFFn5NswiQ",
      "icon_drag_url": "",
      "name": "Treasure Key",
      "market_hash_name": "Treasure Key",
      "market_name": "Treasure Key",
      "name_color": "D2D2D2",
      "background_color": "",
      "type": "Common Treasure Key",
      "tradable": 1,
      "marketable": 0,
      "commodity": 1,
      "market_tradable_restriction": "7",
      "market_marketable_restriction": "0",
      "item_expiration": "2015-07-01T07:00:00Z",
      "descriptions": [
        {
          "type": "html",
          "value": "Used to open locked <font color='#9da1a9'>Treasure Chests</font>. Double click or right-click the key in your backpack and select the chest you want to open."
        },
        {
          "type": "html",
          "value": "This item will expire on Jul 1, 2015 (0:00:00).",
          "color": "ff4040"
        }
      ],
      "tags": [
        {
          "internal_name": "unique",
          "name": "Standard",
          "category": "Quality",
          "color": "D2D2D2",
          "category_name": "Quality"
        },
        {
          "internal_name": "Rarity_Common",
          "name": "Common",
          "category": "Rarity",
          "color": "b0c3d9",
          "category_name": "Rarity"
        },
        {
          "internal_name": "key",
          "name": "Treasure Key",
          "category": "Type",
          "category_name": "Type"
        },
        {
          "internal_name": "none",
          "name": "N/A",
          "category": "Slot",
          "category_name": "Slot"
        },
        {
          "internal_name": "DOTA_OtherType",
          "name": "Other",
          "category": "Hero",
          "category_name": "Hero"
        }
      ]
    }
  },
  "more": false,
  "more_start": false
}
Clone this wiki locally