TBS Apps API

<back to all web services

LiveSportRequestV2

The following routes are available for this service:
GET,POST/LiveSportV2Gets Live Sports Master Category Data. Sports master categories can be thought of as 'Leagues'Gets Live Master Category Data. Sports master categories can be thought of as 'Leagues'. Ex: Soccer - EPL
LiveSportRequestV2 Parameters:
NameParameterData TypeRequiredDescription
WithLevelledMarketsbodyboolNoHas Levelled Markets, pass true to get event/market data
EventClassCodebodystringNoOptional value for filter the event class code ex: First Team to Score, Half-time Result
EventTypeIdbodyintNoEvent Type ID ex: 107-Basketball
WithPopularMarketCategoryLinksbodyboolNoReturns popular market category links when true
LiveSportResponseV2 Parameters:
NameParameterData TypeRequiredDescription
EventTypeDescformstringNo
EventTypeIdformintNo
MasterCategoriesformList<MasterCategoryGroupedItemMasterCategory>No
MasterCategoryGroupedItemMasterCategory Parameters:
NameParameterData TypeRequiredDescription
MasterCategoryIdformintNo
MasterCategoryformstringNo
CategoriesformList<MasterCategoryGroupedItemCategory>No
MasterCategoryGroupedItemCategory Parameters:
NameParameterData TypeRequiredDescription
CategoryIdformintNo
CategoryNameformstringNo
OutcomeJSONformstringNo
IsFeatureEventformboolNo
MasterEventsformList<SportsHeaderItem>No
HasSameGameMultiformboolNo
IsFuturesEnabledformboolNo
StylingTierformstringNo
SportsHeaderItem Parameters:
NameParameterData TypeRequiredDescription
CategoryIdformintNo
CategoryNameformstringNo
EventCountformintNo
EventTypeDescformstringNo
EventTypeIdformintNo
MasterCategoryIdformintNo
MasterCategoryNameformstringNo
MasterEventClassIdformintNo
MasterEventIdformintNo
MasterEventNameformstringNo
MasterEventTypeIdformintNo
MaxAdvertisedStartTimeformDateTimeNo
MinAdvertisedStartTimeformDateTimeNo
SecondsToJumpformintNo
MarketsformList<SportsQuickAccessMarket>No
H2HOutcomeCountformintNo
EventClassCodeformstringNo
EventRuleformstringNo
MasterCategoryClassIdformintNo
HasSameGameMultiformboolNo
IsOpenForBettingformboolNo
IsFeatureEventformboolNo
OutomeJSONformstringNo
IsFuturesEnabledformboolNo
MatchSummaryMessageformstringNo
IsLiveformboolNo
SortOrderformintNo
BetTypeCodesWithLiveActivityformstring[]No
CanTrackBetformboolNo
StylingTierformstringNo
SportsQuickAccessMarket Parameters:
NameParameterData TypeRequiredDescription
MasterEventIdformintNo
EventIdformlongNo
EventNameformstringNo
EventClassIdformintNo
OutcomeIdformintNo
OutcomeNameformstringNo
FixedMarketIdformlongNo
MarketTypeCodeformstringNo
BetDetailTypeCodeformstringNo
MarketDescformstringNo
PriceformdecimalNo
PointsformdecimalNo
MultiBetExceptionsformMultiBetExceptionsNo
EventRuleformstringNo
IsOpenForBettingformboolNo
IsFeatureEventformboolNo
OutomeJSONformstringNo
IsFuturesEnabledformboolNo
MultiBetExceptions Parameters:
NameParameterData TypeRequiredDescription
CategoryClassformClassExceptionsNo
MasterEventClassformClassExceptionsNo
ClassExceptions Parameters:
NameParameterData TypeRequiredDescription
AllowedformEventClassExceptionsNo
DeniedformEventClassExceptionsNo
EventClassExceptions Parameters:
NameParameterData TypeRequiredDescription
WildcardformboolNo
EventClassesformList<List<Int32>>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /LiveSportV2 HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"WithLevelledMarkets":false,"EventClassCode":"String","EventTypeId":0,"WithPopularMarketCategoryLinks":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"EventTypeDesc":"String","EventTypeId":0,"MasterCategories":[{"MasterCategoryId":0,"MasterCategory":"String","Categories":[{"CategoryId":0,"CategoryName":"String","OutcomeJSON":"String","IsFeatureEvent":false,"MasterEvents":[{"CategoryId":0,"CategoryName":"String","EventCount":0,"EventTypeDesc":"String","EventTypeId":0,"MasterCategoryId":0,"MasterCategoryName":"String","MasterEventClassId":0,"MasterEventId":0,"MasterEventName":"String","MasterEventTypeId":0,"MaxAdvertisedStartTime":"0001-01-01T00:00:00.0000000Z","MinAdvertisedStartTime":"0001-01-01T00:00:00.0000000Z","SecondsToJump":0,"Markets":[{"MasterEventId":0,"EventId":0,"EventName":"String","EventClassId":0,"OutcomeId":0,"OutcomeName":"String","FixedMarketId":0,"MarketTypeCode":"String","BetDetailTypeCode":"String","MarketDesc":"String","Price":0,"Points":0,"MultiBetExceptions":{"CategoryClass":{"Allowed":{"Wildcard":false,"EventClasses":[[0]]},"Denied":{"Wildcard":false,"EventClasses":[[0]]}},"MasterEventClass":{"Allowed":{"Wildcard":false,"EventClasses":[[0]]},"Denied":{"Wildcard":false,"EventClasses":[[0]]}}},"EventRule":"String","IsOpenForBetting":false,"IsFeatureEvent":false,"OutomeJSON":"String","IsFuturesEnabled":false}],"H2HOutcomeCount":0,"EventClassCode":"String","EventRule":"String","MasterCategoryClassId":0,"HasSameGameMulti":false,"IsOpenForBetting":false,"IsFeatureEvent":false,"OutomeJSON":"String","IsFuturesEnabled":false,"MatchSummaryMessage":"String","IsLive":false,"SortOrder":0,"BetTypeCodesWithLiveActivity":["String"],"CanTrackBet":false,"StylingTier":"String"}],"HasSameGameMulti":false,"IsFuturesEnabled":false,"StylingTier":"String"}]}]}