MyRacePass API

Overview

Resources

Resource: Schedules/Results

GET /v2/schedules/results/Gets results from passed parameters

Request Parameters

Below is a list or available request parameters.

NameTypeDescriptionDefault
EventId INT Id of event to pull results for [REQUIRED]
ClassId INT Filters results to a specific classId (0 for all) 0
RaceCount INT Number of races to return per class (0 for all) 0
DriverCount INT Number of drivers to return per race (0 for all) 0
DriverId INT Filters results to only show sent driver (0 for all) 0

Format Parameters

Parameters for formatting the response data

NameTypeDescriptionDefault
ImageSize ImgSize Size of the class image to return 500x500

Example Call

GET

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

Response Information

Returns

A list of event results.

Response Body
	{
    "RequestValid": 1,
    "ItemsReturned": 3,
    "Classes": [
        {
            "ClassId": "1000",
            "ClassName": "410 Sprints - Winged",
            "ClassNameOverride": "",
            "Associations": [
                {
                    "AssocId": 1,
                    "AssocName": "Sample Association"
                }
            ],
            "Media": [
                {
                    "MediaType": "image",
                    "MediaId": 1,
                    "MediaUrl": "http://www.myracepass.com/dimages/s250x180-vX8C3p9bVD5t7x38184.jpg"
                }
            ],
            "Races": [
                {
                    "RaceName": "A Feature",
                    "RaceType": "Feature",
                    "RaceOrder": 1,
                    "RaceLevel": "A",
                    "RaceLaps": 0,
                    "RaceTime": "",
                    "RacePresenter": "",
                    "RaceNotes": "",
                    "RaceStatus": "Completed",
                    "Results": [
                        {
                            "ResultPlace": 1,
                            "ResultStart": 3,
                            "ResultTime": "",
                            "ResultCarNum": "45",
                            "ResultDNF": 0,
                            "ResultDNS": 0,
                            "ResultDQ": 0,
                            "Driver": [
                                {
                                    "DriverId": "1",
                                    "DriverFName": "Sample",
                                    "DriverLName": "Driver",
                                    "DriverSuffix": "",
                                    "DriverCity": "Madison",
                                    "DriverState": "WI",
                                    "DriverCountry": ""
                                }
                            ]
                        },
                        {
                            "ResultPlace": 2,
                            "ResultStart": 1,
                            "ResultTime": "",
                            "ResultCarNum": "40",
                            "ResultDNF": 0,
                            "ResultDNS": 0,
                            "ResultDQ": 0,
                            "Driver": [
                                {
                                    "DriverId": "2",
                                    "DriverFName": "Sample",
                                    "DriverLName": "Driver",
                                    "DriverSuffix": "Jr",
                                    "DriverCity": "Madison",
                                    "DriverState": "WI",
                                    "DriverCountry": ""
                                }
                            ]
                        },
                        {
                            "ResultPlace": 3,
                            "ResultStart": 2,
                            "ResultTime": "",
                            "ResultCarNum": "15",
                            "ResultDNF": 0,
                            "ResultDNS": 0,
                            "ResultDQ": 0,
                            "Driver": [
                                {
                                    "DriverId": "3",
                                    "DriverFName": "Joe",
                                    "DriverLName": "Driver",
                                    "DriverSuffix": "",
                                    "DriverCity": "Sioux Falls",
                                    "DriverState": "SD",
                                    "DriverCountry": ""
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "RequestCached": 0
}

Shopping Cart Update Cart ()

Loading...