statistic_tracker
Version:
A Statistic Tracker for Apex Legends, Cs:Go, Fortnite and Overwatch
28 lines (26 loc) • 863 B
Markdown
This module is made to get statistics from different games, we currently support: Apex Legends, Cs:Go, Fortnite and Overwatch.
You can find your Api Key [Here](https://tracker.gg/developers/apps)
```js
const GameStat = require("statistic_tracker");
const game = new GameStat("apiKey")
```
```js
game.getStats(query, game);
```
```js
const game = new GameStat("xxx-xxx-xxx-xxx");
const { data, error } = game.getStats(["pc", "Ninja"], "fortnite");
if(!data || error) console.log("Couldn't find that player!");
else console.log(data);
```
```js
game.getStats(["platform", "name"], "fortnite");
game.getStats(["platform", "name"], "apex");
game.getStats(["platform", "platformUserIdentifier"], "csgo");
game.getStats(["platform", "region", "battletag"], "overwatch");
```