Get API Keys

Tracker Network API Key

Required by battlefield1, battlefield4 and fortnite commands.

Go to Tracer Network Developers Site.

Login/Register for an account. After you've (registered and) logged in, click on the Create Application button (at the top left corner).

Fill up the given form with app name (Bastion), your email, and a description. After that click on Create App.

Then you'll see your API Key under the Credentials & Authorization section of the application you just created.

Bungie API Key

Required by `destiny2` command.

Go to Bungie Applications.

Login/Register your account. After you've (registered and) logged in, click on Create New App.

Fill up the given form with your name, website (you can also use https://bastionbot.org) and select the OAuth client type to Not Applicable.

Then if you agree to their Terms of Use, click on Create New App.

Then you'll see your API Key under the API Keys section.

Clash of Clans API key

Required by `coc` command.

Go to Clash of Clans API.

Login/Register your account.

After login choose My Account from the dropdown menu located top right corner.

Click Create New Key

Set name for the key, description is optional.

Allowed IP addresses requires the IP address of your Bastion bot. You can get your IP address for example from here. Make sure to use IPv4.

After that click Create Key and now you should have your API key.

Copy the key and add it into the credentials file.

Google API Key

Required by `maps` and `shorten` commands.

Go to the Google API Console.

Create a new project, name it anything you like. Once the project is created, click on Enable APIs.

Now, enable Google Static Maps API and URL Shortener API.

On the left tab, click Credentials. Then click Create Credentials button. Now click on API Key. A window will popup with your Google API key.

HiRez API Key

Required by `paladins` and `smite` commands.

Fill up the Hi-Rez Developer Credentials Application Form with correct details. Then submit it. After HiRez Studios have verified you, they will mail you with your HiRez DevId & AuthKey. It generally takes few hours for them you mail you, so you can proceed with the installation, as you can add these to your `credentials.json` file anytime later.

Patreon API Key

Required by `patrons` command.

Go to the Patreon Client Registration.

Click on the Create Client button.

Fill up the details as applicable, and click on the Create Client button at the bottom.

Now that your client is registered, you'll see the required credentials listed under your client.

Rocket League API Key

Required by `rocketLeague` command.

‚ÄčRocket League's API is currently in closed beta. So, you can't request an API key yet. Therefore, you can't use this command yet. Only a selected few have access their API. And Bastion is one of them, so the public Bastion bot can make use of the rocketLeague command. As soon as they allow public access to their API, you can request an API key and use the rocketLeague command in your self hosted Bastion.

Twitch API Key

Required by `streamers` and `twitch` commands.

Read this article on How to get Twitch API Client ID & Client Secret.