Overview

The Brawl Stars API provides official game data including player profiles, club info, battle logs, and brawler statistics. You need an API key from developer.brawlstars.com and must whitelist your IP address to make requests. It's a great starting point for building fan dashboards or stat trackers for this popular mobile game.

Beginner Tip

Your API key is tied to specific IP addresses — if you change development machines or deploy to a server, update your allowed IPs in the developer portal.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

Use case: Integrate brawl stars game information data into web and mobile applications
Brawl Stars data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "id": 1,
  "name": "Brawl Stars",
  "data": "Brawl Stars Game Information",
  "source": "Brawl Stars"
}

Field Reference

tag Unique player tag identifier starting with '#'.
name In-game display name of the player.
trophies Current total trophy count across all brawlers.
highestTrophies All-time highest trophy count achieved by the player.
brawlers List of brawler objects the player owns, each with id, name, trophies, and power level.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.brawlstars.com/v1/players/%23PLAYERTAG";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

403 Forbidden Your request is coming from an IP address not whitelisted in the developer portal.
Log in to developer.brawlstars.com, edit your key, and add your current IP address to the allowed list.
404 Not Found for player tag Player tags must be URL-encoded; the # character must be replaced with %23.
Replace '#' with '%23' in the tag before placing it in the URL, e.g. %23ABC123.
429 Too Many Requests You have exceeded the rate limit for your API key.
Slow down requests and consider caching player data locally for at least a few minutes.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Games & Comics
Difficulty Intermediate
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →