Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.7 KB

File metadata and controls

30 lines (23 loc) · 1.7 KB

This repository contains a basic script that uses node-steam-user, an open-source library that connects to the Steam network, same way an actual Steam client does, and allows you to get the concurrent players count for the specified appid using your account. If you have access to a game (e.g. deluxe edition for a game that is currently in advanced access), then Steam will return the CCU for you.

Normally you can use the GetNumberOfCurrentPlayers web api, but this doesn't perform ownership checks, so this script executes the same method, but over the Steam client connection.


When games are available early to pre-purchase owners or deluxe package owners (this is called "Advanced Access") the way it works is that there is a release state override for these owners, but the game itself is not released. As such, most community features are not available until the official release including viewing others' achievements, family sharing, getting the player count, and more.

It is possible to get CCU from an account that owns the game with early access. Because of this, it is possible to make SteamDB track games like it, but it requires our bot to own the game with advanced access.

If you are a game publisher, please donate a key to your game (or provide it using curator connect) so we can track player counts.

Usage:

  1. Install Node.js
  2. Run npm install
  3. Run node index.mjs