Live Json
We are sending 2 types of json on our HTTPS socket stream, 1st = UE (means Updated Event) 2nd = AE (means Available Events) this info is inside of json data.D so data.D can be data.D = UE or data.D = AE
Explanations;
UE = We are sending events updates we have only 1 event on UE so you will keep update feeds by UE
AE = On this we are sending you which events are online, we are sending AE per sport, like AE for soccer AE for Tennis so you can alsı double check which events are on live based on sport. So if one event is not here means also you need to block betslips.
Example Json of UE
{
"D" : "UE",
"sp" : "1",
"ct" : 55,
"bm" : 1,
"fi" : "99072295",
"dt" : "02-22-2021 21:11:33",
"CID" : "57582868",
"MID" : 4106157,
"ei" : "157582868",
"lg" : 17054,
"T1" : {
"n" : "Vittoriosa Stars",
"kit" : {
"id" : 3,
"si" : "#C40010,#C40010",
"so" : "#C40010"
}
},
"T2" : {
"n" : "Marsaxlokk FC",
"kit" : {
"id" : 2,
"si" : "#0000A0,#F0F0F0,#0000A0,#0000A0",
"so" : "#0000A0"
}
},
"cn" : "Malta Challenge League",
"tm" : 5184,
"ps" : 1,
"bl" : 0,
"xy" : "0.08,0",
"pc" : 3,
"sc" : "11002",
"sts" : "On Target=7:2|Off Target=6:3|Attacks=118:104|Dangerous Attacks=75:49|19:30#-1=:|##-1=:|Possession %=:|20210222193000=:|",
"m" : [
{
"id" : "75062377",
"mt" : "252",
"p" : null,
"tm" : 60,
"n" : "1' - 1st Corner - Marsaxlokk FC"
},
{
"id" : "75062670",
"mt" : "255",
"p" : null,
"tm" : 480,
"n" : "8' - 1st Goal - (Marsaxlokk FC) - "
},
{
"id" : "75063688",
"mt" : "252",
"p" : null,
"tm" : 2100,
"n" : "35' - 2nd Corner - Marsaxlokk FC"
},
{
"id" : "75063726",
"mt" : "252",
"p" : null,
"tm" : 2160,
"n" : "36' - 3rd Corner - Marsaxlokk FC"
},
{
"id" : "75063727",
"mt" : "252",
"p" : null,
"tm" : 2160,
"n" : "36' - Race to 3 Corners - Marsaxlokk FC"
},
{
"id" : "75063779",
"mt" : "252",
"p" : null,
"tm" : 2220,
"n" : "37' - 4th Corner - Vittoriosa Stars"
},
{
"id" : "75064093",
"mt" : "1",
"p" : null,
"tm" : 0,
"n" : "Score After First Half - 0-1"
},
{
"id" : "75064669",
"mt" : "252",
"p" : null,
"tm" : 2880,
"n" : "48' - 5th Corner - Vittoriosa Stars"
},
{
"id" : "75064776",
"mt" : "252",
"p" : null,
"tm" : 3060,
"n" : "51' - 6th Corner - Marsaxlokk FC"
},
{
"id" : "75065144",
"mt" : "252",
"p" : null,
"tm" : 3780,
"n" : "63' - 7th Corner - Vittoriosa Stars"
},
{
"id" : "75065166",
"mt" : "252",
"p" : null,
"tm" : 3780,
"n" : "63' - Race to 5 Corners - Marsaxlokk FC"
},
{
"id" : "75065165",
"mt" : "252",
"p" : null,
"tm" : 3780,
"n" : "63' - 8th Corner - Marsaxlokk FC"
},
{
"id" : "75065369",
"mt" : "253",
"p" : null,
"tm" : 4320,
"n" : "72' - 1st Yellow Card - (Marsaxlokk FC)"
},
{
"id" : "75065383",
"mt" : null,
"p" : null,
"tm" : 4320,
"n" : "72' - Missed Penalty - Vittoriosa Stars"
},
{
"id" : "75065531",
"mt" : "253",
"p" : null,
"tm" : 4740,
"n" : "79' - 2nd Yellow Card - (Vittoriosa Stars)"
}
],
"ma" : [
{
"id" : "50246",
"b3i" : "50246",
"bri" : "16",
"lid" : "28",
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "1",
"v" : 8,
"lv" : 7.5,
"b" : 0
},
{
"n" : "X",
"v" : 1.222,
"lv" : 1.2,
"b" : 0
},
{
"n" : "2",
"v" : 7,
"lv" : 6.5,
"b" : 0
}
]
},
{
"id" : "10148",
"b3i" : "10148",
"bri" : "",
"lid" : "90008",
"ha" : 1.5,
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "Over",
"v" : 3.8,
"lv" : 4.1,
"b" : 0
},
{
"n" : "Under",
"v" : 1.25,
"lv" : 1.225,
"b" : 0
}
]
},
{
"id" : "10563",
"b3i" : "10563",
"bri" : "3",
"lid" : "35",
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "1",
"v" : 21,
"b" : 0
},
{
"n" : "2",
"v" : 1.002,
"b" : 0
}
]
},
{
"id" : "10147",
"b3i" : "10147",
"bri" : "6",
"lid" : "1",
"ha" : 1,
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "1",
"v" : 1.925,
"b" : 0
},
{
"n" : "2",
"v" : 1.875,
"b" : 0
}
]
},
{
"id" : "10159",
"b3i" : "10159",
"bri" : "5",
"lid" : "2",
"ha" : 1,
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "1",
"v" : 8,
"lv" : 7.5,
"b" : 0
},
{
"n" : "X",
"v" : 1.222,
"lv" : 1.2,
"b" : 0
},
{
"n" : "2",
"v" : 7,
"lv" : 6.5,
"b" : 0
}
]
},
{
"id" : "101234",
"b3i" : "101234",
"bri" : "24",
"lid" : "4",
"ha" : 1.5,
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "Over",
"v" : 3.75,
"lv" : 4,
"b" : 0
},
{
"n" : "Under",
"v" : 1.25,
"lv" : 1.222,
"b" : 0
}
]
},
{
"id" : "1777",
"b3i" : "1777",
"bri" : "1",
"lid" : "3",
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "1",
"v" : 41,
"lv" : 34,
"b" : 0
},
{
"n" : "X",
"v" : 8,
"lv" : 7.5,
"b" : 0
},
{
"n" : "2",
"v" : 1.083,
"lv" : 1.1,
"b" : 0
}
]
},
{
"id" : "17782",
"b3i" : "17782",
"lid" : "1000",
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "1",
"v" : 6.5,
"lv" : 7,
"b" : 0
},
{
"n" : "No goal",
"v" : 1.25,
"lv" : 1.222,
"b" : 0
},
{
"n" : "2",
"v" : 6.5,
"lv" : 7,
"b" : 0
}
]
},
{
"id" : "10564",
"b3i" : "10564",
"bri" : "",
"lid" : "44",
"bl" : 0,
"re" : 0,
"o" : [
{
"n" : "1",
"v" : 6.5,
"lv" : 7,
"b" : 0
},
{
"n" : "No goal",
"v" : 8,
"lv" : 8.5,
"b" : 1
},
{
"n" : "2",
"v" : 1.1,
"lv" : 1.083,
"b" : 0
}
]
}
],
"stats" : {
"c" : [
3,
5
],
"f" : [
0,
0
],
"o" : [
0,
0
],
"p" : [
1,
0
],
"r" : [
0,
0
],
"t" : [
0,
0
],
"y" : [
1,
1
],
"s" : [
3,
3
],
"g" : [
0,
0
],
"a" : [
0,
1
],
"h1" : [
0,
1
]
},
"pt" : "1614028293815",
"dl2" : 0,
"dl" : 1
}
Explanation
| Parameter | Description |
|---|---|
| data | Data object |
| sp | Sport ID of event |
| ct | Country ID of event |
| ei | Event id |
| D | Data type indicating whether is UE or AE |
| UE = We are sending Updated Event. We have only 1 event on UE so you will keep update feeds by UE AE = On this we are sending you which events are online, |
|
| lg | League id, you can match it to Leagues Dictionary |
| dt | Real updated time of datas(for ex odds,score ...) based on CET |
| pt | Push time of data from OUR servers(timestamp) for timestamp of scores and odds kind of infos please refer to dt |
| PWith pt you can calculate time diff from our server to your front-end to examine total time spent us to your clients. | |
| cn | Competition Name |
| tm | Current time of the event (in seconds). |
| CID | Control ID of event between different providers |
| MID | Map ID to map prelive events and live events. |
| ps | Indicates whether match time is stopped or it is running, |
| e.g. a referee stops the time while there is an injury on the pitch. Value is [0]or[1] | |
| bl | Check whether event blocked or not |
| st | Start date, if available |
| nc | nc is shortcut for Not Calculate.If it is 1 then |
| If we see some risk or broken data risk we send 1 dont calculate any betslip of related even till we send ok | |
| sc | State Code of event you can map it via Live State Codes Dictionary |
| pc | Period Code you can match it to Live Period Codes Dictionary |
| T1.n | Name of Team 1 |
| T1.kit.id | Sport specific kit pattern id. |
| T1.kit.si | Comma separated colors codes for upper part of the outfit (shirts). |
| T1.kit.so | Comma separated colors codes for lower part of the outfit (shorts). |
| T2 | All same like team 1 but this is team 2 |
| stats | Contains parent event related scores/statistics information |
| Period Code you can match it to Live Stat Codes Dictionary | |
| stats."Stat-Code" | Statistics/Scores Code |
| stats."Stat-Code".0 | The first item corresponds to the team1/player1 data |
| stats."Stat-Code".1 | The second item corresponds to the team2/player2 data |
| For instance stats.r.1 = 2 means that second team has two red cards | |
| data -> m | Contains parent event related messages |
| m.mt | [Under development] Message type |
| m.p | [Under development] Event period |
| data -> ma | Contains parent event related betting odds |
| ma.id(this will be removed soon) | Market ID of that market |
| ma.b3i | bm:1 original ID of that market |
| ma.bri | Betradar original ID of that market |
| ma.lid(suggest to use this id) | Live Market ID of that market |
| ma.ha | Additional argument for the betting market explanation, margin or handicap value |
| ma.bl | Is that bet market is blocked ? |
| ma.rm | Is that bet market is removed ? |
| ma.o | Odds of that market |
| fi | Unique provider ID |
| For example bm:1 event ids.It is not mandatory. | |
| dl | Our total process time on milliseconds |
| dl2 | Data from main source to us and then to our stream in seconds |