{"id":16098519,"url":"https://github.com/vladpuz/steam-market","last_synced_at":"2026-02-12T11:57:47.003Z","repository":{"id":65653533,"uuid":"568900657","full_name":"vladpuz/steam-market","owner":"vladpuz","description":"Steam market API client","archived":false,"fork":false,"pushed_at":"2023-06-18T12:35:56.000Z","size":733,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T01:34:48.654Z","etag":null,"topics":["api","client","market","steam"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/steam-market","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladpuz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-11-21T16:45:40.000Z","updated_at":"2025-02-03T10:26:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"6474610e-245a-4443-a223-4214462faf5a","html_url":"https://github.com/vladpuz/steam-market","commit_stats":null,"previous_names":["vpuzzyrev/steam-market","vladpuz/steam-market","vladislav-puzyrev/steam-market"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpuz%2Fsteam-market","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpuz%2Fsteam-market/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpuz%2Fsteam-market/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpuz%2Fsteam-market/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladpuz","download_url":"https://codeload.github.com/vladpuz/steam-market/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910715,"owners_count":20367538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","client","market","steam"],"created_at":"2024-10-09T18:23:49.035Z","updated_at":"2026-02-12T11:57:46.995Z","avatar_url":"https://github.com/vladpuz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# steam-market\n\nSteam market API client. Designed for use with\n[steam-user](https://github.com/DoctorMcKay/node-steam-user).\n\nThis package is intended for educational purposes only. Use it at your own risk,\nautomation on the community market is prohibited by the rules of the Steam\nsubscriber agreement:\n\n\u003e You may not use Cheats, automation software (bots), mods, hacks, or any other\n\u003e unauthorized third-party software, to modify or automate any Subscription\n\u003e Marketplace process.\n\nTypeDoc documentation is available on\n[wiki](https://github.com/vladislav-puzyrev/steam-market/wiki).\n\n## Install\n\n### Without log in\n\n```bash\nnpm install steam-market\n```\n\n### With log in\n\n```bash\nnpm install steam-totp steam-user steam-market\n```\n\n## Usage\n\n### Without log in\n\n```javascript\nimport SteamMarket, { ECurrencyCode } from 'steam-market'\n\nconst market = new SteamMarket()\n\n// If necessary, set the currency and language\nmarket.setCurrency(ECurrencyCode.RUB) // Default ECurrencyCode.USD\nmarket.setCountry('RU') // Default 'US'\n\n// Use only methods available without login\nconst appId = 730\nconst marketHashName = 'AWP | Asiimov (Field-Tested)'\n\nconst search = await market.search(appId)\nconsole.log('search', search.success)\n\nconst listings = await market.listings(appId, marketHashName)\nconst itemNameId = await listings.itemNameId()\nconst priceHistory = await listings.priceHistory()\nconsole.log('itemNameId', itemNameId)\nconsole.log('priceHistory', priceHistory.success)\n\nconst itemOrdersHistogram = await market.itemOrdersHistogram(\n  appId,\n  marketHashName,\n  itemNameId,\n)\nconsole.log('itemOrdersHistogram', itemOrdersHistogram.success)\n\nconst priceOverview = await market.priceOverview(appId, marketHashName)\nconsole.log('priceOverview', priceOverview.success)\n```\n\n### With log in\n\n```javascript\nimport SteamTotp from 'steam-totp'\nimport SteamUser from 'steam-user'\nimport SteamMarket from 'steam-market'\n\nconst client = new SteamUser()\nconst market = new SteamMarket()\n\nclient.logOn({\n  accountName: 'username',\n  password: 'password',\n  twoFactorCode: SteamTotp.generateAuthCode('sharedSecret'),\n})\n\n// Waiting for all client object events to set up market before using it\nawait Promise.all([\n  new Promise((resolve) =\u003e {\n    client.on('webSession', (sessionId, cookies) =\u003e {\n      market.setCookies(cookies)\n      resolve()\n    })\n  }),\n  new Promise((resolve) =\u003e {\n    client.on('wallet', (hasWallet, currency) =\u003e {\n      market.setCurrency(currency)\n      resolve()\n    })\n  }),\n  new Promise((resolve) =\u003e {\n    client.on('accountInfo', (name, country) =\u003e {\n      market.setCountry(country)\n      resolve()\n    })\n  }),\n])\n\n// Also set the vanityURL after initializing the client object\nmarket.setVanityURL(client.vanityURL ?? client.steamID?.getSteamID64() ?? '')\n\n// The market object is now fully configured and ready to use\n// The following shows examples of using authorized methods\nconst appId = 730\nconst marketHashName = 'AWP | Asiimov (Field-Tested)'\n\nconst priceHistory = await market.priceHistory(appId, marketHashName)\nconsole.log('priceHistory', priceHistory.success)\n\nconst myListings = await market.myListings()\nconsole.log('myListings', myListings.success)\n\nconst myHistory = await market.myHistory()\nconsole.log('myHistory', myHistory.success)\n\nconst createBuyOrder = await market.createBuyOrder(appId, {\n  marketHashName,\n  price: 50,\n  amount: 1,\n})\nconst buyOrderId = createBuyOrder.buyOrderId\nconsole.log('createBuyOrder', createBuyOrder.success)\n\nconst assetId = myListings.assets[0].id ?? 0\nconst contextId = myListings.assets[0].contextId ?? 0\nconst createSellOrder = await market.createSellOrder(appId, {\n  assetId,\n  contextId,\n  price: 250,\n  amount: 1,\n})\nconsole.log('createSellOrder', createSellOrder.success)\n\nconst buyOrderStatus = await market.buyOrderStatus(\n  appId,\n  marketHashName,\n  buyOrderId,\n)\nconsole.log('buyOrderStatus', buyOrderStatus.success)\n\nconst cancelBuyOrder = await market.cancelBuyOrder(buyOrderId)\nconsole.log('cancelBuyOrder', cancelBuyOrder)\n\nconst listingId = myListings.listings[0].listingId\nconst cancelSellOrder = await market.cancelSellOrder(listingId)\nconsole.log('cancelSellOrder', cancelSellOrder)\n```\n\n## See also\n\n| Module                                                                                   | Description                                                             | Author            |\n| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------- |\n| [steam-totp](https://github.com/DoctorMcKay/node-steam-totp)                             | Lightweight module to generate Steam-style TOTP auth codes              | DoctorMcKay       |\n| [steam-user](https://github.com/DoctorMcKay/node-steam-user)                             | Allows interaction with the Steam network via the Steam client protocol | DoctorMcKay       |\n| [steamcommunity](https://github.com/DoctorMcKay/node-steamcommunity)                     | Interact with various interfaces on Steam Community from Node.js        | DoctorMcKay       |\n| [steam-tradeoffer-manager](https://github.com/DoctorMcKay/node-steam-tradeoffer-manager) | Simple and sane Steam trade offer management                            | DoctorMcKay       |\n| [steam-market](https://github.com/vladislav-puzyrev/steam-market) (YOU HERE)             | Steam market API client                                                 | Vladislav Puzyrev |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladpuz%2Fsteam-market","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladpuz%2Fsteam-market","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladpuz%2Fsteam-market/lists"}