Cross country

In case of Cross country 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:46" name="Cross-Country"/>

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=46 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:13:29+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:46" name="Cross-Country"/>
    <tournaments>
      <tournament id="sr:stage:616555" name="Cross Country 2020/21" scheduled="2020-11-27T11:30:00+00:00" scheduled_end="2021-03-14T16:00:00+00:00">
        <sport id="sr:sport:46" name="Cross-Country"/>
        <category id="sr:category:143" name="Cross-country"/>
      </tournament>
      <tournament id="sr:stage:616577" name="Cross Country 2020/21" scheduled="2020-11-27T11:30:00+00:00" scheduled_end="2021-03-14T16:00:00+00:00">
        <sport id="sr:sport:46" name="Cross-Country"/>
        <category id="sr:category:144" name="Cross-country Women"/>
      </tournament>
      <tournament id="sr:stage:616863" name="World Championships 2021" scheduled="2021-02-25T14:15:00+00:00" scheduled_end="2021-03-07T14:30:00+00:00">
        <sport id="sr:sport:46" name="Cross-Country"/>
        <category id="sr:category:143" name="Cross-country"/>
      </tournament>
      <tournament id="sr:stage:616883" name="World Championships 2021" scheduled="2021-02-25T14:15:00+00:00" scheduled_end="2021-03-06T14:00:00+00:00">
        <sport id="sr:sport:46" name="Cross-Country"/>
        <category id="sr:category:144" name="Cross-country Women"/>
      </tournament>
      <tournament id="sr:stage:711304" name="Cross Country 2021/22" scheduled="2021-11-26T00:00:00+00:00" scheduled_end="2021-03-20T23:55:00+00:00">
        <sport id="sr:sport:46" name="Cross-Country"/>
        <category id="sr:category:143" name="Cross-country"/>
      </tournament>
      <tournament id="sr:stage:711380" name="Cross Country 2021/22" scheduled="2021-11-26T11:30:00+00:00" scheduled_end="2022-03-20T23:00:00+00:00">
        <sport id="sr:sport:46" name="Cross-Country"/>
        <category id="sr:category:144" name="Cross-country 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-07T09:24:35+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:616555" scheduled="2020-11-27T11:30:00+00:00" scheduled_end="2021-03-14T16:00:00+00:00" name="Cross Country 2020/21">
      <sport id="sr:sport:46" name="Cross-Country"/>
      <category id="sr:category:143" name="Cross-country"/>
    </tournament>
    <sport_events>
      <sport_event id="sr:stage:616565" scheduled="2020-11-27T11:30:00+00:00" scheduled_end="2020-11-29T12:50:00+00:00" name="Ruka Triple" type="parent"/>
      <sport_event id="sr:stage:616563" scheduled="2021-01-01T10:45:00+00:00" scheduled_end="2021-01-10T15:35:00+00:00" name="Tour de Ski" type="parent"/>
      <sport_event id="sr:stage:616567" scheduled="2021-03-19T09:15:00+00:00" scheduled_end="2021-03-21T08:10:00+00:00" name="World Cup Final" type="parent"/>
    </sport_events>
  </race_schedule>

As we can see from the answer of the end point, there are more levels of staging and there are 3 parent stage. In order to get more detailed info related to such stages we can filter one of the stages in the fixture end point obtaining the following:

<fixtures_fixture generated_at="2021-10-07T09:31:09.851+00:00" xsi:schemaLocation="http://schemas.sportradar.com/sportsapi/v1/unified 
 http://schemas.sportradar.com/bsa/unified/v1/xml/endpoints/unified/fixtures_fixture.xsd" xmlns="http://schemas.sportradar.com/sportsapi/v1/unified" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <fixture liveodds="not_available" id="sr:stage:616565" name="Ruka Triple" type="parent" stage_type="event" scheduled="2020-11-27T11:30:00+00:00" scheduled_end="2020-11-29T12:50:00+00:00">
    <parent id="sr:stage:616555" name="Cross Country 2020/21" type="parent" stage_type="season"/>
    <tournament id="sr:stage:616555" name="Cross Country 2020/21" scheduled="2020-11-27T11:30:00+00:00" scheduled_end="2021-03-14T16:00:00+00:00">
      <sport id="sr:sport:46" name="Cross-Country"/>
      <category id="sr:category:143" name="Cross-country"/>
    </tournament>
    <competitors>
      <competitor id="sr:competitor:29171" name="Cologna, Dario" abbreviation="COL" gender="male"/>
      <competitor id="sr:competitor:32581" name="Musgrave, Andrew" abbreviation="MUS" gender="male"/>
      <competitor id="sr:competitor:32833" name="Young, Andrew" abbreviation="YOU" gender="male"/>
      <competitor id="sr:competitor:34444" name="Mikkonen, Juho" abbreviation="MIK" gender="male"/>
      <competitor id="sr:competitor:34480" name="Holund, Hans Christer" abbreviation="HOL" gender="male"/>
      <competitor id="sr:competitor:34580" name="Rothe, Sjur" abbreviation="ROE" gender="male"/>
      <competitor id="sr:competitor:39285" name="Katz, Andreas" abbreviation="KAT" gender="male"/>
      <competitor id="sr:competitor:39373" name="Baumann, Jonas" abbreviation="BAU" gender="male"/>
      <competitor id="sr:competitor:39390" name="Hediger, Jovian" abbreviation="HED" gender="male"/>
      <competitor id="sr:competitor:40182" name="Hamilton, Simeon" abbreviation="HAM" gender="male"/>
      <competitor id="sr:competitor:41120" name="Golberg, Paal" abbreviation="GOL" gender="male"/>
      <competitor id="sr:competitor:41122" name="Pellegrino, Federico" abbreviation="PEL" gender="male"/>
      <competitor id="sr:competitor:41157" name="Einarsson, Snorri" abbreviation="EIN" gender="male"/>
      <competitor id="sr:competitor:46354" name="Belov, Evgeniy" abbreviation="BEL" gender="male"/>
      <competitor id="sr:competitor:46359" name="Starega, Maciej" abbreviation="STA" gender="male"/>
      <competitor id="sr:competitor:46737" name="Eisenlauer, Sebastian" abbreviation="EIS" gender="male"/>
      <competitor id="sr:competitor:47613" name="Boegl, Lucas" abbreviation="BOE" gender="male"/>
      <competitor id="sr:competitor:48521" name="Retivykh, Gleb" abbreviation="RET" gender="male"/>
      <competitor id="sr:competitor:49312" name="Skar, Sindre Bjoernestad" abbreviation="SKA" gender="male"/>
      <competitor id="sr:competitor:49788" name="Hyvarinen, Perttu" abbreviation="HYV" gender="male"/>
      <competitor id="sr:competitor:60826" name="Perekhoda, Ruslan" abbreviation="PER" gender="male"/>
      <competitor id="sr:competitor:61218" name="Jay, Renaud" abbreviation="JAY" gender="male"/>
      <competitor id="sr:competitor:61840" name="Dobler, Jonas" abbreviation="DOB" gender="male"/>
      <competitor id="sr:competitor:63098" name="Kilp, Marko" abbreviation="KIL" gender="male"/>
      <competitor id="sr:competitor:63174" name="Toenseth, Didrik" abbreviation="TOE" gender="male"/>
      <competitor id="sr:competitor:64375" name="Fellner, Adam" abbreviation="FEL" gender="male"/>
      <competitor id="sr:competitor:65840" name="Hakola, Ristomatti" abbreviation="HAK" gender="male"/>
      <competitor id="sr:competitor:88750" name="Backscheider, Adrien" abbreviation="BAC" gender="male"/>
      <competitor id="sr:competitor:90508" name="Rastelli, Maicol" abbreviation="RAS" gender="male"/>
      <competitor id="sr:competitor:91050" name="Krasovskyi, Oleksii" abbreviation="KRA" gender="male"/>
      <competitor id="sr:competitor:92258" name="Vuorinen, Lauri" abbreviation="VUO" gender="male"/>
      <competitor id="sr:competitor:92765" name="Krueger, Simen Hegstad" abbreviation="KRU" gender="male"/>
      <competitor id="sr:competitor:133650" name="Iversen, Emil" abbreviation="IVE" gender="male"/>
      <competitor id="sr:competitor:134018" name="Taugboel, Haavard Solaas" abbreviation="TAU" gender="male"/>
      <competitor id="sr:competitor:134490" name="de Fabiani, Francesco" abbreviation="DE" gender="male"/>
      <competitor id="sr:competitor:135146" name="Seller, Ludek" abbreviation="SEL" gender="male"/>
      <competitor id="sr:competitor:142972" name="Maki, Joni" abbreviation="MAK" gender="male"/>
      <competitor id="sr:competitor:142974" name="Svensson, Oskar" abbreviation="SVE" gender="male"/>
      <competitor id="sr:competitor:143172" name="Vokuev, Ermil" abbreviation="VOK" gender="male"/>
      <competitor id="sr:competitor:143176" name="Parisse, Clement" abbreviation="PAR" gender="male"/>
      <competitor id="sr:competitor:143178" name="Notz, Florian" abbreviation="NOT" gender="male"/>
      <competitor id="sr:competitor:186879" name="Rueesch, Jason" abbreviation="RUE" gender="male"/>
      <competitor id="sr:competitor:189216" name="Jouve, Richard" abbreviation="JOU" gender="male"/>
      <competitor id="sr:competitor:192220" name="Ekstrom, Axel" abbreviation="EKS" gender="male"/>
      <competitor id="sr:competitor:194706" name="Chervotkin, Alexey" abbreviation="CHE" gender="male"/>
      <competitor id="sr:competitor:237748" name="Salvadori, Giandomenico" abbreviation="SAL" gender="male"/>
      <competitor id="sr:competitor:238364" name="Chanavat, Lucas" abbreviation="CHA" gender="male"/>
      <competitor id="sr:competitor:240952" name="Chauvin, Valentin" abbreviation="CHA" gender="male"/>
      <competitor id="sr:competitor:241748" name="Novak, Michal" abbreviation="NOV" gender="male"/>
      <competitor id="sr:competitor:241756" name="Patterson, Scott" abbreviation="PAT" gender="male"/>
      <competitor id="sr:competitor:243384" name="Klaebo, Johannes Hoesflot" abbreviation="KLA" gender="male"/>
      <competitor id="sr:competitor:244010" name="Lampic, Janez" abbreviation="LAM" gender="male"/>
      <competitor id="sr:competitor:302078" name="Lepisto, Lauri" abbreviation="LEP" gender="male"/>
      <competitor id="sr:competitor:302080" name="Bury, Dominik" abbreviation="BUR" gender="male"/>
      <competitor id="sr:competitor:303956" name="Maloney Westgaard, Thomas Hjalmar" abbreviation="MAL" gender="male"/>
      <competitor id="sr:competitor:311282" name="Haeggstroem, Johan" abbreviation="HAE" gender="male"/>
      <competitor id="sr:competitor:314041" name="Semikov, Ilia" abbreviation="SEM" gender="male"/>
      <competitor id="sr:competitor:317407" name="Korge, Kaarel Kasper" abbreviation="KOR" gender="male"/>
      <competitor id="sr:competitor:318097" name="Bolshunov, Alexander" abbreviation="BOL" gender="male"/>
      <competitor id="sr:competitor:319083" name="Strolia, Tautvydas" abbreviation="STR" gender="male"/>
      <competitor id="sr:competitor:398434" name="Valnes, Erik" abbreviation="VAL" gender="male"/>
    </competitors>
    <races>
      <sport_event id="sr:stage:616569" type="parent" stage_type="event" scheduled="2020-11-28T11:45:00+00:00"/>
      <sport_event id="sr:stage:616571" type="parent" stage_type="event" scheduled="2020-11-29T11:50:00+00:00"/>
      <sport_event id="sr:stage:616673" type="parent" stage_type="event" scheduled="2020-11-27T11:30:00+00:00"/>
    </races>
  </fixture>
</fixtures_fixture>

Last updated

Was this helpful?