apexlegendsjs

2.0.0 • Public • Published

apexlegendsjs

npm

npm install apexlegendsjs

Very light 0 Dependency package that connects to an Apex Legends API

How to use

First run npm install apexlegendsjs

Go here to sign up for an API Key: https://apex.tracker.gg/site-api

Then paste your key into API_KEY_HERE

After that, use apex.player() to get core player information. The data this returns is listed in the documentation here:https://tracker.gg/developers/docs/titles/apex

Recently Updated to V2 of apex tracker API!

"PLAFORM" needs be either origin, psn, or xbl.

const apex = require('apexlegendsjs')(API_KEY_HERE)
async function main(){
const profile = await apexjs.profile("playerName", "PLATFORM")
const playerSegments = await apexjs.playerSegments("playerName", "PLATFORM", "legend")
const searchResults = await apexjs.search("PLATFORM", "query")
const playerSessionData = await apexjs.playerSessions("playerName", "PLATFORM")
}()

This API is documented by JSDocs and the API is promise based. Feel free to look at the code on github and suggest any improvements

Created By

This package was created by John Kryspin.

Package Sidebar

Install

npm i apexlegendsjs

Weekly Downloads

5

Version

2.0.0

License

MIT

Unpacked Size

5.15 kB

Total Files

3

Last publish

Collaborators

  • thejibbster