statistic_tracker
v1.2.1
Published
A Statistic Tracker for Apex Legends, Cs:Go, Fortnite and Overwatch
Downloads
24
Maintainers
Readme
Statistic Tracker
This module is made to get statistics from different games, we currently support: Apex Legends, Cs:Go, Fortnite and Overwatch.
Usage
You can find your Api Key Here
const GameStat = require("statistic_tracker");
const game = new GameStat("apiKey")
Methods
game.getStats(query, game);
Example
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);
Parameters
game.getStats(["platform", "name"], "fortnite");
game.getStats(["platform", "name"], "apex");
game.getStats(["platform", "platformUserIdentifier"], "csgo");
game.getStats(["platform", "region", "battletag"], "overwatch");