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

Available Selections

Try the API

Available selections

get

Retrieve all available markets and outcomes for a given sport event. Response is returned in XML format.

Authorizations
x-access-tokenstringRequired
Path parameters
urn_typestring · enumRequired

The event type.

Example: sr:matchPossible values:
idintegerRequired

ID of the event.

Responses
200

Successful operation

application/xml
get/custombet/{urn_type}:{id}/available_selections
GET /v1/custombet/{urn_type}:{id}/available_selections HTTP/1.1
Host: api.betradar.com
x-access-token: YOUR_API_KEY
Accept: */*
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<available_selections xmlns="http://schemas.sportradar.com/custombet/v1/endpoints" generated_at="2019-05-06T12:34:49+00:00">
    <event id="sr:match:14736961">
        <markets>
            <market id="14" specifiers="hcp=1:0">
                <outcome id="1711"/>
                <outcome id="1712"/>
                <outcome id="1713"/>
            </market>
            <market id="26">
                <outcome id="70"/>
                <outcome id="72"/>
            </market>
            <market id="65" specifiers="hcp=0:1">
                <outcome id="1711"/>
                <outcome id="1712"/>
                <outcome id="1713"/>
            </market>
            <market id="90" specifiers="total=0.5">
                <outcome id="12"/>
                <outcome id="13"/>
            </market>
            <market id="91" specifiers="total=1.5">
                <outcome id="12"/>
                <outcome id="13"/>
            </market>
            <market id="25" specifiers="variant=sr:goal_range:7+">
                <outcome id="sr:goal_range:7+:1344"/>
                <outcome id="sr:goal_range:7+:1345"/>
                <outcome id="sr:goal_range:7+:1342"/>
                <outcome id="sr:goal_range:7+:1343"/>
            </market>
        </markets>
    </event>
</available_selections>

Request Parameters

Parameter
Type
Required
Description
Example

urn_type

string

Yes

The event type

sr:match

id

int

Yes

ID of the event

6623456

Response

Element
Description
Attribute(s)
Attribute Description
Possible Values

available_selections

Root element

xmlns

XML namespace.

Always http://schemas.sportradar.com/custombet/v1/endpoints

generated_at

Date and time of generated response in ISO 8601 format.

2019-05-06T12:34:49+00:00

event

Element containing event-specific attributes.

id

This id represents a unique match.

sr:match:12345

markets

Element containing all markets for a specific event.

-

-

-

market

Element containing all outcomes for a market.

id

The unique id for a specific market.

Integer value: • 18 • 26 • 551

specifiers (optional)

Specifiers are a way to uniquely identify a market with additional parameters together with the market id.

Example: specifiers="total=1.5" and outcomes "under 1.5" or "over 1.5".

outcome

Element containing a unique outcome id for a market.

id

The identifier of a unique outcome within a specific market.

Integer or string value: • 12 • 70 • sr:goal_range:7+-1343sr:player:123456

Last updated

Was this helpful?