An unofficial Python API wrapper for stake.com - the online gambling platform.
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.
- 🎰 Access to casino games data
- 🏈 Sports betting information
- 👤 User account management
- 📊 Statistics and analytics
- 🔐 Secure authentication handling
- ⚡ Async support for high performance
pip install stakeapiimport 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())- Log in to stake.com in your browser
- Open Developer Tools (F12)
- Go to the Network tab
- Make any action that triggers a request (like checking balance)
- Find a GraphQL request to
/_api/graphql - Right-click → Copy as cURL
- 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"
For detailed documentation, please visit our docs.
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues, please file them in the issues section.