获取赛事
curl --request GET \
--url 'https://v5.oddspapi.io/zh/fixtures?apiKey='import requests
url = "https://v5.oddspapi.io/zh/fixtures?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/fixtures?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/fixtures?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/fixtures?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/fixtures?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/fixtures?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[
{
"fixtureId": "id1100013270505056",
"status": {
"live": true,
"statusId": 1,
"statusName": "Live"
},
"sport": {
"sportId": 11,
"sportName": "Basketball"
},
"tournament": {
"tournamentId": 132,
"tournamentName": "NBA",
"categoryName": "USA"
},
"season": {
"seasonId": 131631,
"seasonName": "NBA 25/26",
"seasonRound": null
},
"venue": {
"venueId": 6054,
"venueName": "Madison Square Garden",
"venueLocation": "New York, NY, USA"
},
"startTime": 1776729600,
"trueStartTime": "2026-04-21T00:09:08+00:00",
"trueEndTime": null,
"participants": {
"participant1Id": 3421,
"participant1RotNr": 303,
"participant1Name": "New York Knicks",
"participant1ShortName": "New York",
"participant1Abbr": "NYK",
"participant2Id": 3423,
"participant2RotNr": 302,
"participant2Name": "Atlanta Hawks",
"participant2ShortName": "Atlanta",
"participant2Abbr": "ATL"
},
"scores": {
"p1": {
"period": "p1",
"participant1Score": 32,
"participant2Score": 23,
"updatedAt": "2026-04-21T00:59:42.287458+00:00"
},
"p2": {
"period": "p2",
"participant1Score": 29,
"participant2Score": 31,
"updatedAt": "2026-04-21T01:25:05.532295+00:00"
},
"result": {
"period": "result",
"participant1Score": 61,
"participant2Score": 54,
"updatedAt": "2026-04-21T01:24:37.154297+00:00"
}
},
"clock": {
"currentPeriod": null,
"currentTime": null,
"remainingTime": null,
"remainingTimeInPeriod": null,
"stopped": null
},
"expectedPeriods": 4,
"periodLength": 12,
"externalProviders": {
"betgeniusId": 13808265,
"betradarId": 70505056,
"flashscoreId": "nTPkYS3K",
"mollybetId": "2026-04-21,29093,29096",
"oddinId": null,
"opticoddsId": "20260421A1AB4678",
"pinnacleId": 1628730839,
"sofascoreId": 15935017,
"lsportsId": null,
"txoddsId": null
},
"bookmakers": {}
}
]fixtures
获取赛事
列出赛事。
查询模式:fixtureIds 或过滤器(sportId、tournamentId、statusId、可选时间范围)。
如果提供 bookmakers,则包含博彩公司元数据,结果可能按映射可用性过滤。
GET
/
fixtures
获取赛事
curl --request GET \
--url 'https://v5.oddspapi.io/zh/fixtures?apiKey='import requests
url = "https://v5.oddspapi.io/zh/fixtures?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/fixtures?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/fixtures?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/fixtures?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/fixtures?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/fixtures?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[
{
"fixtureId": "id1100013270505056",
"status": {
"live": true,
"statusId": 1,
"statusName": "Live"
},
"sport": {
"sportId": 11,
"sportName": "Basketball"
},
"tournament": {
"tournamentId": 132,
"tournamentName": "NBA",
"categoryName": "USA"
},
"season": {
"seasonId": 131631,
"seasonName": "NBA 25/26",
"seasonRound": null
},
"venue": {
"venueId": 6054,
"venueName": "Madison Square Garden",
"venueLocation": "New York, NY, USA"
},
"startTime": 1776729600,
"trueStartTime": "2026-04-21T00:09:08+00:00",
"trueEndTime": null,
"participants": {
"participant1Id": 3421,
"participant1RotNr": 303,
"participant1Name": "New York Knicks",
"participant1ShortName": "New York",
"participant1Abbr": "NYK",
"participant2Id": 3423,
"participant2RotNr": 302,
"participant2Name": "Atlanta Hawks",
"participant2ShortName": "Atlanta",
"participant2Abbr": "ATL"
},
"scores": {
"p1": {
"period": "p1",
"participant1Score": 32,
"participant2Score": 23,
"updatedAt": "2026-04-21T00:59:42.287458+00:00"
},
"p2": {
"period": "p2",
"participant1Score": 29,
"participant2Score": 31,
"updatedAt": "2026-04-21T01:25:05.532295+00:00"
},
"result": {
"period": "result",
"participant1Score": 61,
"participant2Score": 54,
"updatedAt": "2026-04-21T01:24:37.154297+00:00"
}
},
"clock": {
"currentPeriod": null,
"currentTime": null,
"remainingTime": null,
"remainingTimeInPeriod": null,
"stopped": null
},
"expectedPeriods": 4,
"periodLength": 12,
"externalProviders": {
"betgeniusId": 13808265,
"betradarId": 70505056,
"flashscoreId": "nTPkYS3K",
"mollybetId": "2026-04-21,29093,29096",
"oddinId": null,
"opticoddsId": "20260421A1AB4678",
"pinnacleId": 1628730839,
"sofascoreId": 15935017,
"lsportsId": null,
"txoddsId": null
},
"bookmakers": {}
}
]授权
Your API key (query-based auth for v5).
查询参数
Comma/space-separated fixture IDs (fast path).
Single sport ID.
Single tournament ID.
Comma/space-separated bookmaker slugs. If present (even empty), includes bookmaker META and filters by mapping.
Start time from (epoch seconds).
Start time to (epoch seconds).
响应
Returns Fixture[] (fixture meta objects)
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
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I