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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	EventTypeFilter: 0,
	CountryFilter: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Items: 
	[
		{
			Race: 
			{
				EventId: 0,
				Venue: String,
				RaceNo: 0,
				AdvertisedStartTime: 0001-01-01,
				EventType: 0,
				MasterCategoryName: String,
				StateCode: String,
				CountryCode: String,
				RaceDistance: 0,
				Vision: String,
				Streaming: 
				{
					LiveStream: 
					{
						Provider: String,
						Channel: String
					},
					Replay: 
					{
						Provider: String,
						Channel: String
					},
					StreamingUrl: String,
					ThumbnailUrl: String
				}
			},
			TimeToJump: String,
			EventType: String,
			SecondsToJump: 0,
			AdvertisedStartTime: String,
			NextRefresh: 0
		}
	]
}