Odds337Docs
    Odds337BackGet API key
    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
    • 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
    • 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
    • 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
    • race_id and status
    Concepts
    • event_id
    • selection_key
    • team_id & player_id
    • Open & close prices
    • 337 model price
    • Event links
    • Statuses

    API reference

    Specs & SDKs

    OpenAPI 3.1 for the REST API and AsyncAPI 3.0 for the WebSocket: generate a typed client in your language.

    Spec URLs

    Both specs are free: no key, 0 tokens. They describe the live API, so generate from them whenever you want current types.

    SpecCoversURL
    OpenAPI 3.1The REST endpointshttps://api.b337.ai/odds/v1/openapi.json
    AsyncAPI 3.0The WebSocket and its frameshttps://api.b337.ai/odds/v1/asyncapi.json

    Generate a REST client

    Any OpenAPI generator works. Two one-liners:

    npx @openapitools/openapi-generator-cli generate   -i https://api.b337.ai/odds/v1/openapi.json   -g typescript-fetch -o ./337odds
    npx @openapitools/openapi-generator-cli generate   -i https://api.b337.ai/odds/v1/openapi.json   -g python -o ./odds337

    Send your key as the X-API-Key header, as in Authentication.

    WebSocket types

    The AsyncAPI document declares every frame the server sends and every op it accepts. Feed it to @asyncapi/generator for typed models, or read it next to the WebSocket page.

    npx @asyncapi/cli generate models typescript https://api.b337.ai/odds/v1/asyncapi.json -o ./337odds-ws
    PreviousWebSocketNextGET /racing/meetings

    On this page

    • Spec URLs
    • Generate a REST client
    • WebSocket types