3.3.0 • Published 4 years ago

steamcommunity-market v3.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

steamcommunity-market

Handy library that requests data from steamcommunity market API.

Instalation

It's simple, just type in:

npm install steamcommunity-market

For more stable version:

npm install steamcommunity-market@3.0.3

Docs

CommunityMarket

Main production class.

new CommunityMarket(options)

ParamTypeDefaultDescription
optionsobject
options.httpobjectHTTP setting default, look at request docs.
options.localizationobjectDefault localization settings.
options.localization.currencyECMCurrencyCodes1
options.localization.countrystring"'us'"Country name shortened.
options.localization.languagestring"'en'"Language name shortened.
options.histogramobjectHistogram default settings.
options.listingsobjectListing default settings.
options.searchobjectSearch default settings.

communityMarket.getHistogram()

See: Params.prototype.getLocalization For localization parameters.

ParamTypeDefaultDescription
params.itemNameIDstringItem market hash name.
params.twoFactorstring0Unknown setting.

Gets histogram parameters for CommunityMarket.

communityMarket.getListings()

See: Params.prototype.getLocalization For localization parameters.

ParamTypeDefaultDescription
params.startnumber0Starting point.
params.countnumber | voidIf void fetches all listings, otherwise by number.
params.querystring | voidDescription query search.

Gets CommunityMarket item listings.

communityMarket.getOverview()

ParamTypeDefaultDescription
params.marketHashNamestringSteam name that is included in the url.
params.appidnumberGame ID on steam.
params.currencyECMCurrencyCodes1

Gets overview for CommunityMarket item.

communityMarket.search(params)

ParamTypeDefaultDescription
paramsobject{}Can also include other appid specific parameters.
params.querystring"''"
params.startnumber0Search start.
params.countnumberHow many do we want, if void searches for all.
params.searchDescriptionsbooleanfalseIf we want to search descriptions of items.
params.sortColumnstring"'price'"Which column get items sorted by.
params.sortDirstring"'asc'"Which direction.
params.appidnumberGame ID on steam.

Searches the CommunityMarket.

communityMarket.getPriceHistory()

See: Params.prototype.getLocalization For localization parameters.

ParamTypeDescription
params.marketHashNamestringSteam name that is included in the url.
params.appidnumberGame ID on steam.

Gets sale history. Currently does not work.

3.3.0

4 years ago

3.2.0

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago