Endpoint
Lists market outcomes for a specific variant of a market, including optional mappings.
Authorizations
Path parameters
languagestringRequiredDefault:
Language code for translation.
en
market_idintegerRequiredDefault:
The ID for the market.
241
variant_urnstringRequiredDefault:
The variant URN.
sr:exact_games:bestof:5
Query parameters
include_mappingsbooleanOptionalDefault:
Choose whether market mappings should be included.
false
Responses
200
successful operation
application/xml
401
Unauthorized
application/json
403
Access denied
application/json
500
Internal server error
application/json
get
GET /v1/descriptions/{language}/markets/{market_id}/variants/{variant_urn} HTTP/1.1
Host: global.api.betradar.com
x-access-token: YOUR_API_KEY
Accept: */*
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<market_descriptions response_code="OK">
<market id="241" name="Exact games" variant="sr:exact_games:bestof:5">
<outcomes>
<outcome id="sr:exact_games:bestof:5:39" name="3"/>
<outcome id="sr:exact_games:bestof:5:40" name="4"/>
<outcome id="sr:exact_games:bestof:5:41" name="5"/>
</outcomes>
<mappings>
<mapping product_id="3" product_ids="3" sport_id="sr:sport:20" market_id="232" valid_for="variant=sr:exact_games:bestof:5">
<mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="99" product_outcome_name="3 sets"/>
<mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="100" product_outcome_name="4 sets"/>
<mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="101" product_outcome_name="5 sets"/>
</mapping>
...
<mapping product_id="1" product_ids="1|4" sport_id="sr:sport:37" market_id="8:25" valid_for="variant=sr:exact_games:bestof:5">
<mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="31" product_outcome_name="3"/>
<mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="32" product_outcome_name="4"/>
<mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="33" product_outcome_name="5"/>
</mapping>
</mappings>
</market>
</market_descriptions>
Last updated
Was this helpful?