Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Endpoint

Try the API

Variant descriptions

get

Returns all variant types and the markets they are associated with.

Authorizations
x-access-tokenstringRequired
Path parameters
languagestringRequired

Language code for translation.

Default: en
Responses
200

successful operation

application/xml
get/descriptions/{language}/variants.xml
GET /v1/descriptions/{language}/variants.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"?>
<variant_descriptions response_code="OK">
  <variant id="sr:correct_score:bestof:12">
    <outcomes>
      <outcome id="sr:correct_score:bestof:12:192" name="7:0"/>
      <outcome id="sr:correct_score:bestof:12:193" name="7:1"/>
      <outcome id="sr:correct_score:bestof:12:194" name="7:2"/>
      <outcome id="sr:correct_score:bestof:12:195" name="7:3"/>
      ...
    </outcomes>
    <mappings>
      <mapping product_id="3" product_ids="3" sport_id="sr:sport:22" market_id="374" product_market_id="455">
        <mapping_outcome outcome_id="sr:correct_score:bestof:12:192" product_outcome_id="33" product_outcome_name="7:0"/>
        <mapping_outcome outcome_id="sr:correct_score:bestof:12:193" product_outcome_id="34" product_outcome_name="7:1"/>
        ...
      </mapping>
    </mappings>
  </variant>
  <variant id="sr:point_range:7+">
    <outcomes>
      <outcome id="sr:point_range:7+:1144" name="0-2"/>
      <outcome id="sr:point_range:7+:1145" name="3-4"/>
      ...
    </outcomes>
    <mappings>
      <mapping product_id="1" product_ids="1|4" sport_id="sr:sport:1" market_id="171" product_market_id="8:131">
        <mapping_outcome outcome_id="sr:point_range:7+:1144" product_outcome_id="387" product_outcome_name="0-2"/>
        ...
      </mapping>
    </mappings>
  </variant>
  ... more variants ...
</variant_descriptions>

Last updated

Was this helpful?