Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

dannyhpy/brawlstars-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brawlstars.js

brawlstars.js is an API wrapper for Brawl Stars in Javascript. This uses the Official Brawl Stars API to gather data.

Getting Started

  1. Head to the Official Brawl Stars API.
  2. Create a new account.
  3. After creating a account, go to your account.
  4. Create a new token. Name it anything, put any description, and for the IP, add the IP address where you will be requesting from.
  5. Hit create token, then click on the token, and your token will show up. This is basically your access key to the API.

⚠️ Please make sure you have a token to start this, if not, refer to Getting Started ⚠️

  1. Run in your console npm install brawlstars.js
  2. You're done!
const BrawlStars = require("brawlstars.js")
const token      = "Your Token"
const client     = new BrawlStars.Client(token)

;(async() => {
  const player     = await client.getPlayer("#PLAYERTAG")
  const playerClub = await client.getClub(player.club.tag)
})()

Documentation

Available here

Support

Discord Support Server

Releases

No releases published

Packages

No packages published