Skip to content

ChipaDevTeam/StakeAPI

Repository files navigation

StakeAPI

An unofficial Python API wrapper for stake.com - the online gambling platform.

⚠️ Disclaimer

This is an unofficial API wrapper and is not affiliated with, endorsed by, or connected to stake.com in any way. Use at your own risk and ensure compliance with all applicable laws and regulations in your jurisdiction.

Features

  • 🎰 Access to casino games data
  • 🏈 Sports betting information
  • 👤 User account management
  • 📊 Statistics and analytics
  • 🔐 Secure authentication handling
  • ⚡ Async support for high performance

Installation

pip install stakeapi

Quick Start

import asyncio
from stakeapi import StakeAPI

async def main():
    # Initialize with access token from stake.com
    async with StakeAPI(access_token="your_access_token") as client:
        # Get account balance
        balance = await client.get_user_balance()
        print(f"Available balance: {balance['available']}")
        print(f"Vault balance: {balance['vault']}")

asyncio.run(main())

Getting Your Access Token

  1. Log in to stake.com in your browser
  2. Open Developer Tools (F12)
  3. Go to the Network tab
  4. Make any action that triggers a request (like checking balance)
  5. Find a GraphQL request to /_api/graphql
  6. Right-clickCopy as cURL
  7. Extract the x-access-token from the cURL command

The access token will be in a header like:

-H "x-access-token: your_token_here"

Documentation

For detailed documentation, please visit our docs.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues, please file them in the issues section.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published