Endpoint

All available seasons for tournament

get

Get all available seasons for a specific tournament. If you search for a tournament, you get all the seasons for this tournament. If you search for a season, you get all the seasons for this season's parent tournament.

Authorizations
Path parameters
languagestringRequired

Language code for translation.

urn_typestring · enumRequired

Choose if you want to look up the available seasons based on a tournament or a season.

Possible values:
idintegerRequired

The ID of the tournament or the season.

Responses
200

successful operation

application/xml
get
GET /v1/sports/{language}/tournaments/sr:{urn_type}:{id}/seasons.xml HTTP/1.1
Host: global.api.betradar.com
x-access-token: YOUR_API_KEY
Accept: */*
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tournament_seasons xmlns="http://schemas.sportradar.com/sportsapi/v1/unified" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated_at="2023-06-22T21:58:21+00:00" xsi:schemaLocation="http://schemas.sportradar.com/sportsapi/v1/unified http://schemas.sportradar.com/ufsportsapi/v1/endpoints/unified/ufsportsapi.xsd">
  <tournament id="sr:tournament:17" name="Premier League">
    <sport id="sr:sport:1" name="Soccer"/>
    <category id="sr:category:1" name="England" country_code="ENG"/>
  </tournament>
  <seasons>
    <season start_date="1993-08-14" end_date="1994-05-09" year="93/94" tournament_id="sr:tournament:17" id="sr:season:55" name="Premier League 93/94"/>
    <season start_date="1994-08-20" end_date="1995-05-14" year="94/95" tournament_id="sr:tournament:17" id="sr:season:54" name="Premier League 94/95"/>
    ...
    <season start_date="2023-08-11" end_date="2024-05-19" year="23/24" tournament_id="sr:tournament:17" id="sr:season:105353" name="Premier League 23/24"/>
  </seasons>
</tournament_seasons>

Last updated

Was this helpful?