Skip to main content

Unofficial Python API wrapper for stake.com

Project description

StakeAPI

Join our affiliate link: https://stake.com/?c=WY7953wQ

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 chipadevteam.github.io/StakeAPI.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stakeapi-0.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stakeapi-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file stakeapi-0.1.0.tar.gz.

File metadata

  • Download URL: stakeapi-0.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for stakeapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6f29173a9817b5e47fc7d0ce214d0b470777c506a507a446373df2b2f998183e
MD5 79633a90bd34913d82a101f347a90e29
BLAKE2b-256 f59768e03dd81c32b8d96c022a87009299e44e75d13f958c510998aa238ccf4e

See more details on using hashes here.

File details

Details for the file stakeapi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stakeapi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for stakeapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8385b624e864a21849df911ab47220a7681276c2fda99de9ff15f2715808d935
MD5 4f84a10483bfae24462035b03588302a
BLAKE2b-256 9cdbde50f956c8286990d030b2bcee547fa110b5af9ee802afdec25ba0f69a5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page