API Documentation

Get Inventory

This API route allows you to retrieve the inventory of a steam user. It will respond with some user information like the steam name and profile picture but also prices of each skin, that are internally retrieved from the SkinPort API.

GET: https://skinbackpack.com/api/cs2/inventory/[user]

Make sure to replace user with the actual SteamID 64 or the custom url name.

Example:

Both of these retrieve the inventory of Anomaly

With custom url name:

GET: https://skinbackpack.com/api/cs2/inventory/anomaly

With SteamID 64:

GET: https://skinbackpack.com/api/cs2/inventory/76561198153039097

🚀 Try it instantly in your browser by clicking here

Response

This is the response of the above route:

{
  "steamUser": {
    "id": "cly1necpd0000kr4l0p3xxgrj",
    "steamId": "76561198153039097",
    "name": "🥶Anomaly 💲BUYING SKINS💲",
    "profileUrl": "https://steamcommunity.com/id/anomaly/",
    "avatarUrl": "https://avatars.steamstatic.com/5a78fbeacb870e8eedb7df3c37d7648e9a095c8e_full.jpg",
    "inventoryValue": 166776.23,
    "isDonator": false,
    "createdAt": "2024-06-30T14:30:12.434Z",
    "updatedAt": "2024-07-04T21:44:01.439Z"
  },
  "inventory": {
    "inventoryValue": 166776.23,
    "skins": [
      {
        "classId": "2769912172",
        "instanceId": "188530139",
        "name": "★ Sport Gloves | Vice",
        "marketHashName": "★ Sport Gloves | Vice (Factory New)",
        "type": "★ Extraordinary Gloves",
        "inspectIngame": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S%owner_steamid%A%assetid%D730469474655429428",
        "marketable": 1,
        "exterior": "Factory New",
        "commodity": 0,
        "icon": "https://community.akamai.steamstatic.com/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DAQ1JmMR1osbaqPQJz7ODYfi9W9eO0mJWOqOf9PbDummJW4NE_3LmYo43w31Cx-xE4ZmilJoWVdFRvNQzX_1DtlLjq15G5tJnLzCFh7j5iuyjrgJbKOg",
        "slug": "sport-gloves-or-vice-(factory-new)",
        "price": 21914.88
      },
      {
        "classId": "384801279",
        "instanceId": "0",
        "name": "Sticker Capsule 2",
        "marketHashName": "Sticker Capsule 2",
        "type": "Base Grade Container",
        "inspectIngame": null,
        "marketable": 1,
        "exterior": null,
        "commodity": 1,
        "icon": "https://community.akamai.steamstatic.com/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXU5A1PIYQNqhpOSV-fRPasw8rsQEl9Jg9SpIW1KgRrg6GGJWRBtI-ykYTak6WhN76JlWgFsJN1j72SotWiigbi-0BqYjuncdDDdRh-Pw9UqwY-SA",
        "slug": "sticker-capsule-2",
        "price": 26.8,
        "quantity": 2
      },
      ... and more
    ]
  }
}

Notice that in the second skin object in the skins array there is an additional "quantity" value. The quantity is only shown on cases or capsules, and shows how much of the specific capsule is in the users inventory, instead of having an entry in the array for each case or capsule.