New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

steam-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steam-nodejs

A Node.js library for the Steam Web API

latest
Source
npmnpm
Version
0.3.9
Version published
Weekly downloads
46
100%
Maintainers
1
Weekly downloads
 
Created
Source

Steam Node.js Library (Unofficial)

npm version npm downloads License: MIT Contributions welcome

An unofficial Node.js library for the Steam Web API written in TypeScript. This library is built with Bun and Zod.

Based on the also unofficial Steam API documentation by XPaw.

This SDK provides a simple way to interact with different parts of the Steam API. Specifically, it operates on endpoints that have been validated to work (by manually testing each endpoint from the unofficial documentation).

It also provides a simple way to redirect users to a Steam login page and authenticate users with Steam using OpenID Connect.

This library is not affiliated with Valve Corporation or Steam. All trademarks are property of their respective owners in the US and other countries. Valve Corporation. Steam and the Steam logo are trademarks and/or registered trademarks of Valve Corporation in the U.S. and/or other countries.

Installation

bun add steam-nodejs

Usage


import { SteamClient } from 'steam-nodejs';

const steamClient = new SteamClient('your-api-key');


// After authenticating the user, you can operate on different parts of the Steam API
const friendsList = await steamClient.user.getFriendsList(user.steamid);

console.log(friendsList);

More Examples

import { SteamClient } from 'steam-nodejs';

const steamClient = new SteamClient('your-api-key');

const followedGames = await steamClient.store.getGamesFollowed(user.steamid);

console.log(appDetails.name);

Available Services

Currently, the following services are available:

Features

ServiceFeatures
ChartsGet games by concurrent players
Get most played games
Get best of year
CommunityGet apps
EconGet trade offers summary
Get trade history
Get trade offers
NewsGet news for app
PlayerGet Steam level
Get badges
Get owned games
Get recently played games
Get last played times
Get animated avatar
Get avatar frame
Get mini profile background
Get favourite badge
Get player link details
Get profile background
Get profile customization
Get profile items equipped
Get Steam Deck keyboard skins
Get top achievements for games
SaleGet user year in review
Get user year achievements
StatsGet number of current players
Get player achievements
Get global achievement percentages for app
Get schema for game
Get user stats for game
Store Top SellersGet weekly top sellers
Steam StoreGet app details (use this specifically to get information about a particular app)
StoreGet app list on store
Get games followed
Get games followed count
Get most popular tags
User Store VisitGet most visited items on store
UserGet user
Get friends list
Get users
Get user group list
WishlistGet wishlist
Get wishlist item count
ReviewsGet reviews for an app
ActionsGet categories for the store
Get tags for the store

Documentation

For more information, please see the documentation.

Also read InternalSteamWebAPI for more extra on other undocumented endpoints and information on the Steam Store Web API.

Contributing

Please see CONTRIBUTING.md for contribution guidelines.

Developing Locally

This project requires the following dependencies to be installed:

To install the dependencies, run the following command:

bun install

Testing

Please create a .env.test file with the following content:

TEST_STEAM_API_KEY=your-api-key
TEST_STEAM_USER_ID=your-steam-user-id

You can get your Steam API key from the Steam Developer Portal.

After which, you can run the tests with the following command:

bun test

License

MIT

Disclaimer

This project is not affiliated with Valve Corporation or Steam. All trademarks are property of their respective owners in the US and other countries. Valve Corporation. Steam and the Steam logo are trademarks and/or registered trademarks of Valve Corporation in the U.S. and/or other countries.

Keywords

steam

FAQs

Package last updated on 10 Dec 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