curl --request GET \
--url https://therundown.io/api/v2/events/{eventID}/markets \
--header 'X-TheRundown-Key: <api-key>'import requests
url = "https://therundown.io/api/v2/events/{eventID}/markets"
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', 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",
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"
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")
.header("X-TheRundown-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://therundown.io/api/v2/events/{eventID}/markets")
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[
{
"id": 1,
"name": "moneyline",
"line_value_is_participant": true,
"proposition": true,
"description": "Moneyline: To win outright",
"short_description": "Moneyline",
"period_id": 0,
"live_variant_id": 41
},
{
"id": 2,
"name": "handicap",
"line_value_is_participant": false,
"proposition": true,
"description": "Spread: Win or lose by margin of points",
"short_description": "Spread",
"period_id": 0,
"live_variant_id": 42
},
{
"id": 3,
"name": "totals",
"line_value_is_participant": false,
"proposition": true,
"description": "Totals: Total points",
"short_description": "Totals",
"period_id": 0,
"live_variant_id": 43
},
{
"id": 29,
"name": "points",
"line_value_is_participant": false,
"proposition": true,
"description": "Points: How many points will this player score?",
"short_description": "Points",
"period_id": 0,
"live_variant_id": 90
}
]Get available markets for an event
List the market definitions available for one event, without prices. Use the returned market IDs with the event endpoint to fetch prices.
curl --request GET \
--url https://therundown.io/api/v2/events/{eventID}/markets \
--header 'X-TheRundown-Key: <api-key>'import requests
url = "https://therundown.io/api/v2/events/{eventID}/markets"
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', 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",
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"
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")
.header("X-TheRundown-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://therundown.io/api/v2/events/{eventID}/markets")
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[
{
"id": 1,
"name": "moneyline",
"line_value_is_participant": true,
"proposition": true,
"description": "Moneyline: To win outright",
"short_description": "Moneyline",
"period_id": 0,
"live_variant_id": 41
},
{
"id": 2,
"name": "handicap",
"line_value_is_participant": false,
"proposition": true,
"description": "Spread: Win or lose by margin of points",
"short_description": "Spread",
"period_id": 0,
"live_variant_id": 42
},
{
"id": 3,
"name": "totals",
"line_value_is_participant": false,
"proposition": true,
"description": "Totals: Total points",
"short_description": "Totals",
"period_id": 0,
"live_variant_id": 43
},
{
"id": 29,
"name": "points",
"line_value_is_participant": false,
"proposition": true,
"description": "Points: How many points will this player score?",
"short_description": "Points",
"period_id": 0,
"live_variant_id": 90
}
]Authorizations
Path Parameters
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 Optional comma-separated catalog class filter: core, prop, future, special. Values are case-sensitive, trimmed, and blank tokens are ignored. Valid values are OR-combined; class and family filters combine with AND. Unknown tokens are ignored, and an all-unknown or blank filter is absent. Uncatalogued markets use class=special for this filter.
Optional comma-separated catalog family filter: moneyline, spread, total, team_total, player_ou, winning_margin, outright_winner, top_scorer, win_total, top_n_finish, make_cut, exact_result, other. Values are case-sensitive, trimmed, and blank tokens are ignored. Valid values are OR-combined; class and family filters combine with AND. Unknown tokens are ignored, and an all-unknown or blank filter is absent. Uncatalogued markets use family=other for this filter.
Response
Available markets