Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleSteamApis 👋

Version License: MIT

A simple, zero-dependency Node.js wrapper for the SteamApis.com API using native fetch.

 

📋 Requirements:

 

📦 Install:

Use your preferred package manager:

npm install simplesteamapis
# or: yarn add simplesteamapis | pnpm add simplesteamapis | bun add simplesteamapis

 

🚀 Usage:

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.

 

📖 API Reference:

Steam:

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.

 

Market:

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.

 

Images:

Method Description
itemsImage(appID) Image URLs for all items within a given game.

About

Steamapis npm package

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages