MyRacePass API

Overview

Resources

Resource: Schedules/Results

GET /v2/schedules/events/?EventId={id}Gets a single schedule event

Request Parameters

Below is a list or available request parameters.

NameTypeDescriptionDefault
EventId INT ID of event to pull [REQUIRED]
IncludeClass BOOL Tells the system whether or not to include the Classes section
Set to false to reduce the size of payload if class names are not required
true
IncludeResults BOOL Tells the system whether or not to include the Results section
Results are pulled from the highest ranking class for each event
false
DriverCount INT Number of drivers to include in results section
Max of 10
5

Format Parameters

none

Example Call

GET

https://api.myracepass.com/v2/schedules/events/?key={xxx}&EventId={id}

Response Information

Returns

A single schedule event.

Response Body
	{
	"RequestValid": 1,
	"ItemsReturned": 1,
	"ScheduleEvents": [{
		"EventId": 1,
		"EventDate": "5/11/2015 12:00:00 AM",
		"EventName": "Ice Breaker",
		"EventDescription": "",
		"CancelType": "",
		"CancelMessage": "",
		"Track": [{
			"TrackId": 1,
			"TrackName": "Sample Track",
			"TrackCity": "Madison",
			"TrackState": "WI",
			"TrackCountry": ""
		}],
		"Classes": [{
			"ClassId": 1000,
			"ClassName": "410 Sprints - Winged",
			"ClassNameOverride": ""
		}],
		"Tickets": [{
			"TicketSiteId": 10000,
			"TicketSiteName": "Sample Track",
			"TicketSiteUrl": "sampletrack.com",
			"TicketPurchaseLink": "http://market.myracepass.com/store/tickets/.....",
			"TicketEventName": "Kids night at the Track (5/12/2015)",
			"TicketStartDate": "5/6/2015 12:00:00 AM",
			"TicketEndDate": "5/12/2015 11:59:00 AM",
			"TicketsAvailable": [{
				"TicketName": "Adult General Admission",
				"TicketPrice": 10,
				"TicketSalePrice": 0,
				"TicketOnSale": 0,
				"TicketQty": 500
			}, {
				"TicketName": "Kids General Admission",
				"TicketPrice": 5,
				"TicketSalePrice": 0,
				"TicketOnSale": 0,
				"TicketQty": 500
			}, {
				"TicketName": "Senior General Admission",
				"TicketPrice": 8,
				"TicketSalePrice": 0,
				"TicketOnSale": 0,
				"TicketQty": 500
			}, {
				"TicketName": "Adult VIP Call for Reservations 918-434-7223",
				"TicketPrice": 20,
				"TicketSalePrice": 0,
				"TicketOnSale": 0,
				"TicketQty": -1
			}, {
				"TicketName": "Kids VIP Call for Reservations 918-434-7223",
				"TicketPrice": 20,
				"TicketSalePrice": 0,
				"TicketOnSale": 0,
				"TicketQty": -1
			}, {
				"TicketName": "Pit Pass",
				"TicketPrice": 30,
				"TicketSalePrice": 0,
				"TicketOnSale": 0,
				"TicketQty": 500
			}]
		}],
		"Results": [{
			"ResultPlace": 1,
			"ResultStart": 0,
			"ResultTime": "",
			"ResultCarNum": "15",
			"ResultDNF": 0,
			"ResultDNS": 0,
			"ResultDQ": 0,
			"Driver": [{
				"DriverId": "1",
				"DriverFName": "Sample",
				"DriverLName": "Driver",
				"DriverSuffix": "",
				"DriverCity": "Madison",
				"DriverState": "WI",
				"DriverCountry": ""
			}]
		}, {
			"ResultPlace": 2,
			"ResultStart": 0,
			"ResultTime": "",
			"ResultCarNum": "18",
			"ResultDNF": 0,
			"ResultDNS": 0,
			"ResultDQ": 0,
			"Driver": [{
				"DriverId": "2",
				"DriverFName": "Johnny",
				"DriverLName": "Driver",
				"DriverSuffix": "",
				"DriverCity": "Appleton",
				"DriverState": "WI",
				"DriverCountry": ""
			}]
		}]
	}],
	"RequestCached": 0
}

Shopping Cart Update Cart ()

Loading...