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

    Errors

    One error shape for every endpoint, and what each status means.

    Error shape

    All errors share one shape:

    {"error": {"code": "invalid_api_key", "message": "missing or invalid X-API-Key"}}

    Status codes

    StatusCodeWhen
    400bad_requestA parameter is malformed
    401invalid_api_keyMissing or unknown key
    402tokens_exhaustedAllowance and top-up used up
    402free_ip_quotaFree plan only: the shared 50-token monthly pool for every Free key on your network is used up
    403demo_not_allowedThe demo key asked for something it cannot use (e.g. /usage or POST /odds)
    403plan_requiredThe key's plan does not include this; see below
    403too_many_ipsThe key is already in use from its plan's cap of networks; a new network is refused (see Limits)
    404unknown_eventNo such event_id (never listed). Finished events are still served.
    404unknown_raceNo such race_id
    404not_foundNo such image under /media/
    429rate_limitedOver the per-key rate; see Retry-After
    500internal_errorOur fault; not charged
    503unavailableTemporary; retry after Retry-After

    plan_required

    A request outside the key's plan answers 403 plan_required before any token is charged. The Free plan is the only plan with limits, and the demo key is on it, so it gets this on /history, /clv, /racing/history, /scores, the WebSocket, tier=extended, depth=true and finished events. Any paid plan includes all of them.

    {"error": {"code": "plan_required", "message": "price history needs the Starter plan (this key is on Free)",
               "plan": "free", "plan_name": "Free", "required_plan": "starter",
               "required_plan_name": "Starter", "feature": "history"}}

    plan and required_plan are stable ids (free, starter, core, plus, max); plan_name and required_plan_name are what to show a person (Free, Starter, Developer, Business, Enterprise). Do not retry: upgrade the plan or drop the feature.

    Retrying

    • 429 and 503: wait Retry-After seconds, then retry. The exception is a POST /odds batch that ran out of time: send fewer event_ids, as the same call fails the same way.
    • 404 unknown_event: we never listed that event_id. Check it came from /events verbatim; it is not charged.
    • 400, 401, 403: fix the request; retrying the same one fails the same way.
    PreviousLimitsNextOdds formats

    On this page

    • Error shape
    • Status codes
    • plan_required
    • Retrying