Search K
Appearance
Gets a list with tournaments.
Number of items per page
50
Current page
1
iso country. For F1/Moto use "world"
WORLD
date start
2022-07-10
date stop
2023-12-30
Enum: soccer, motorsport, tennis, rugby, darts, horseracing, boxing, other, motogp, formula1, cricket, basketball, combatsport, icehockey, nba, nfl, mlb, watersport, dtm, indycar, superbike, padel
formula1
Enum: cup, league, oneoff
league
tournament name
Formula 1
flexible search query for tournament names
Premier League
Season, for example 2024 or 24/25 depending on sport type
2023
8a8bd5e3d98347e68cbe50d31953fcbb_trn
curl -X GET \
'https://api.xs2event.com/v1/tournaments?region=WORLD&date_start=2022-07-10&date_stop=2023-12-30&sport_type=formula1&tournament_type=league&tournament_name=Formula+1&query=Premier+League&season=2023&tournament_id=8a8bd5e3d98347e68cbe50d31953fcbb_trn' \
-H "Content-Type: application/json"
fetch('https://api.xs2event.com/v1/tournaments?region=WORLD&date_start=2022-07-10&date_stop=2023-12-30&sport_type=formula1&tournament_type=league&tournament_name=Formula+1&query=Premier+League&season=2023&tournament_id=8a8bd5e3d98347e68cbe50d31953fcbb_trn', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'https://api.xs2event.com/v1/tournaments';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$query = http_build_query([
'region' => 'WORLD',
'date_start' => '2022-07-10',
'date_stop' => '2023-12-30',
'sport_type' => 'formula1',
'tournament_type' => 'league',
'tournament_name' => 'Formula 1',
'query' => 'Premier League',
'season' => '2023',
'tournament_id' => '8a8bd5e3d98347e68cbe50d31953fcbb_trn',
]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . $query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'https://api.xs2event.com/v1/tournaments'
params = {
'region': 'WORLD',
'date_start': '2022-07-10',
'date_stop': '2023-12-30',
'sport_type': 'formula1',
'tournament_type': 'league',
'tournament_name': 'Formula 1',
'query': 'Premier League',
'season': '2023',
'tournament_id': '8a8bd5e3d98347e68cbe50d31953fcbb_trn'
}
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, params=params, headers=headers)
print(response.json())