获取博彩公司
curl --request GET \
--url 'https://v5.oddspapi.io/zh/bookmakers?apiKey='import requests
url = "https://v5.oddspapi.io/zh/bookmakers?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/bookmakers?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/bookmakers?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/bookmakers?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/bookmakers?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/bookmakers?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[
{
"slug": "188bet",
"bookmakerName": "188BET",
"active": true,
"domain": "https://188bet.com",
"serverGroup": "at4",
"price": 10,
"websocketPregame": true,
"websocketLive": false,
"maxDelayPregameInSec": 80,
"maxDelayPregameMainInSec": 60,
"availableCountries": [
"ag",
"al",
"am",
"ar",
"at"
]
},
{
"slug": "1xbet",
"bookmakerName": "1xBet",
"active": true,
"domain": "https://1xbet.com",
"serverGroup": "de4",
"price": 10,
"websocketPregame": true,
"websocketLive": true,
"maxDelayPregameInSec": 30,
"maxDelayLiveInSec": 4,
"maxDelayPregameMainInSec": 6,
"availableCountries": [
"bo",
"kr",
"tn",
"in"
]
}
]common
获取博彩公司
列出博彩公司。
返回提供的apiKey可用的博彩公司目录。
查询模式:bookmakers(可选过滤列表)+ playerProps(可选功能过滤)。
GET
/
bookmakers
获取博彩公司
curl --request GET \
--url 'https://v5.oddspapi.io/zh/bookmakers?apiKey='import requests
url = "https://v5.oddspapi.io/zh/bookmakers?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/bookmakers?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/bookmakers?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/bookmakers?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/bookmakers?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/bookmakers?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[
{
"slug": "188bet",
"bookmakerName": "188BET",
"active": true,
"domain": "https://188bet.com",
"serverGroup": "at4",
"price": 10,
"websocketPregame": true,
"websocketLive": false,
"maxDelayPregameInSec": 80,
"maxDelayPregameMainInSec": 60,
"availableCountries": [
"ag",
"al",
"am",
"ar",
"at"
]
},
{
"slug": "1xbet",
"bookmakerName": "1xBet",
"active": true,
"domain": "https://1xbet.com",
"serverGroup": "de4",
"price": 10,
"websocketPregame": true,
"websocketLive": true,
"maxDelayPregameInSec": 30,
"maxDelayLiveInSec": 4,
"maxDelayPregameMainInSec": 6,
"availableCountries": [
"bo",
"kr",
"tn",
"in"
]
}
]授权
Your API key (query-based auth for v5).
查询参数
逗号或空格分隔的博彩公司标识。支持*/all作为通配符。
如果为true,仅返回支持球员投注盘口的博彩公司。
响应
返回 Bookmaker[]
⌘I