UNPKG

statistic_tracker

Version:

A Statistic Tracker for Apex Legends, Cs:Go, Fortnite and Overwatch

28 lines (26 loc) 863 B
## 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](https://tracker.gg/developers/apps) ```js const GameStat = require("statistic_tracker"); const game = new GameStat("apiKey") ``` ## Methods ```js game.getStats(query, game); ``` ## Example ```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); ``` ## Parameters ```js game.getStats(["platform", "name"], "fortnite"); game.getStats(["platform", "name"], "apex"); game.getStats(["platform", "platformUserIdentifier"], "csgo"); game.getStats(["platform", "region", "battletag"], "overwatch"); ```