2.1.1 • Published 7 years ago
game-data v2.1.1
game-data
const core = require('game-data');
const client = new core.Client({
steam: '<YOUR_STEAM_API_KEY',
rocket: '<YOUR_ROCKET_LEAGUE_API_KEY>'
});
You only need to provide the keys of the APIs you will be using.
- Steam API Key can be found at: https://steamcommunity.com/dev/apikey
- Rocket League API Key can be found at: https://developers.rocketleaguestats.com/
Rocket League
client.getRocketLeagueProfile('shadowinsaanity', '2').then(data => {
console.log(data.name); // shadowinsaanity
});
- Possible platforms:
steam
,psn
,xbl
Overwatch
client.getOverwatchProfile('Calvin-1337', 'competitive', 'na').then(data => {
console.log(data.tier); // grandmaster
});
- Possible modes:
competitive
,quickplay
- Possible regions:
us
,eu
,kr
Minecraft
client.getMinecraftProfile('play.minesuperior.com/status').then(data => {
console.log(data.status); // true
});
Counter-Strike: Global Offensive
client.getCSGOProfile('76561198294668168').then(data => {
console.log(data.id); // 76561198294668168
});
Method | Type |
---|---|
pistolKills() | number |
heavyKills() | number |
smgKills() | number |
rifleKills() | number |
grenadeKills() | number |
knifeKills() | number |
achieved() | number |
License
ISC
2.1.1
7 years ago
2.1.0
7 years ago
2.0.0
7 years ago
1.1.0
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago