获取期货
curl --request GET \
--url 'https://v5.oddspapi.io/zh/futures?apiKey='import requests
url = "https://v5.oddspapi.io/zh/futures?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/futures?apiKey=', 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://v5.oddspapi.io/zh/futures?apiKey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://v5.oddspapi.io/zh/futures?apiKey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://v5.oddspapi.io/zh/futures?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/futures?apiKey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"futureId": "pm6980037088158379224",
"status": {
"live": true,
"statusId": 1,
"statusName": "Live"
},
"sport": {
"sportId": 69,
"sportName": "Politics"
},
"tournament": {
"tournamentId": 800370,
"tournamentName": "2025 Predictions",
"categoryName": "Politics"
},
"season": {
"seasonId": 8815837922,
"seasonName": "Macron out by...?"
},
"startTime": 1735932904,
"endTime": 1782820800,
"market": {
"marketId": 4,
"marketName": null,
"marketType": null
},
"participants": [],
"externalProviders": {
"betradarId": null,
"flashscoreId": null,
"opticoddsId": null,
"polymarketId": "16263",
"kalshiId": null,
"sofascoreId": null
},
"bookmakers": {}
}
]futures
获取期货
列出期货。
查询模式:futureIds 或 sportId 或 tournamentId(至少一个)。
GET
/
futures
获取期货
curl --request GET \
--url 'https://v5.oddspapi.io/zh/futures?apiKey='import requests
url = "https://v5.oddspapi.io/zh/futures?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/futures?apiKey=', 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://v5.oddspapi.io/zh/futures?apiKey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://v5.oddspapi.io/zh/futures?apiKey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://v5.oddspapi.io/zh/futures?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/futures?apiKey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"futureId": "pm6980037088158379224",
"status": {
"live": true,
"statusId": 1,
"statusName": "Live"
},
"sport": {
"sportId": 69,
"sportName": "Politics"
},
"tournament": {
"tournamentId": 800370,
"tournamentName": "2025 Predictions",
"categoryName": "Politics"
},
"season": {
"seasonId": 8815837922,
"seasonName": "Macron out by...?"
},
"startTime": 1735932904,
"endTime": 1782820800,
"market": {
"marketId": 4,
"marketName": null,
"marketType": null
},
"participants": [],
"externalProviders": {
"betradarId": null,
"flashscoreId": null,
"opticoddsId": null,
"polymarketId": "16263",
"kalshiId": null,
"sofascoreId": null
},
"bookmakers": {}
}
]授权
Your API key (query-based auth for v5).
查询参数
Comma-separated internal future IDs.
Single sport ID.
Single tournament ID.
If provided, includes bookmakers meta per future.
响应
Returns FutureMeta[]
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
List of participants (teams/players) competing in this futures market.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I