Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xxgicoxx/steamworks-api
Steamworks Web API wrapper for Node.js.
https://github.com/xxgicoxx/steamworks-api
api steam steamworks steamworks-api
Last synced: 6 days ago
JSON representation
Steamworks Web API wrapper for Node.js.
- Host: GitHub
- URL: https://github.com/xxgicoxx/steamworks-api
- Owner: xxgicoxx
- License: mit
- Created: 2020-02-11T04:36:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T22:32:29.000Z (over 1 year ago)
- Last Synced: 2024-10-11T02:36:55.117Z (about 1 month ago)
- Topics: api, steam, steamworks, steamworks-api
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/steamworks-api
- Size: 34.2 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# steamworks-api
Steamworks Web API wrapper for Node.js.
# Features
* Steamworks API endpoints# Docs
* [Documentation](https://partner.steamgames.com/doc/webapi)# Prerequisites
* [Node.js](https://nodejs.org/en/)# Installation
````
npm install steamworks-api
````# Credentials
### 1. Steam
````
# Account
Create an Steam account on https://store.steampowered.com/.# API Key
Create an API key on https://steamcommunity.com/login/home/?goto=%2Fdev%2Fapikey.
````# Example
```javascript
const Steam = require('steamworks-api');const steam = new Steam({
key: 'STEAM_API_KEY',
});(async () => {
try {
const recentlyPlayedGames = await steam.get('/IPlayerService/GetRecentlyPlayedGames/v1/', { steamid: '76561198027639832' });
console.log(await recentlyPlayedGames.json());const ownedGames = await steam.get('/IPlayerService/GetOwnedGames/v1/', { steamid: '76561198027639832' });
console.log(await ownedGames.json());
} catch (error) {
console.error(error);
}
})();
```# Built With
* [Node.js](https://nodejs.org/en/)# Authors
* [xxgicoxx](https://github.com/xxgicoxx)# Acknowledgments
* [FlatIcon](https://www.flaticon.com/)