curl --request GET \
--url https://therundown.io/api/v2/events/{eventID}/markets/history \
--header 'X-TheRundown-Key: <api-key>'import requests
url = "https://therundown.io/api/v2/events/{eventID}/markets/history"
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/events/{eventID}/markets/history', 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/events/{eventID}/markets/history",
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/events/{eventID}/markets/history"
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/events/{eventID}/markets/history")
.header("X-TheRundown-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://therundown.io/api/v2/events/{eventID}/markets/history")
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": {
"event_id": "09bfa53f8484a63e584398545c035932",
"count": 2
},
"history": [
{
"id": 500002,
"market_line_price_id": 192868821,
"event_id": "09bfa53f8484a63e584398545c035932",
"sport_id": 4,
"affiliate_id": 19,
"market_participant_id": 45001,
"market_id": 1,
"line": "",
"price": "-110",
"previous_price": "-105",
"change_type": "price",
"updated_at": "2026-02-11T09:30:00Z",
"is_main_line": true
},
{
"id": 500001,
"market_line_price_id": 192868821,
"event_id": "09bfa53f8484a63e584398545c035932",
"sport_id": 4,
"affiliate_id": 19,
"market_participant_id": 45001,
"market_id": 1,
"line": "",
"price": "-105",
"change_type": "open",
"updated_at": "2026-02-10T14:00:00Z",
"is_main_line": true
}
]
}Get market price history for an event
Read recorded price changes for one event. Pass one to three distinct sportsbook IDs; availability and lookback depend on the API plan.
curl --request GET \
--url https://therundown.io/api/v2/events/{eventID}/markets/history \
--header 'X-TheRundown-Key: <api-key>'import requests
url = "https://therundown.io/api/v2/events/{eventID}/markets/history"
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/events/{eventID}/markets/history', 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/events/{eventID}/markets/history",
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/events/{eventID}/markets/history"
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/events/{eventID}/markets/history")
.header("X-TheRundown-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://therundown.io/api/v2/events/{eventID}/markets/history")
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": {
"event_id": "09bfa53f8484a63e584398545c035932",
"count": 2
},
"history": [
{
"id": 500002,
"market_line_price_id": 192868821,
"event_id": "09bfa53f8484a63e584398545c035932",
"sport_id": 4,
"affiliate_id": 19,
"market_participant_id": 45001,
"market_id": 1,
"line": "",
"price": "-110",
"previous_price": "-105",
"change_type": "price",
"updated_at": "2026-02-11T09:30:00Z",
"is_main_line": true
},
{
"id": 500001,
"market_line_price_id": 192868821,
"event_id": "09bfa53f8484a63e584398545c035932",
"sport_id": 4,
"affiliate_id": 19,
"market_participant_id": 45001,
"market_id": 1,
"line": "",
"price": "-105",
"change_type": "open",
"updated_at": "2026-02-10T14:00:00Z",
"is_main_line": true
}
]
}affiliate_ids is required on this endpoint. The parameter table marks it required. Pass 1 to 3 sportsbook ids (19, 19,23, or 19,23,22). Repeated ids count once.
Omitting the parameter, a blank value, 0, or a non-numeric id returns HTTP 400: affiliate_ids is required; pass 1 to 3 sportsbook ids.
More than 3 distinct ids returns HTTP 400: affiliate_ids accepts at most 3 sportsbook ids per request.
The request is rejected before any history read. affiliate_ids=0 is not a scores-only sentinel here. market_ids still defaults to 1,2,3 (maximum 12).
Endpoint details
Returns recorded price changes for the requested markets and sportsbooks, subject to your plan’s historical-data access. Data can be available before, during, or after an event as prices are recorded. Each response is bounded by the requested limit.affiliate_ids is required on this endpoint. Pass 1 to 3 sportsbook ids, for example 19, 19,23, or 19,23,22. Repeated ids count once. Omitting the parameter, a blank value, 0, or a non-numeric id returns HTTP 400: affiliate_ids is required; pass 1 to 3 sportsbook ids. More than 3 distinct ids returns HTTP 400: affiliate_ids accepts at most 3 sportsbook ids per request. The request is rejected before any history read. affiliate_ids=0 is not a scores-only sentinel here.Authorizations
Recommended API key request header for new integrations
Path Parameters
Canonical V2 event ID from the event_id field returned by event endpoints
Query Parameters
Comma-separated market IDs to filter. Defaults to 1,2,3; maximum 12. Filtered literally, so live IDs are not added automatically; pass 41,42,43,96 for in-play history (for example 1,2,3,41,42,43,96).
Required. 1 to 3 comma-separated sportsbook ids. Examples: 19 (DraftKings), 19,23 (DraftKings and FanDuel), or 19,23,22 (DraftKings, FanDuel, and BetMGM). Repeated ids count once.
Missing, blank, 0, or a non-numeric id returns HTTP 400 with affiliate_ids is required; pass 1 to 3 sportsbook ids. More than 3 distinct ids returns HTTP 400 with affiliate_ids accepts at most 3 sportsbook ids per request. This endpoint does not treat affiliate_ids=0 as a scores-only sentinel.
Inclusive start time (RFC3339)
Inclusive end time (RFC3339)
Maximum total rows across all requested markets and sportsbooks. Invalid or out-of-range values use 1000.
x <= 5000When true, return only history rows (or chart points) that were the sportsbook's main line when written: is_main_line = true on history rows, m = true on chart points. Sorted by time, each change of the line value for a participant is a main-line move at that timestamp.
true, false