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:
- Checks if a race weekend includes a sprint event
- Fetches sprint race results
- Saves data to the race directory
- 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)
SprintResultsFetcher Class
Initialization
Check for Sprint Event
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
Related Scripts
Events
Check which races have sprint events
Race Results
Compare sprint vs. race outcomes
Qualifying
Qualifying sets sprint grid (reverse order)