A simple, zero-dependency Node.js wrapper for the SteamApis.com API using native
fetch.
- Node.js 18+
- A SteamApis.com API key
Use your preferred package manager:
npm install simplesteamapis
# or: yarn add simplesteamapis | pnpm add simplesteamapis | bun add simplesteamapis
const SteamApis = require("simplesteamapis");
const api = new SteamApis("YOUR_API_KEY");
// Fetch a user's CS:GO inventory
const inventory = await api.getInventory("76561198027608071", 730, 2);
// Look up a specific market item
const item = await api.item(730, "AK-47 | Redline (Field-Tested)");
// Get all tracked games
const apps = await api.apps();All methods are async and return parsed JSON. Errors throw with err.message, err.status, and err.data (the API's JSON error body) attached.
| Method | Description |
|---|---|
getInventory(steamID, appID, contextID) |
Fetches a user's Steam inventory for a given game and context. |
getProfile(steamID) |
Fetches a user's Steam profile — display name, avatar, visibility, etc. |
| Method | Description |
|---|---|
siteStats() |
Platform stats for SteamApis.com — items scanned, requests served, etc. |
app(appID) |
Detailed information for a specific game or application. |
apps() |
Lists all games and applications currently tracked by SteamApis.com. |
item(appID, market_hash_name) |
Pricing and metadata for a single item on the Steam Community Market. |
items(appID) |
All tracked market items for a given game. |
compactItems(appID) |
Compact market item list — equivalent to passing format=compact to the API. |
CompactItemsWithValue(appID, compact_value) |
Compact market item list with a custom timeframe for price values. |
cards() |
Trading card data across all games on Steam. |
| Method | Description |
|---|---|
itemsImage(appID) |
Image URLs for all items within a given game. |