Bobsleigh

In case of Bobsleigh 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:45" name="Bobsleigh"/>

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=45 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-07T09:09:55+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:45" name="Bobsleigh"/>
    <tournaments>
      <tournament id="sr:stage:618037" name="Bobsleigh 2020/21" scheduled="2020-11-21T11:45:00+00:00" scheduled_end="2021-01-31T23:55:00+00:00">
        <sport id="sr:sport:45" name="Bobsleigh"/>
        <category id="sr:category:316" name="Bobsleigh"/>
      </tournament>
      <tournament id="sr:stage:644100" name="Bobsleigh 2020/21" scheduled="2020-11-21T07:00:00+00:00" scheduled_end="2021-01-31T23:55:00+00:00">
        <sport id="sr:sport:45" name="Bobsleigh"/>
        <category id="sr:category:319" name="Bobsleigh Women"/>
      </tournament>
      <tournament id="sr:stage:722022" name="Bobsleigh 2021/22" scheduled="2021-11-20T00:00:00+00:00" scheduled_end="2022-01-16T23:55:00+00:00">
        <sport id="sr:sport:45" name="Bobsleigh"/>
        <category id="sr:category:316" name="Bobsleigh"/>
      </tournament>
      <tournament id="sr:stage:722046" name="Bobsleigh 2021/22" scheduled="2021-11-21T00:00:00+00:00" scheduled_end="2022-01-16T23:55:00+00:00">
        <sport id="sr:sport:45" name="Bobsleigh"/>
        <category id="sr:category:319" name="Bobsleigh 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 a 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" or the "fixture" end point 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-07T09:11:21+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:618037" scheduled="2020-11-21T11:45:00+00:00" scheduled_end="2021-01-31T23:55:00+00:00" name="Bobsleigh 2020/21">
      <sport id="sr:sport:45" name="Bobsleigh"/>
      <category id="sr:category:316" name="Bobsleigh"/>
    </tournament>
  </race_schedule>

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?