<category>
What does 'category' mean?
The subelement "category" typically identifies a nationality. This element lists the available categories for a sport/ sport ID.
In other words, the category addresses the country where the tournament occurs. However, sometimes category indicates the tournament itself.
Example XML Response Snippet
<category
id="sr:category:1"
name="England"
country_code="ENG"/>
Element Attributes
List of attributes in the category sub-element:
Attribute
Meaning
Possible values
Attribute
Meaning
Possible values
id
Unique ID of the category.
String value
Example: id="sr:category:19"
name
Name of the category/country
String value
Example: name="USA"
country_code
Code of the country.
Note: This is available only when the category is criterion is country.
String value
Example: country_code="USA"
Special Cases
The following covers some special cases where category does not identify the country. Instead, it identifies the tournament.
For Tennis
the category is the recurrent tournament which takes place periodically. In such a case, please note that there is no country_code attribute and the name specifies the name of the tournament.
Here id="sr:category:3" name="ATW", id="sr:category:6" name="WTA", etc identifies the tournament.
<categories>
<category id="sr:category:3" name="АТР" />
<category id="sr:category:6" name="WTA"/>
< category id="sr:category:72" name="Challenger" />
<category id="sr:category:74" name="Federation Cup"/>
<category id="sr:category:76" name="Davis Cup" />
<category id="sr: category:79" name="Exhibition"/>
<category id="sr: category:181" name="Hopman Cup"/>
<category id="sr:category:213" name="ITF Women" />
<category id="sr: category:442" name="Veterans Men"/>
<category id="sr:category:443" name="Veterans Women" />
<category id="sr: name="Atf" name="Atf"/>
<category id="sr:category:785" name="ITF Men" />
<category id="sr: name="WTA name="WTA 125K"/>
2. For Rugby
The category can be a mix of country and the tournaments. In the following example, category = 81, 82, 83 identifies the Rugby tournaments where as category = 162, 174, 451... identify the country
Please note that sport ID (12 for Rugby) is same for all the categories. However, you will have a unique category ID for each category such as Rugby Union, Rugby League, France, Italy, etc.
<sport id="sr: sport:12" name="Rugby" / >
< categories>
<category id="sr: category:81" name="International"/> < category id="sr: category:82" name="Rugby Union"/> ‹category id="sr: category:83" name="Rugby League"/>
<category id="sr: category:162" name="France" country_code="FRA" />
< category id="sr: category:174" name="Italy" country_code="ITA"/>
< category id="sr: category:451" name="Spain" country_code="ESP" />
< category id="sr:category:477" name="Australia" country_code="AUS"/> < category id="sr: category:478" name="Finland" country_code="FIN" /> < category id="sr: category:479" name="New Zealand" country_code="NZL"/>
Last updated
Was this helpful?