Skip to main content

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-click → Copy 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.

Metadata

Release files for stakeapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stakeapi 0.1.0
File Size Uploaded Provenance
stakeapi-0.1.0.tar.gz 15.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for stakeapi 0.1.0
File Interpreter ABI Platform
stakeapi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / stakeapi-0.1.0.tar.gz

Download URL stakeapi-0.1.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6f29173a9817b5e47fc7d0ce214d0b470777c506a507a446373df2b2f998183e
BLAKE2b-256 checksum
How to use checksums
f59768e03dd81c32b8d96c022a87009299e44e75d13f958c510998aa238ccf4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / stakeapi-0.1.0-py3-none-any.whl

Download URL stakeapi-0.1.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8385b624e864a21849df911ab47220a7681276c2fda99de9ff15f2715808d935
BLAKE2b-256 checksum
How to use checksums
9cdbde50f956c8286990d030b2bcee547fa110b5af9ee802afdec25ba0f69a5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for stakeapi 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page