curl --request GET \
--url https://therundown.io/api/v2/odds/best-line \
--header 'X-TheRundown-Key: <api-key>'import requests
url = "https://therundown.io/api/v2/odds/best-line"
headers = {"X-TheRundown-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-TheRundown-Key': '<api-key>'}};
fetch('https://therundown.io/api/v2/odds/best-line', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://therundown.io/api/v2/odds/best-line",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-TheRundown-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://therundown.io/api/v2/odds/best-line"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-TheRundown-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://therundown.io/api/v2/odds/best-line")
.header("X-TheRundown-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://therundown.io/api/v2/odds/best-line")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-TheRundown-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"source": "db_fallback",
"as_of": "2026-12-05T02:28:36Z",
"count": 2,
"warnings": [
"served from bounded filtered db fallback because redis index was empty, unrelated, or unsafe to truncate",
"served live market 41 period 7 because requested market 1 had no eligible prices"
]
},
"best": {
"id": 735854254,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072681,
"participant_id": 4,
"participant_type": 1,
"period_id": 7,
"line": "Philadelphia 76ers",
"price": "1200.0000",
"previous_price": "1500.0000",
"implied_probability": 0.07692307692307693,
"move_bps": 144,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:36Z",
"indexed_at": "2026-12-05T02:28:36Z"
},
"all": [
{
"id": 735854254,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072681,
"participant_id": 4,
"participant_type": 1,
"period_id": 7,
"line": "Philadelphia 76ers",
"price": "1200.0000",
"previous_price": "1500.0000",
"implied_probability": 0.07692307692307693,
"move_bps": 144,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:36Z",
"indexed_at": "2026-12-05T02:28:36Z"
},
{
"id": 735854253,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072680,
"participant_id": 11,
"participant_type": 1,
"period_id": 7,
"line": "Atlanta Hawks",
"price": "-2500.0000",
"previous_price": "-3500.0000",
"implied_probability": 0.9615384615384616,
"move_bps": 107,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:34Z",
"indexed_at": "2026-12-05T02:28:34Z"
}
]
}
V2: Get best price
Find the best currently open price and ranked matching prices for one event market.
curl --request GET \
--url https://therundown.io/api/v2/odds/best-line \
--header 'X-TheRundown-Key: <api-key>'import requests
url = "https://therundown.io/api/v2/odds/best-line"
headers = {"X-TheRundown-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-TheRundown-Key': '<api-key>'}};
fetch('https://therundown.io/api/v2/odds/best-line', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://therundown.io/api/v2/odds/best-line",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-TheRundown-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://therundown.io/api/v2/odds/best-line"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-TheRundown-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://therundown.io/api/v2/odds/best-line")
.header("X-TheRundown-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://therundown.io/api/v2/odds/best-line")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-TheRundown-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"source": "db_fallback",
"as_of": "2026-12-05T02:28:36Z",
"count": 2,
"warnings": [
"served from bounded filtered db fallback because redis index was empty, unrelated, or unsafe to truncate",
"served live market 41 period 7 because requested market 1 had no eligible prices"
]
},
"best": {
"id": 735854254,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072681,
"participant_id": 4,
"participant_type": 1,
"period_id": 7,
"line": "Philadelphia 76ers",
"price": "1200.0000",
"previous_price": "1500.0000",
"implied_probability": 0.07692307692307693,
"move_bps": 144,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:36Z",
"indexed_at": "2026-12-05T02:28:36Z"
},
"all": [
{
"id": 735854254,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072681,
"participant_id": 4,
"participant_type": 1,
"period_id": 7,
"line": "Philadelphia 76ers",
"price": "1200.0000",
"previous_price": "1500.0000",
"implied_probability": 0.07692307692307693,
"move_bps": 144,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:36Z",
"indexed_at": "2026-12-05T02:28:36Z"
},
{
"id": 735854253,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072680,
"participant_id": 11,
"participant_type": 1,
"period_id": 7,
"line": "Atlanta Hawks",
"price": "-2500.0000",
"previous_price": "-3500.0000",
"implied_probability": 0.9615384615384616,
"move_bps": 107,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:34Z",
"indexed_at": "2026-12-05T02:28:34Z"
}
]
}
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.{
"meta": {
"source": "db_fallback",
"as_of": "2026-12-05T02:28:36Z",
"count": 2,
"warnings": [
"served from bounded filtered db fallback because redis index was empty, unrelated, or unsafe to truncate",
"served live market 41 period 7 because requested market 1 had no eligible prices"
]
},
"best": {
"id": 735854254,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072681,
"participant_id": 4,
"participant_type": 1,
"period_id": 7,
"line": "Philadelphia 76ers",
"price": "1200.0000",
"previous_price": "1500.0000",
"implied_probability": 0.07692307692307693,
"move_bps": 144,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:36Z",
"indexed_at": "2026-12-05T02:28:36Z"
},
"all": [
{
"id": 735854254,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072681,
"participant_id": 4,
"participant_type": 1,
"period_id": 7,
"line": "Philadelphia 76ers",
"price": "1200.0000",
"previous_price": "1500.0000",
"implied_probability": 0.07692307692307693,
"move_bps": 144,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:36Z",
"indexed_at": "2026-12-05T02:28:36Z"
},
{
"id": 735854253,
"event_id": "1a8bcd066bbf23306db3403ae621f279",
"sport_id": 4,
"affiliate_id": 19,
"affiliate_name": "Draftkings",
"market_id": 41,
"market_participant_id": 41072680,
"participant_id": 11,
"participant_type": 1,
"period_id": 7,
"line": "Atlanta Hawks",
"price": "-2500.0000",
"previous_price": "-3500.0000",
"implied_probability": 0.9615384615384616,
"move_bps": 107,
"is_main_line": true,
"updated_at": "2026-12-05T02:28:34Z",
"indexed_at": "2026-12-05T02:28:34Z"
}
]
}
Response fields
| Field | Type | Description |
|---|---|---|
meta | object | Response source, freshness, result count and diagnostic metadata. |
meta.source | string | Source used to serve the response. |
meta.as_of | string | Latest included price-update time; the current UTC response time when no price rows contribute. This is not a guaranteed observation or delivery timestamp. |
meta.count | integer | Number of rows returned. |
meta.sport_id | integer | Sport scope for sport/date discovery endpoints. |
meta.date | string | Event date scope. |
meta.date_from | string | UTC lower bound used for the event date scope. |
meta.date_to | string | UTC upper bound used for the event date scope. |
meta.window_minutes | integer | Lookback window used for steamer detection. |
meta.stale | boolean | True when the newest included price update is more than 15 minutes old; quiet books can still have valid unchanged prices. |
meta.warnings | array | Diagnostic notices about fallback reads, unavailable data or the age of the returned prices. Empty results may be accompanied by a warning. |
best | object | Highest-ranked matching open price; omitted when no eligible price is available. |
best.id | integer | Identifier of this price record. Keep it unchanged when linking to the corresponding history resource. |
best.event_id | string | TheRundown event identifier. |
best.sport_id | integer | TheRundown sport or league identifier; see the Sports reference. |
best.affiliate_id | integer | TheRundown sportsbook or exchange affiliate identifier. |
best.affiliate_name | string | Display name of the sportsbook or exchange. |
best.market_id | integer | TheRundown market-definition identifier. |
best.market_participant_id | integer | Identifier of the event-market participant row. |
best.participant_id | integer | Identifier of the team, player or other selection participant. |
best.participant_type | integer | Numeric participant-kind identifier, when supplied. |
best.period_id | integer | Market period identifier; 0 is full game. |
best.line | string | Stored line value or selection label. Exact-line filters compare this string after trimming surrounding whitespace. |
best.price | string | Current quoted odds, American by default; odds_format can return decimal, fractional or probability representations. |
best.previous_price | string | Previous recorded price, when available; represented in the requested odds format. |
best.implied_probability | number | Raw implied win probability calculated from the price, as a fraction from 0 to 1. |
best.move_bps | integer | Absolute implied-probability movement in basis points. |
best.is_main_line | boolean | Whether this is the source book’s current main line for the selection. |
best.updated_at | string | UTC timestamp of the source price update. |
best.closed_at | string | Timestamp when closed. Omitted while open. |
best.indexed_at | string | UTC time the price document was indexed for odds discovery, when supplied. |
best.liquidity_usd | number | Approximate USD resting-order depth reported by the venue (exchange-style sources only: Kalshi, Polymarket). Omitted entirely — never explicit null — when the venue does not report liquidity, which is every traditional sportsbook today. |
all | array | Ranked matching open prices, bounded by the applicable limit parameter. |
all[].id | integer | Identifier of this price record. Keep it unchanged when linking to the corresponding history resource. |
all[].event_id | string | TheRundown event identifier. |
all[].sport_id | integer | TheRundown sport or league identifier; see the Sports reference. |
all[].affiliate_id | integer | TheRundown sportsbook or exchange affiliate identifier. |
all[].affiliate_name | string | Display name of the sportsbook or exchange. |
all[].market_id | integer | TheRundown market-definition identifier. |
all[].market_participant_id | integer | Identifier of the event-market participant row. |
all[].participant_id | integer | Identifier of the team, player or other selection participant. |
all[].participant_type | integer | Numeric participant-kind identifier, when supplied. |
all[].period_id | integer | Market period identifier; 0 is full game. |
all[].line | string | Stored line value or selection label. Exact-line filters compare this string after trimming surrounding whitespace. |
all[].price | string | Current quoted odds, American by default; odds_format can return decimal, fractional or probability representations. |
all[].previous_price | string | Previous recorded price, when available; represented in the requested odds format. |
all[].implied_probability | number | Raw implied win probability calculated from the price, as a fraction from 0 to 1. |
all[].move_bps | integer | Absolute implied-probability movement in basis points. |
all[].is_main_line | boolean | Whether this is the source book’s current main line for the selection. |
all[].updated_at | string | UTC timestamp of the source price update. |
all[].closed_at | string | Timestamp when closed. Omitted while open. |
all[].indexed_at | string | UTC time the price document was indexed for odds discovery, when supplied. |
all[].liquidity_usd | number | Approximate USD resting-order depth reported by the venue (exchange-style sources only: Kalshi, Polymarket). Omitted entirely — never explicit null — when the venue does not report liquidity, which is every traditional sportsbook today. |
Authorizations
Query Parameters
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.
american, decimal, fractional, probability 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).
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.
true, false Response
Successful response. Arrays may be empty when no eligible records match.
BestLine response.