Skip to main content
GET
Get best price for an event

Endpoint details

Find the best currently open price and ranked matching prices for one event market. Authenticate with X-TheRundown-Key (recommended) or key=. Returned books, player props, live periods and data delay respect the subscription. API Starter+ best-lines access is required; an ineligible plan receives {“error”:“Best lines require Starter plan or higher”,“upgrade_url”:“/pricing/api”}. Each entry in all costs one data point; best is not charged a second time. An unavailable selection returns 200 with count 0 rather than 404. Prices may be delayed by the plan; do not treat the result as a betslip guarantee. If no eligible base-market prices remain and period_id is entirely omitted, include_live defaults true and permits a retry against the catalog-declared live twin. Explicit period_id presence or include_live=false suppresses the retry. A successful retry exposes its actual live market_id and period_id and is described in meta.warnings; all plan and selection filters still apply.

Example response

Examples are shortened for readability; counts retain the source values.

Response fields

Authorizations

X-TheRundown-Key
string
header
required

Recommended API key request header for new integrations

Path Parameters

eventID
string
required

The unique event ID.

Example:

"1a8bcd066bbf23306db3403ae621f279"

Query Parameters

odds_format
enum<string>
default:american

Odds representation for REST prices. Absent or american preserves the existing response. Fractional odds are reduced ratio strings; decimal and probability retain each source field's number/string type. Probability is a 0..1 fraction. Off-board placeholders (including 0 and 0.0001), nulls and nonnumeric sentinel strings stay unchanged. Numeric values with absolute value below 100 are not converted. Price-delta fields retain American-point difference units. Empty, repeated or unsupported values return 400. WebSockets are unchanged.

Available options:
american,
decimal,
fractional,
probability
market_id
integer
required

Market ID to price.

period_id
integer
default:0

Initial/exact period ID, default 0 (full game). Presence is authoritative: supplying period_id=0, an empty value, or an invalid value prevents live-twin fallback; empty/invalid input retains the existing parser default 0. Only when this parameter is omitted, include_live is not literal false, and the fully filtered original result is empty may the handler retry a declared live-market twin. For an explicitly requested live market, supply its actual period (for example market_id=41 / period_id=7).

participant_id
integer

Participant to price.

participant_type
integer

Participant type identifier.

market_participant_id
integer<int64>

Exact market participant row to price.

side
enum<string>

Use over or under to rank total-style markets by bettor-favorable line before price.

Available options:
over,
under
line
string

Exact line to match. Omit to allow main-line ranking.

include_alternates
boolean
default:false

Include alternate and extended lines.

affiliate_ids
string

Comma-separated sportsbook affiliate IDs to include.

limit
integer
default:25

Maximum ranked prices to return.

Required range: 1 <= x <= 100
include_live
enum<string>
default:true

After the requested market/period yields no eligible prices, allow an automatic retry against its catalog-declared live market twin only when period_id is entirely absent. Only literal false disables this retry. Does not combine base and live prices, replace a nonempty base result, or bypass sportsbook, participant, alternate-line, delay, prop or live-odds entitlements. Returned prices identify their actual live market_id and period_id; meta.warnings explains a live retry that supplied prices.

Available options:
true,
false

Response

Successful response. Arrays may be empty when no eligible records match.

BestLine response.

meta
object

Response source, freshness, result count and diagnostic metadata.

best
object

Highest-ranked matching open price; omitted when no eligible price is available.

all
object[]

Ranked matching open prices, bounded by the applicable limit parameter.