Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

brawl-stars-api

ImmortalEvil42MIT0.0.5

An API Wrapper for Brawl Stars API

api, brawl-stars, brawl-stars

readme

brawl-stars-api

An API Wrapper for Brawl Stars API

Installation

npm install --save brawl-stars-api

Initialization

const brawlApi = require('brawl-stars-api');
const client = new brawlApi({
    token: 'Token'
})

You can also use BS_API_TOKEN env variable for the token

How to get a token?

You can get your token here

Club Search By Tag

client
.clubByTag('#VQJPJY0L')
.then(res => console.log(res))
.catch(err => console.log(err));

Player Search By Tag

client
.playerByTag('#VQJPJY0L')
.then(res => console.log(res))
.catch(err => console.log(err));