Skip to main content
The sprint_results.py script fetches results from F1 sprint races, a shorter race format introduced in 2021 that awards points and determines grid positions.
Sprint races were introduced in 2021 and are only held at select events. Not all races have sprint data.

Script Overview

Location: ~/workspace/source/sprint_results.py The SprintResultsFetcher class:
  1. Checks if a race weekend includes a sprint event
  2. Fetches sprint race results
  3. Saves data to the race directory
  4. Handles races without sprint events gracefully

API Endpoint

Sprint Race Format

Sprint races are shorter races (typically 100km) held on Saturday:
  • 2021-2022: Top 3 finishers scored points (3-2-1)
  • 2023-present: Top 8 finishers score points (8-7-6-5-4-3-2-1)
Sprint race results determine the starting grid for Sunday’s Grand Prix.

SprintResultsFetcher Class

Initialization

Check for Sprint Event

The race metadata from the events API includes a Sprint field if the weekend has a sprint race.

Get Race Information

Fetch Sprint Results

Output Structure

Stored at: {year}/{race-name}/sprint_results.json

Sprint Results Data Fields

Usage Example

Single Sprint Race

Check All Rounds for Sprints

Find Sprint Weekends

Sprint Race History

Sprint Weekends by Year

The number and selection of sprint race weekends varies each season. Always check the events data to identify which rounds include sprints.

Points Distribution

2021-2022

2023-Present

Analysis Example

Logging

Events

Check which races have sprint events

Race Results

Compare sprint vs. race outcomes

Qualifying

Qualifying sets sprint grid (reverse order)