brawlstars.js is an API wrapper for Brawl Stars in Javascript. This uses the Official Brawl Stars API to gather data.
⚠️ Please make sure you have a token to start this, if not, refer to Getting Started ⚠️
npm install brawlstars.js
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)
})()