Endpoint

This endpoint returns a list of available categories for a sport. The category is a generic classification term Betradar uses at the highest level to subclassify a particular sport (e.g., for Tennis, the categories can be ATP-Tour, WTA-Tour, David Cup, etc., for soccer, the categories are the various countries)

Endpoint Parameters

You can customize the endpoint response by using the following parameters.

Parameter

Description

Possible Values

language

Required

Language code for translation.

See all supported languages and their codes on language support

id

Required

The id of the sport

Format - {sport_id}

All available categories for a sport

get

List of available categories for a sport. (e.g. for Tennis the categories can be ATP-Tour, WTA-Tour, David Cup etc., for soccer the categories are the various countries). XML schema

Authorizations
Path parameters
languagestringRequired

Language code for translation.

idintegerRequired

The ID for the sport.

Responses
200

successful operation

application/xml
get
GET /v1/sports/{language}/sports/sr:sport:{id}/categories.xml HTTP/1.1
Host: global.api.betradar.com
x-access-token: YOUR_API_KEY
Accept: */*
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sport_categories xmlns="http://schemas.sportradar.com/sportsapi/v1/unified" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated_at="2023-06-22T12:25:37+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:3" name="Baseball"/>
  <categories>
    <category id="sr:category:16" name="USA" country_code="USA"/>
    <category id="sr:category:90" name="Finland" country_code="FIN"/>
    <category id="sr:category:209" name="Austria" country_code="AUT"/>
    <category id="sr:category:210" name="Germany" country_code="DEU"/>
    <category id="sr:category:211" name="Japan" country_code="JPN"/>
    <category id="sr:category:225" name="International"/>
    <category id="sr:category:384" name="Republic of Korea" country_code="KOR"/>
    <category id="sr:category:397" name="Chinese Taipei" country_code="TPE"/>
    <category id="sr:category:426" name="Mexico" country_code="MEX"/>
    <category id="sr:category:430" name="Venezuela" country_code="VEN"/>
    <category id="sr:category:510" name="Italy" country_code="ITA"/>
    <category id="sr:category:551" name="Panama" country_code="PAN"/>
    <category id="sr:category:758" name="Nicaragua" country_code="NIC"/>
    <category id="sr:category:770" name="Dominican Republic" country_code="DOM"/>
    <category id="sr:category:775" name="Australia" country_code="AUS"/>
    <category id="sr:category:853" name="Czech Republic" country_code="CZE"/>
    <category id="sr:category:880" name="Cuba" country_code="CUB"/>
    <category id="sr:category:916" name="Netherlands" country_code="NLD"/>
    <category id="sr:category:940" name="Puerto Rico" country_code="PRI"/>
    <category id="sr:category:1036" name="Russia" country_code="RUS"/>
    <category id="sr:category:1086" name="Colombia" country_code="COL"/>
    <category id="sr:category:1370" name="France" country_code="FRA"/>
    <category id="sr:category:1387" name="Spain" country_code="ESP"/>
    <category id="sr:category:1736" name="Switzerland" country_code="CHE"/>
    <category id="sr:category:1737" name="Norway" country_code="NOR"/>
    <category id="sr:category:1963" name="Virtual Baseball"/>
    <category id="sr:category:1973" name="China" country_code="CHN"/>
    <category id="sr:category:2297" name="El Salvador" country_code="SLV"/>
  </categories>
</sport_categories>

Last updated

Was this helpful?