Cycling

In case of Cycling the structure is organized into stages.

To retrieve details related to Cycling events, it is necessary to start with retrieving the sport id in the "All sport" end point.

<sport id="sr:sport:17" name="Cycling"/>

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=17 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-08T10:20:07+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:17" name="Cycling"/>
    <tournaments>
      <tournament id="sr:stage:537016" name="Cycling Men 2020" scheduled="2020-01-01T00:00:00+00:00" scheduled_end="2020-12-31T00:00:00+00:00">
        <sport id="sr:sport:17" name="Cycling"/>
        <category id="sr:category:96" name="International"/>
      </tournament>
      <tournament id="sr:stage:604213" name="Cycling Women 2020" scheduled="2020-02-01T00:00:00+00:00" scheduled_end="2020-10-25T00:00:00+00:00">
        <sport id="sr:sport:17" name="Cycling"/>
        <category id="sr:category:96" name="International"/>
      </tournament>
      <tournament id="sr:stage:635575" name="Cycling Men 2021" scheduled="2021-02-21T08:25:00+00:00" scheduled_end="2021-10-19T23:00:00+00:00">
        <sport id="sr:sport:17" name="Cycling"/>
        <category id="sr:category:96" name="International"/>
      </tournament>
      <tournament id="sr:stage:637877" name="Cycling Women 2021" scheduled="2021-01-30T00:00:00+00:00" scheduled_end="2021-10-23T23:00:00+00:00">
        <sport id="sr:sport:17" name="Cycling"/>
        <category id="sr:category:96" name="International"/>
      </tournament>
      <tournament id="sr:stage:724688" name="Cycling Men 2022" scheduled="2022-01-18T00:00:00+00:00" scheduled_end="2022-10-18T23:55:00+00:00">
        <sport id="sr:sport:17" name="Cycling"/>
        <category id="sr:category:96" name="International"/>
      </tournament>
      <tournament id="sr:stage:726694" name="Cycling Women 2022" scheduled="2022-01-29T00:00:00+00:00" scheduled_end="2022-10-18T23:55:00+00:00">
        <sport id="sr:sport:17" name="Cycling"/>
        <category id="sr:category:96" name="International"/>
      </tournament>
    </tournaments>

In this case, it seems there are no parenting stages to investigate further therefore, in order to get more info related to one of the stages it is necessary to filter them in the fixture end point.



<tournament_info generated_at="2021-10-08T10:28:22.089+00:00" xsi:schemaLocation="http://schemas.sportradar.com/sportsapi/v1/unified 
http://schemas.sportradar.com/bsa/unified/v1/xml/endpoints/unified/tournament_info.xsd" xmlns="http://schemas.sportradar.com/sportsapi/v1/unified" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <tournament id="sr:stage:537016" name="Cycling Men" scheduled="2020-01-01T00:00:00+00:00" scheduled_end="2020-12-31T00:00:00+00:00">
    <sport id="sr:sport:17" name="Cycling"/>
    <category id="sr:category:96" name="International"/>
  </tournament>
  <coverage_info live_coverage="false"/>
</tournament_info>

Last updated

Was this helpful?