TBS Apps API

<back to all web services

Next5RacesRequest

The following routes are available for this service:
GET,POST/Next5RacesGets the next 5 races to jump in chronological orderGets the next 5 races to jump in chronological order. Can be filtered by Thoroughbred, Harness or Greyhounds
Next5RacesRequest Parameters:
NameParameterData TypeRequiredDescription
EventTypeFilterbodybyteNo1-Throughbred,2-Harness,4-Greyhounds
CountryFilterbodyintNoAU/NZ and International races filter
Next5RacesResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<Next5Race>No
Next5Race Parameters:
NameParameterData TypeRequiredDescription
RaceformRaceShortcutNo
TimeToJumpformstringNo
EventTypeformstringNo
SecondsToJumpformintNo
AdvertisedStartTimeformstringNo
NextRefreshformintNo
RaceShortcut Parameters:
NameParameterData TypeRequiredDescription
EventIdformintNo
VenueformstringNo
RaceNoformintNo
AdvertisedStartTimeformDateTimeNo
EventTypeformintNo
MasterCategoryNameformstringNo
StateCodeformstringNo
CountryCodeformstringNo
RaceDistanceformint?No
VisionformstringNo
StreamingformStreamInfoNo
StreamInfo Parameters:
NameParameterData TypeRequiredDescription
LiveStreamformStreamItemNo
StreamItem Parameters:
NameParameterData TypeRequiredDescription
ProviderformstringNo
ChannelformstringNo

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 /Next5Races HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"EventTypeFilter":0,"CountryFilter":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Items":[{"Race":{"EventId":0,"Venue":"String","RaceNo":0,"AdvertisedStartTime":"0001-01-01T00:00:00.0000000Z","EventType":0,"MasterCategoryName":"String","StateCode":"String","CountryCode":"String","RaceDistance":0,"Vision":"String","Streaming":{"LiveStream":{"Provider":"String","Channel":"String"}}},"TimeToJump":"String","EventType":"String","SecondsToJump":0,"AdvertisedStartTime":"String","NextRefresh":0}]}