curl --request GET \
--url https://therundown.io/api/v1/lines/{id}/total \
--header 'X-TheRundown-Key: <api-key>'import requests
url = "https://therundown.io/api/v1/lines/{id}/total"
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/v1/lines/{id}/total', 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/v1/lines/{id}/total",
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/v1/lines/{id}/total"
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/v1/lines/{id}/total")
.header("X-TheRundown-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://therundown.io/api/v1/lines/{id}/total")
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{
"totals": [
{
"affiliate_id": 4,
"total_over": 235.5,
"total_over_money": -110,
"total_under": 235.5,
"total_under_money": -110,
"date_updated": "2026-02-11T22:00:00Z"
},
{
"affiliate_id": 19,
"total_over": 234.5,
"total_over_money": -108,
"total_under": 234.5,
"total_under_money": -112,
"date_updated": "2026-02-11T21:30:00Z"
}
]
}Get total (over/under) price history for a line
Read historical total prices for a line ID through the V1 odds API. Review the request parameters and response fields.
curl --request GET \
--url https://therundown.io/api/v1/lines/{id}/total \
--header 'X-TheRundown-Key: <api-key>'import requests
url = "https://therundown.io/api/v1/lines/{id}/total"
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/v1/lines/{id}/total', 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/v1/lines/{id}/total",
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/v1/lines/{id}/total"
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/v1/lines/{id}/total")
.header("X-TheRundown-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://therundown.io/api/v1/lines/{id}/total")
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{
"totals": [
{
"affiliate_id": 4,
"total_over": 235.5,
"total_over_money": -110,
"total_under": 235.5,
"total_under_money": -110,
"date_updated": "2026-02-11T22:00:00Z"
},
{
"affiliate_id": 19,
"total_over": 234.5,
"total_over_money": -108,
"total_under": 234.5,
"total_under_money": -112,
"date_updated": "2026-02-11T21:30:00Z"
}
]
}Authorizations
Path Parameters
Line ID (line_id), not an event ID. Find it in a V1 event response at lines.{affiliate_id}.line_id, or with include=all_periods at line_periods.{affiliate_id}.{period}.moneyline.line_id (every period of a sportsbook's line shares the same line ID). Each line ID belongs to one sportsbook.
Query Parameters
Odds representation for supported REST prices. Omit the parameter or use american to preserve the existing American format. Supported values are american, decimal, fractional, and probability (a 0..1 fraction). Fractional odds are reduced ratio strings. Decimal and probability values preserve the source number or numeric-string type. Nulls, nonnumeric sentinels, off-board values such as 0 and 0.0001, and numeric values with absolute value below 100 remain unchanged. Price-delta fields remain in American-point difference units. Empty, repeated, or unsupported values return HTTP 400. WebSocket messages are unchanged.
american, decimal, fractional, probability Without include, only the pregame full-game price history is returned. With include=all_periods, rows are grouped by period (period_full_game, halves, quarters/periods) and in-play rows are returned under period_live_full_game (live full game, halves, and quarters/periods together; tell them apart by period_id and period_description). Live rows require a subscription with live odds access. Each period returns at most the newest 1,000 rows with no pagination; for full in-play history use GET /api/v2/events/{eventID}/markets/history?market_ids=41,42,43,96 with from/to and limit up to 5000.
all_periods