Odds337Execution API
    Odds337Docs
    Odds337BackGet API key
    Odds337Execution API
    Getting started
    • Introduction
    • Authentication
    • Quickstart
    • Tokens & pricing
    • Limits
    • Errors
    • Odds formats
    Reference
    • GET/sports
    • GET/books
    • GET/teams
    • GET/players
    • Logos & headshots
    • GET/events
    • GET/odds
    • POST /odds
    • GET/scores
    • GET/history
    • GET/clv
    • POST /clv
    • GET/usage
    • GET/_health
    • WebSocket
    • Specs & SDKs
    Racing
    • GET/racing/meetings
    • GET/racing/race
    • GET/racing/history
    • GET/racing/inplay
    • GET/racing/futures
    • GET/racing/futures/{futures_id}
    • race_id and status
    Concepts
    • event_id
    • selection_key
    • team_id & player_id
    • Open & close prices
    • 337 model price
    • Event links
    • Statuses
    Getting started
    • Introduction
    • Authentication
    • Quickstart
    • Tokens & pricing
    • Limits
    • Errors
    • Odds formats
    Reference
    • GET/sports
    • GET/books
    • GET/teams
    • GET/players
    • Logos & headshots
    • GET/events
    • GET/odds
    • POST /odds
    • GET/scores
    • GET/history
    • GET/clv
    • POST /clv
    • GET/usage
    • GET/_health
    • WebSocket
    • Specs & SDKs
    Racing
    • GET/racing/meetings
    • GET/racing/race
    • GET/racing/history
    • GET/racing/inplay
    • GET/racing/futures
    • GET/racing/futures/{futures_id}
    • race_id and status
    Concepts
    • event_id
    • selection_key
    • team_id & player_id
    • Open & close prices
    • 337 model price
    • Event links
    • Statuses

    API reference

    Get usage

    Your token usage for the current billing period, your plan and your top-up balance.

    GET/odds/v1/usage
    Cost
    0 tokens
    Authentication
    X-API-Key, your own key (not the demo key)

    Parameters

    This endpoint takes no parameters.

    Request

    The demo key (Free plan) cannot call this endpoint: it answers 403 plan_required. Set ODDS_API_KEY to your own key first.

    curl -s "https://api.b337.ai/odds/v1/usage" \
      -H "X-API-Key: $ODDS_API_KEY"
    import os
    import requests
    
    resp = requests.get(
        "https://api.b337.ai/odds/v1/usage",
        headers={"X-API-Key": os.environ["ODDS_API_KEY"]},
        timeout=10,
    )
    resp.raise_for_status()
    print(resp.json())
    // Node 18+, saved as an .mjs file
    const res = await fetch("https://api.b337.ai/odds/v1/usage", {
      headers: { "X-API-Key": process.env.ODDS_API_KEY },
    });
    console.log(await res.json());

    Response

    200 OK
    {
      "key_id": "666ff6ccaa5b", "period": "2026-10-06", "period_type": "billing_cycle",
      "period_start": "2026-10-06T03:12:00Z", "period_end": "2026-11-05T03:12:00Z",
      "tokens_used": 2, "tokens_limit": 1000000, "tokens_remaining": 999998,
      "resets_at": "2026-11-05T03:12:00Z", "metering": "ok",
      "plan": "core", "plan_name": "Developer",
      "monthly_allowance": 1000000, "monthly_used": 2, "monthly_remaining": 999998,
      "topup_balance": 0, "plan_valid_until": "2026-11-05T03:12:00Z",
      "allowance_source": "plan",
      "costs": {"sports": 0, "books": 0, "usage": 0, "events": 1,
                "odds_main": 1, "odds_extended": 5, "odds_depth": 1, "history": 2, "clv": 1,
                "racing_meetings": 1, "racing_race": 1, "racing_history": 2,
                "teams": 0, "players": 0, "scores": 1}
    }

    Fields

    • period_type is billing_cycle on a paid plan (30 days from your billing date; period is the cycle's start day) or calendar_month otherwise (period is the UTC month). period_start/period_end bound it;resets_at is when the allowance refills.
    • plan is the stable plan id (free, starter, core, plus, max) and plan_name what to show a person. monthly_allowance, monthly_used and monthly_remaining repeat tokens_limit, tokens_used and tokens_remaining (null limit = unlimited). topup_balance is top-up tokens left, spent only once the allowance is used up. plan_valid_until is your paid plan's current end date (null without one). allowance_source says where the allowance comes from: plan (your plan's own) or bet337_subscription (50,000 tokens a month included with an active bet337 subscription, which also includes every feature; plan stays free).
    • costs is the token price of each call type for your key, matching Tokens & pricing.
    PreviousPOST /clvNextGET /_health

    On this page

    • Parameters
    • Request
    • Response
    • Fields