Sports Deep Links
Opens the sportsbook directly on a section (Live, Prematch, Results, My bets), a sport, a league, a match, a search or a shared bet. Use it to build your site's sports menu, banners and promotions.
How it works
It is the same mechanism the Sports Widget uses: your links carry the parameters to your sports page, and that page sends them as they are inside extra_data when it launches the game.
Link to your sports page with the parameters you want, for example:
https://yoursite.com/sports?section=live
https://yoursite.com/sports?sport=1
https://yoursite.com/sports?sport=1&country=4&league=147
Your sports page reads those parameters and sends them in extra_data when it launches the game:
"extra_data": { "section": "live" }
The sport uses the Content360 ID, the same for every provider (see Sport IDs). League, country, match and selection are IDs of your provider: you get them from the Sports Widget or from the sportsbook itself. Invalid values are ignored and the sportsbook opens on its home page.
Parameters
Send only the ones you need. If you send several, the most specific destination opens: match, league, sport, search and, last, section. section=live together with sport opens Live for that sport.
| Parameter | Opens | FIRST | Digitain |
|---|---|---|---|
section | A section: live, prematch, results, open-bets (My bets) or history (bet history) | live, prematch, open-bets, history | live, prematch, results, open-bets |
sport | The list of a sport. Takes the Content360 sport ID (see Sport IDs) | Yes | Yes |
league | A league | Yes | Yes, together with sport and country |
country | Country of the league | Not used | Required with league |
event | A match | Yes | Yes, together with type: 1 prematch, 2 live |
odd | A match with that odd already added to the betslip | Yes (selection ID) | No |
search | The search for that text | Yes | Yes |
booking | The betslip of a shared bet | Yes (bet code) | Yes (bet number) |
share_url | Your link to share bets (see below) | Yes | Yes |
extra_data examples
| Destination | extra_data |
|---|---|
| Live | { "section": "live" } |
| Live tennis | { "section": "live", "sport": "3" } |
| My bets | { "section": "open-bets" } |
| Football | { "sport": "1" } |
| La Liga (FIRST) | { "league": "38" } |
| A league (Digitain) | { "sport": "1", "country": "4", "league": "147" } |
| A live match (Digitain) | { "event": "41867425", "type": "2" } |
| A match (FIRST) | { "event": "536910287782334464" } |
| Search | { "search": "Barcelona" } |
Sport IDs
sport takes the Content360 sport ID: it is the same for every provider, and we translate it to your sportsbook's. For example, to open Basketball send { "sport": "2" }.
| ID | Sport |
|---|---|
1 | Football |
2 | Basketball |
3 | Tennis |
4 | Ice hockey |
5 | Table tennis |
6 | Volleyball |
7 | American football |
8 | Baseball |
9 | Futsal |
10 | Handball |
11 | Boxing |
| ID | Sport |
|---|---|
12 | Rugby |
13 | MMA / Combat sports |
14 | Motorsport / Formula 1 |
15 | Darts |
16 | Cricket |
17 | Golf |
18 | Esports |
19 | Virtual sports |
20 | Padel |
21 | Horse racing |
If your provider does not have that sport, the sportsbook opens on its home page. If you need a sport that is not on the list, ask your Content360 contact.
Sharing a bet
The player builds a betslip, taps share and gets a link to your site. Whoever opens it enters the sportsbook with that bet already loaded in the betslip.
Always send share_url in extra_data: the page of your site that opens the sportsbook, with {booking} where the bet code goes. It must be a full URL (https).
"extra_data": {
"share_url": "https://yoursite.com/sports?booking={booking}"
}
When someone opens that link, your sports page reads booking and sends it in extra_data when it launches the game:
"extra_data": {
"booking": "44637",
"share_url": "https://yoursite.com/sports?booking={booking}"
}
The sportsbook generates the code and builds the link with your share_url; there is nothing else to do.