Get participants
curl --request GET \
--url https://api.4casters.io/exchange/getParticipants \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.4casters.io/exchange/getParticipants"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.4casters.io/exchange/getParticipants', 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://api.4casters.io/exchange/getParticipants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.4casters.io/exchange/getParticipants"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.4casters.io/exchange/getParticipants")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.4casters.io/exchange/getParticipants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"participants": [
{
"participantID": "<string>",
"longName": "<string>",
"shortName": "<string>",
"league": "<string>",
"sport": "<string>"
}
]
}
}Mercados
Obtener participantes
Lista equipos, jugadores y lados de futuros
GET
/
exchange
/
getParticipants
Get participants
curl --request GET \
--url https://api.4casters.io/exchange/getParticipants \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.4casters.io/exchange/getParticipants"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.4casters.io/exchange/getParticipants', 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://api.4casters.io/exchange/getParticipants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.4casters.io/exchange/getParticipants"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.4casters.io/exchange/getParticipants")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.4casters.io/exchange/getParticipants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"participants": [
{
"participantID": "<string>",
"longName": "<string>",
"shortName": "<string>",
"league": "<string>",
"sport": "<string>"
}
]
}
}Devuelve una lista deduplicada de participantes — equipos, jugadores, lados de futuros — en todo el intercambio. Usa los valores
participantID de este endpoint como campo side al colocar órdenes moneyline o spread.
Solicitud
GET /exchange/getParticipants
string
Cuando
active=true, restringe la respuesta a participantes de juegos que empiezan en el futuro. Cuando active=false (o se omite), devuelve participantes de todos los juegos.curl "https://api.4casters.io/exchange/getParticipants?active=true" \
-H "Authorization: Bearer YOUR_TOKEN"
Respuesta
array
Ejemplo
{
"data": {
"participants": [
{
"participantID": "6021801d14a2fe0012fa0c62",
"longName": "Harold Varner III",
"shortName": "Varner",
"league": "PGA",
"sport": "golf"
}
]
}
}
Autorizaciones
Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.
Parámetros de consulta
When true, only return participants of games starting in the future.
Opciones disponibles:
true, false Respuesta
Participants list
Show child attributes
Show child attributes
¿Esta página le ayudó?