Sprint qualifying results are available for races where there is a Sprint element in race schedule entry.
To list the sprint qualifying results for a specific race use the following URL with the required year and round number:
http://ergast.com/api/f1/2021/10/sprint
If results for the specified race are not available the RaceTable element in the response will be empty.
Results can be filtered using one or more of the following criteria:
/circuits/<circuitId>
/constructors/<constructorId>
/drivers/<driverId>
/grid/<position>
/status/<statusId>
For example, to list all the sprint results for a specific driver in a particular season:
http://ergast.com/api/f1/2021/drivers/bottas/sprint
If you are only interested in results for a specific finishing position you can add a qualifier:
http://ergast.com/api/f1/2021/sprint/1
The value of the position attribute in the SprintResult element is always an integer, giving the finishing order of all drivers. The value of the positionText attribute is either an integer (finishing position), “R” (retired), “D” (disqualified), “E” (excluded), “W” (withdrawn), “F” (failed to qualify) or “N” (not classified). Further information is given by the status element. A grid position value of ‘0’ indicates the driver started from the pit lane.
XML Example Response
<?xml version="1.0" encoding="utf-8"?> <MRData xmlns="http://ergast.com/mrd-1.0" series="f1" limit="30" offset="0" total="20"> <RaceTable season="2021" round="10"> <Race season="2021" round="10" url="http://en.wikipedia.org/wiki/..."> <RaceName>British Grand Prix</RaceName> <Circuit circuitId="silverstone" url="http://en.wikipedia.org/..."> <CircuitName>Silverstone Circuit</CircuitName> <Location lat="52.0786" long="-1.01694"> <Locality>Silverstone</Locality> <Country>UK</Country> </Location> </Circuit> <Date>2021-07-18</Date> <Time>14:00:00Z</Time> <SprintList> <SprintResult number="33" position="1" positionText="1" points="3"> <Driver driverId="max_verstappen" code="VER" url="http://..."> <PermanentNumber>33</PermanentNumber> <GivenName>Max</GivenName> <FamilyName>Verstappen</FamilyName> <DateOfBirth>1997-09-30</DateOfBirth> <DriverNationality>Dutch</DriverNationality> </Driver> <Constructor constructorId="red_bull" url="http://..."> <Name>Red Bull</Name> <Nationality> Austrian</Nationality> </Constructor> <Grid>2</Grid> <Laps>17</Laps> <Status statusId="1">Finished</Status> <Time millis="1538426">25:38.426</Time> <FastestLap lap="14"> <Time>1:30.013</Time> </FastestLap> </SprintResult> <SprintResult number="44" position="2" positionText="2" points="2"> <Driver driverId="hamilton" code="HAM" url="http://..."> <GivenName>Lewis</GivenName> <FamilyName>Hamilton</FamilyName> <DateOfBirth>1985-01-07</DateOfBirth> <Nationality>British</Nationality> </Driver> <Constructor constructorId="mercedes" url="http://..."> <Name>Mercedes</Name> <Nationality>German</Nationality> </Constructor> <Grid>1</Grid> <Laps>17</Laps> <Status statusId="1">Finished</Status> <Time millis="1545928">+7.5028</Time> <FastestLap lap="17"> <Time>1:29.937lt;/Time> </FastestLap> </SprintResult> . . . </SprintList> </Race> </RaceTable> </MRData>
JSON Example Response
{ "MRData": { "xmlns": "http://ergast.com/mrd/1.0", "series": "f1", "limit": "30", "offset": "0", "total": "20", "RaceTable": { "season": "2021", "round": "10", "Races": [ { "season": "2021", "round": "10", "url": "http://en.wikipedia.org/wiki/2021_British_Grand_Prix", "raceName": "Australian Grand Prix", "Circuit": { "circuitId": "silverstone", "url": "http://en.wikipedia.org/wiki/Silverstone_Circuit", "circuitName": "Silverstone Circuit", "Location": { "lat": "52.0786", "long": "-1.01694", "locality": "Silverstone", "country": "UK" } }, "date": "2021-07-18", "time": "14:00:00Z", "SprintResults": [ { "number": "33", "position": "1", "positionText": "1", "points": "3", "Driver": { "driverId": "max_verstappen", "permanentNumber": "33", "code": "VER", "url": "http://en.wikipedia.org/wiki/Max_Verstappen", "givenName": "Max", "familyName": "Verstappen", "dateOfBirth": "1997-09-30", "nationality": "Dutch" }, "Constructor": { "constructorId": "red_bull", "url": "http://en.wikipedia.org/wiki/Red_Bull_Racing", "name": "McLaren", "nationality": "British" }, "grid": "2", "laps": "17", "status": "Finished", "Time": { "millis": "1539856", "time": "+1.430" }, "FastestLap": { "lap": "14", Time: { "time": "1:30.013" } } }, . . . ] } ] } } }