This page describes the way of requesting results, during a live session or after it.
Endpoints and includes for retrieving results
Results are retrievable via includes available on all Live and Fixtures endpoints, however they can also be retrieved via most endpoints where you can include fixtures. For example on the GET Fixture by ID endpoint:
The response will show the results under the fixture:
These types are available in the result include:
Developer name (description)
Explanation
TIME
The latest lap time (races)
The fastest lap time (practices and qualifications)
INTERVAL
Interval between this driver and the driver in front of them (P2+)
The total racing time, if available (P1)
GAP_TO_LEADER
The time gap between this driver and P1 (P2)
The total racing time, if available (P1)
DNS/DNF/DSQ status
POSITION
The current position of the driver in the race
TYRE
The drivers' current tyre comound (SOFT, MEDIUM, HARD, INTERMEDIATE, WET) and age (in number of laps)
Matching results to the driver
To match each result to a driver, you have three options:
Pre-load all the drivers into your application using the GET All Drivers endpoint (Recommended for an initial data load)
Use the lineups.driver nested include to retrieve all the drivers for the fixture (Recommended at least at the session start, to retrieve any new drivers)
Including the driver on the result using the results.participant nested include (Not recommended due to decreased performance and larger responses)
The 'lineup details' alternative
The results include gives you a subset of the most important result data. Do you need more?You can use the lineups.details include to retrieve the full set of types using this endpoint:
In the table below is an explanation of all the types available using this include:
Developer name
Explanation
TIME
The latest lap time (races)
The fastest lap time (practices and qualifications)
INTERVAL
Interval between this driver and the driver in front of them (P2+)
The total racing time, if available (P1)
GAP_TO_LEADER
The time gap between this driver and P1 (P2)
The total racing time, if available (P1)
DNS/DNF/DSQ status
POSITION
The current position of the driver in the race
TYRE
The current used tyre comound (SOFT, MEDIUM, HARD, INTERMEDIATE, WET) and age since start (in number of laps)
LAPS
The amount of laps
PITSTOPS
The amount of pitstops
FASTEST_LAP
The driver fastest lap time and the lap number
POINTS
The points that would be assigned to the driver if they finish on their current position (live) or the points received for the race (after race), only available for race type sessions
GRID_POSITION
The grid position, only available for race type sessions
This include is a bit more advanced, as the type is not included by default. However, with the lineups include, the driver name, number and grid position is also included in the response. In the example below, the include is enriched with types by using lineups.details.type: