Introduction
The IndyCar API provides schedules and post-race results for the entire IndyCar Series. All data is collected via Sportradar’s expert operators.
Select the IndyCar package in our Coverage Matrix for events and data offered.
This API uses a descending, stage-based structure. By changing the stage ID, you can retrieve information on a season, event, race, or any of the practice or qualifying stages.
Additional feeds provide complementary stats, including racer profiles and race win probabilities.
Authentication is required for all API calls.
Stage Format
The IndyCar API uses generic stage implementation. The core of the API is built around the concept of stages. For example, an event contains the following stage types: practice, qualifying, and race. Each of those stages, in turn, have stages (except Practice which has no sub-stages). The IDs of each stage are usable in the URL path to request information about that particular stage. Qualifying stages contain sub-stages known as "Qualifying Parts". In the Race stages, the sub-stages are laps. You can use the lap stage ID in the URL to get specific lap details, including driver times, and position.
The IndyCar sport and seasons within it are stages as well. The sport stage consists of season stages for each annual season. Using the ID of a chosen season as a parameter in the Stage Summary endpoint you can "drill down" into each season. For example, using the 2018 season ID as a parameter in the Stage Summary endpoint, the sub-stages will be individual race events. From the race event, you can drill down into the practice, qualifying, race, and lap stages of a race using the same endpoint with different stage IDs.
The best way to "start" the navigation with the IndyCar API is using the Seasons endpoint. From there one can obtain the stage ID for the season required and use that as a parameter in the Stage Summary endpoint.
Stage Type | Information Included | Sub-stages |
---|---|---|
Sport | Information about the seasons included. Which is limited to the current and previous season only. Note probabilities do not return valid data on this stage. | IndyCar seasons: 2017, 2018. |
Season | Contains the season schedule, driver standings and statistics. | Events on the IndyCar calendar for that season. |
Event | Information about a single event, the competitors, the teams, and the circuit. | Sessions (eg: Practice, Qualifying, Race) |
Practice | Competitors and results of practice such as fastest time etc. | None |
Qualifying | Information pertaining to the qualifying stage of the event including conditions, competitors, and overall qualifying results. | Qualifying Parts |
Qualifying Part | Information about the individual qualifying parts of the overall qualifying stage such as conditions, competitors, and results. | None |
Race | Details of the race itself including the competitors, lap by lap, and overall results. | Laps |
Lap | Specific details on individual laps such as driver positions, times, etc. Note probabilities do not return valid data on this stage. | None. |
API Map
Endpoint Descriptions
Competitor Merge Mappings - Provides the valid Sportradar Id in cases when two competitors have been merged into one.
Competitor Profile – Provides biographical information for a given driver.
Deleted Stages - Provides all deleted stages within a given season.
Seasons - Provides a complete historical list of available seasons. This is the starting point for the IndyCar API.
Stage Probabilities – Provides the outrights for each driver for a given race.
Stage Schedule – Provides schedule information for a given stage.
Stage Summary – Provides schedules and results information based on the stage provided (season, event, practice, qualifying, qualifying part, or race).
Data Retrieval Sample
To find the win probabilities for a given race:
- Call the Seasons endpoint and find the Stage Id for the current season
- Call the Stage Schedule using the 'season' Stage Id
- Locate the Stage Id for the upcoming race
- Call the Stage Probabilities using the 'race' Stage Id
- Within the results locate the win probability for each racer
The probability of a win for each racer is displayed.
Integration Links
OpenAPI Spec
Our IndyCar API is available via OpenAPI. Click below to view and/or download the spec.
Postman Workspace
Our entire Media APIs are available on Postman. Click the link above to be taken directly to our Indycar API collection.
Feel free to follow and/or fork any collections to receive updates.
Schema Download
Open the zip file below to access our entire Indycar API XSD schema.