bsapi

API Wrapper for Brawl Stars

Usage no npm install needed!

<script type="module">
  import bsapi from 'https://cdn.skypack.dev/bsapi';
</script>

README

brawlstars.js

brawlstars.js is an API wrapper for Brawlstars in Javascript

Starting

npm install brawlstars.js

const Brawlstars = require("brawlstars.js")
const token      = "your token" //visit https://developer.brawlstars.com/ to get a token
const client     = new Brawlstars.Client(token)

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

Documentation

Available here

Support

Discord support