Socket
Book a DemoInstallSign in
Socket

steamcommunity-inventory

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steamcommunity-inventory

A rate limit and response handler for steamcommunity inventories. - It's functional. - Will appreciate all feedback I can get

2.0.12
latest
npmnpm
Version published
Weekly downloads
41
355.56%
Maintainers
1
Weekly downloads
 
Created
Source

steamcommunity-inventory

A rate limit and response handler for steamcommunity inventories.

  • It's functional.
  • Will appreciate all feedback I can get

Instalation

Currently only via NPM: npm install steamcommunity-inventory

Documentation

Vocabulary

ParamTypeDescriptions
steamIDstringSteam account identificator
appIDstringApplication identificator, eg: https://store.steampowered.com/app/440/Team_Fortress_2/
contextIDstringInventory context identificator, eg: https://steamcommunity.com/id/theglencoco/inventory/#440_2_8331418960 440 is AppID, 2 is contextID, last one is assetID

Inventory

Handles inventory requests to SteamCommunity.

Kind: global class

new Inventory([options])

ParamTypeDescription
options.steamIDstringWhen passed with cookies, you don't have to rely on rate limit, steam lets you request your inventory freely
options.method'new' | 'old'method we use for inventory
options.formatterfunctionmodifies econItem before being passed into then
[options.headers]ObjectHTTP headers
For Rate limiting see:https://github.com/SGrondin/bottleneck#constructor
options.minTimenumber
options.maxConcurentnumber
options.reservoirnumber
options.reservoirRefreshAmountnumber
options.reservoirRefreshInvervalnumber

inventory.setCookies(cookies)

Sets cookies to instance NOTE: Current version only accepts cookies in for like

Kind: instance method of Inventory See: https://github.com/DoctorMcKay/node-steam-user#websession

ParamType
cookiesArray.<string>

inventory.get(options) ⇒ Promise.<Array.<EconItem>>

A shorthand function used for requesting and limiting.

Kind: instance method of Inventory See: Inventory.prototype.getViaNewEndpoint

ParamTypeDescription
optionsObjectSee old or new

Methods

Please note that you should only use inventory.get for inventory. These methods are not usable on their own.

OLD: inventory.getViaOldEndpoint(steamID, appID, contextID, [start], [tradableOnly], [inventory])

Gets inventory from old deprecated endpoint that has more data but is more limited.

Kind: instance method of Inventory

ParamTypeDefaultDescription
steamIDstring
appIDstring
contextIDstring
countnumberHow many items you want, Every request gets roughly 2000 items, so count should be multiple of 2000, can also be: Infinity gets all recursively, void gets only the first 500
[start]numberFrom which item do we start.
[tradableOnly]booleantrue
[inventory]Array.<Object>[]Only if you wanna append more items to it. Used for recursion.

NEW: inventory.getViaNewEndpoint(steamID, appID, contextID, [language])

Gets inventory from new endpoint that has better rate limit but less data.

Kind: instance method of Inventory

ParamTypeDefault
steamIDstring
appIDstring
contextIDstring
[language]string"english"
[start]stringassetID you want to start from.
[count]numberIf set gets the exact amount of items, if Infinity gets all recursively, if void gets only the first 500
[inventory]Array.<Object>[]

Keywords

steam

FAQs

Package last updated on 11 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.