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

    Getting started

    Tokens & pricing

    Every key has a token allowance that resets every 30 days from your billing date on a paid plan. Each call costs a fixed number of tokens.

    Costs

    Every key has a token allowance per period: Free 50, Starter 250,000, Developer 1,000,000, Business 10,000,000, Enterprise unlimited. On a paid plan it resets every 30 days from your billing date (plan_valid_until); without one, on the 1st of each UTC month. GET /usage shows the period and resets_at. Free keys also share one 50-token monthly pool per network (see Errors, free_ip_quota).

    bet337 subscribers get 50,000 tokens a month included. An account with an active paid bet337 subscription and no bought plan has a 50,000-token monthly allowance and every feature, like a paid plan. A bought plan with a bigger allowance keeps its own. The allowance resets each period and unused tokens do not roll over; without a paid plan it resets on the 1st of each UTC month. GET /usage says so in allowance_source (bet337_subscription).

    CallTokens
    GET /sports, /books, /usage, /_health0
    GET /events (any window, any status)1
    GET /odds with tier=main (default)1
    GET /odds with tier=extended5
    GET /odds with depth=true (paid plans)+1
    GET /odds for a finished eventsame as live (1 main, 5 extended)
    POST /odds (up to 20 events)the GET price per distinct event_id
    GET /scores (score, result and the model fields on /events and /odds cost nothing extra)1
    GET /history (1 to 5 books)2
    GET /racing/meetings, /racing/race1
    GET /racing/history2 (not on the demo key)
    GET /racing/inplay1
    GET /racing/futures, /racing/futures/{futures_id}1
    GET /clv1
    POST /clv1 per distinct event_id in the batch
    GET /openapi.json, /asyncapi.json0 (no key needed)
    WebSocket streaming (sports or racing)100 per connection-minute
    POST /v3/price_check with odds337: true (betting API)1 per stored price served
    GET /v3/markets with odds337=true (betting API)1 with tier=popular, else 5

    WebSocket streaming costs 100 tokens per connection-minute, charged at the start of each minute and shown in the WebSocket tokens frame. If the connection closes mid-minute, the unused part is refunded, rounded down (a minute you started is never free). One connection carries up to 100 events or races, within your plan's caps: 50 live events on Starter and Developer, 150 on Business (3 connections), and 1,000 on Enterprise (20 connections; open one per 100 events). Requests that fail on our side (5xx) or ask for an unknown event (404) are not charged.

    Stream or poll?

    Polling one event every 5 seconds is 12 tokens a minute (1 token a call; an extended /odds is 5, so 60). A connection is a flat 100 a minute, so streaming is cheaper from about 9 events on one connection (from 2 on the extended tier). At the 50-event cap of Starter and Developer that is 2 tokens per event-minute, 6 times cheaper than polling; on Enterprise at 100 events it is 1, 12 times cheaper. For a few events or races, poll. Stream when you follow about 9 or more at once.

    Usage headers

    Every metered response carries:

    HeaderMeaning
    X-Tokens-CostTokens this call cost
    X-Tokens-UsedTokens used this period, including this call
    X-Tokens-RemainingTokens left this period (unlimited on Enterprise)
    X-Tokens-LimitYour allowance for the current period
    X-Tokens-Topup-UsedPart of this call's cost paid from your top-up balance (only when some was)
    X-Tokens-Topup-RemainingTop-up tokens left (when known)
    X-Tokens-Meteringunavailable when the meter could not be reached: the call was served and not counted

    GET /usage returns the same numbers for free. Demo-key responses carry X-Demo-Key: 1 and X-Tokens-Cost: 0 only: the demo key is not metered.

    When tokens run out

    Calls past your allowance are paid from your top-up balance first. When both are used up, metered calls return 402 until your period resets (resets_at). A WebSocket draws on the same tokens: when the next minute cannot be paid, it closes with code 4402 tokens_exhausted.

    {"error": {"code": "tokens_exhausted", "message": "monthly token allowance and top-up balance used up",
               "tokens_used": 1000000, "tokens_limit": 1000000, "topup_balance": 0,
               "plan": "core", "plan_name": "Developer", "resets_at": "2026-11-05T03:12:00Z"}}

    On the betting API

    The same tokens buy our stored prices on the bet337 betting API (/v3), with the same API key. Two calls take an odds337 flag; without it they never return a stored price and spend nothing:

    • POST /v3/price_check with "odds337": true and a bookie: our stored price for one sports selection (under 10 seconds old), 1 token. No stored price is a 404 no_odds337_price and costs nothing. Sports singles only.
    • GET /v3/markets with odds337=true: one bookmaker's whole card with prices, 1 token with tier=popular, 5 otherwise, like one /odds card. A card with no prices costs nothing.

    Both draw on your allowance, then your top-up balance, and carry the same X-Tokens-* headers. They answer 402 tokens_exhausted and 403 plan_required with the bodies above. Every bookmaker is on every plan. On Free, a price check for a market that is not head to head is refused before anything is charged, with feature: "extended_tier"; every paid plan, and a bet337 subscriber, reads every market.

    curl -s -X POST "https://api.b337.ai/v3/price_check" -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"odds337": true, "bookie": "tab", "category": "sports",
           "epk": "aussie_rules/au/afl/st_kilda_saints_v_gold_coast_suns/2026-08-20",
           "market": "head_to_head", "selection": "St Kilda Saints"}'
    PreviousQuickstartNextLimits

    On this page

    • Costs
    • Usage headers
    • When tokens run out
    • On the betting API