npm install game-data``javascript`
const core = require('game-data');
const client = new core.Client({
steam: '
});
You only need to provide the keys of the APIs you will be using.
- Steam API Key can be found at:
- Rocket League API Key can be found at:
`javascript`
client.getRocketLeagueProfile('shadowinsaanity', '2').then(data => {
console.log(data.name); // shadowinsaanity
});
- Possible platforms: steam, psn, xbl
`javascript`
client.getOverwatchProfile('Calvin-1337', 'competitive', 'na').then(data => {
console.log(data.tier); // grandmaster
});
- Possible modes: competitive, quickplayus
- Possible regions: , eu, kr
`javascript`
client.getMinecraftProfile('play.minesuperior.com/status').then(data => {
console.log(data.status); // true
});
`javascript``
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 |
ISC