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
ReplayformStreamItemNo
StreamingUrlformstringNo
ThumbnailUrlformstringNo
StreamItem Parameters:
NameParameterData TypeRequiredDescription
ProviderformstringNo
ChannelformstringNo

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

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<Next5RacesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <CountryFilter>0</CountryFilter>
  <EventTypeFilter>0</EventTypeFilter>
</Next5RacesRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Next5RacesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <Items>
    <Next5Race>
      <AdvertisedStartTime>String</AdvertisedStartTime>
      <EventType>String</EventType>
      <NextRefresh>0</NextRefresh>
      <Race xmlns:d4p1="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
        <d4p1:_advertisedStartTime>0001-01-01T00:00:00Z</d4p1:_advertisedStartTime>
        <d4p1:_x003C_CountryCode_x003E_k__BackingField>String</d4p1:_x003C_CountryCode_x003E_k__BackingField>
        <d4p1:_x003C_EventId_x003E_k__BackingField>0</d4p1:_x003C_EventId_x003E_k__BackingField>
        <d4p1:_x003C_EventType_x003E_k__BackingField>0</d4p1:_x003C_EventType_x003E_k__BackingField>
        <d4p1:_x003C_MasterCategoryName_x003E_k__BackingField>String</d4p1:_x003C_MasterCategoryName_x003E_k__BackingField>
        <d4p1:_x003C_RaceDistance_x003E_k__BackingField>0</d4p1:_x003C_RaceDistance_x003E_k__BackingField>
        <d4p1:_x003C_RaceNo_x003E_k__BackingField>0</d4p1:_x003C_RaceNo_x003E_k__BackingField>
        <d4p1:_x003C_StateCode_x003E_k__BackingField>String</d4p1:_x003C_StateCode_x003E_k__BackingField>
        <d4p1:_x003C_Streaming_x003E_k__BackingField>
          <d4p1:LiveStream>
            <d4p1:Channel>String</d4p1:Channel>
            <d4p1:Provider>String</d4p1:Provider>
          </d4p1:LiveStream>
          <d4p1:Replay>
            <d4p1:Channel>String</d4p1:Channel>
            <d4p1:Provider>String</d4p1:Provider>
          </d4p1:Replay>
          <d4p1:StreamingUrl>String</d4p1:StreamingUrl>
          <d4p1:ThumbnailUrl>String</d4p1:ThumbnailUrl>
        </d4p1:_x003C_Streaming_x003E_k__BackingField>
        <d4p1:_x003C_Venue_x003E_k__BackingField>String</d4p1:_x003C_Venue_x003E_k__BackingField>
        <d4p1:_x003C_Vision_x003E_k__BackingField>String</d4p1:_x003C_Vision_x003E_k__BackingField>
      </Race>
      <SecondsToJump>0</SecondsToJump>
      <TimeToJump>String</TimeToJump>
    </Next5Race>
  </Items>
</Next5RacesResponse>