/Localhost-Steam-API

Provides an easy way to access and use the Steam API on a local machine.

Primary LanguageJavaScript

Localhost-Steam-API

This project provides an easy way to access and use the Steam API on a local machine.

Why?

I recently have been using Twitch to stream and wanted a way to track my Steam stats while I played. The problem was that there was no way to track these stats on screen with OBS. This project allows streamers to track Steam stats in a web browser on a Localhost server, which you can in turn access through OBS's web browser streaming settings.

Installation & Usage

  1. Copy the Localhost-Steam-API folder to your local machine.
  2. Obtain a Steam Web API Key HERE
  3. Edit lines 1 + 2 in the server.js file.
    const steamKey = "";    // Place your Steam API key in this variable as a string
    const steamID = "";     // Place your Steam ID in this variable as a string
  4. Navigate to Localhost-Steam-API folder in command prompt or terminal
  5. Run npm install
  6. Run node server.js

You can now open a browser and navigate to pages on the server

Navigation

Currently there is only one implemented method from the Steam API

Pages Usage Description
localhost:4000/ Index Copy of /:appid without data
localhost:4000/:appid Replace ":appid" with ID of a steam game Tracks amount of achievements in :appid

Tools Used