@barbarbar338/bhapi
    Preparing search index...

    @barbarbar338/bhapi

    Brawlhalla API Wrapper

    stars license supportServer forks issues

    Logo

    Brawlhalla API Wrapper

    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.

    • Using yarn: yarn add @barbarbar338/bhapi
    • Using npm: 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.

    1. Fork the Project
    2. Create your Feature Branch (git checkout -b feature/my-feature)
    3. Run prettier and eslint (npm run format && npm run lint)
    4. Commit your Changes (git commit -m 'my awesome feature my-feature')
    5. Push to the Branch (git push origin feature/my-feature)
    6. Open a Pull Request

    Give a ⭐️ if this project helped you!