Brawlhalla API JavaScript/TypeScript/NodeJS wrapper
Get support Β»
Report Bug
Β·
Request Feature
Β·
Live Example
Β·
Docs
Brawlhalla API JavaScript/TypeScript/NodeJS wrapper. Easily make API requests to Brawlhalla API servers.
yarn add @barbarbar338/bhapi
npm i @barbarbar338/bhapi
See the documentation for more examples.
import { BHAPIError, getStatsByBHID, setApiKey } from "@barbarbar338/bhapi";
// Set your Brawlhalla API key
setApiKey("YOUR_BRAWLHALLA_API_KEY");
try {
// Fetch stats using Brawlhalla user ID
const { data } = await getStatsByBHID("brawlhalla_id");
console.log(data);
} catch (error) {
if (error instanceof BHAPIError) {
console.error("Brawlhalla API error:", error);
} else {
console.error("Unknown error:", error);
}
}
Copyright Β© 2025 BarΔ±Ε DEMΔ°RCΔ°.
Distributed under the MIT License. See LICENSE
for more information.
Feel free to use GitHub's features.
git checkout -b feature/my-feature
)npm run format && npm run lint
)git commit -m 'my awesome feature my-feature'
)git push origin feature/my-feature
)Give a βοΈ if this project helped you!