Golf
Golf is organized into stages as well. Thanks to the "All Sport" end point, it is possible to retrieve the id of the sport which is 9 and retrieve all the stages thanks to the "All avaialble tournament for sport".
The end point provides all the available tournaments for such sport identified via stages.
<?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-11T08:26:08+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:9" name="Golf"/>
<tournaments>
<tournament id="sr:stage:536398" name="European Tour 2020" scheduled="2011-11-28T00:00:00+00:00" scheduled_end="2021-11-22T00:00:00+00:00">
<sport id="sr:sport:9" name="Golf"/>
<category id="sr:category:28" name="Men"/>
</tournament>
<tournament id="sr:stage:538072" name="European Tour 2020" scheduled="2019-11-27T16:00:00+00:00" scheduled_end="2020-12-13T20:00:00+00:00">
<sport id="sr:sport:9" name="Golf"/>
<category id="sr:category:28" name="Men"/>
</tournament>
<tournament id="sr:stage:548947" name="Pga Australia Tour 2019" scheduled="2019-01-01T00:00:00+00:00" scheduled_end="2020-12-31T00:00:00+00:00">
<sport id="sr:sport:9" name="Golf"/>
<category id="sr:category:28" name="Men"/>
</tournament>
<tournament id="sr:stage:553899" name="Lpga Tour 2020" scheduled="2019-12-01T05:00:00+00:00" scheduled_end="2020-11-30T05:00:00+00:00">
<sport id="sr:sport:9" name="Golf"/>
<category id="sr:category:28" name="Men"/>
</tournament>
</tournaments>
</sport_tournaments>
Once all the stages are retrieved, it is possible to filter the stages one by one in the end point "Schedule for a tournament" and get more information.
The scheduled start date and end date are not to be taken into consideration for outrights. Dates related to outrights are sent via the UOF AMQP messages.
<?xml version="1.0" encoding="UTF-8"?>
<race_schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated_at="2021-10-11T08:46:34+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:536398" scheduled="2011-11-28T00:00:00+00:00" scheduled_end="2021-11-22T00:00:00+00:00" name="European Tour 2020">
<sport id="sr:sport:9" name="Golf"/>
<category id="sr:category:28" name="Men"/>
</tournament>
</race_schedule>
Last updated
Was this helpful?