Skip to main content

Getting started with Brawlstats

To install brawlstats you can run the following command:

npm install brawlstats

Demo Client

Here is a quick client example to get you started:

const { Client } = require('brawlstats');

const client = new Client({
token: 'your-api-key'
});
tip

You can directly call the client without a constructor if you have your api-key inside an environment variable named BRAWLSTARS_TOKEN like:

new Client();