Biathlon
In case of Biathlon the structure is organized into stages.
To retrieve details related to Biathlon events, it is necessary to start with retrieving the sport id in the "All sport" end point.
<sport id="sr:sport:44" name="Biathlon"/> Once we have the id of the sport we can use it in the end point "All available tournament for a sport" filtering by using sport id=44 and we can get the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sport_tournaments xmlns="http://schemas.sportradar.com/sportsapi/v1/unified" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
generated_at="2021-10-06T15:23:20+00:00" xsi:schemaLocation="http://schemas.sportradar.com/sportsapi/v1/unified http://schemas.sportradar.com/ufsportsapi/v1/endpoints/unified/ufsportsapi.xsd">
<sport id="sr:sport:44" name="Biathlon"/>
<tournaments>
<tournament id="sr:stage:604139" name="Biathlon 2020/21" scheduled="2020-11-28T10:00:00+00:00" scheduled_end="2021-03-21T15:30:00+00:00">
<sport id="sr:sport:44" name="Biathlon"/>
<category id="sr:category:141" name="Biathlon"/>
</tournament>
<tournament id="sr:stage:604153" name="Biathlon 2020/21" scheduled="2020-11-28T13:20:00+00:00" scheduled_end="2021-03-21T13:00:00+00:00">
<sport id="sr:sport:44" name="Biathlon"/>
<category id="sr:category:142" name="Biathlon Women"/>
</tournament>
</tournaments>
</sport_tournaments>
As we can see filtering the sport in the end point provides the list of all the stages related to such sport with start and end date of the competition.
In order to get more detailed information related to the stages, we need to use the end point "schedule for a tournament" filtering by stage and we obtain the following:
<?xml version="1.0" encoding="UTF-8"?>
<race_schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated_at="2021-10-07T08:54:12+00:00" xmlns="http://schemas.sportradar.com/sportsapi/v1/unified"
xsi:schemaLocation="http://schemas.sportradar.com/sportsapi/v1/unified http://schemas.sportradar.com/bsa/unified/v1/xml/endpoints/unified/race_schedule.xsd">
<tournament id="sr:stage:604139" scheduled="2020-11-28T10:00:00+00:00" scheduled_end="2021-03-21T15:30:00+00:00" name="Biathlon 2020/21">
<sport id="sr:sport:44" name="Biathlon"/>
<category id="sr:category:141" name="Biathlon"/>
</tournament>
In this case, though the structure is organized into stages there are no sublevels, that's the reason why the type of the stage (if parent or child) does not need to be specified.
Last updated
Was this helpful?