SteamJS
Javascript access to the Steam Community API
Initialize
This module uses dotenv
, so you can set the ENV variable STEAM_API_KEY.
If you do not use a .env file, you can set the apiKey manually:
dotenv
With ;const steamClient = ;
Default
;const steamClient = apiKey: '1234ASDF' ;
API
getPlayerSummaries(steamIds)
Returns Promise
Note: the Player API is documented in the wiki.
Usage
let players = await ;players;
or
;