Session
Object for accessing session specific data. Constructor:Reference to the associated Event object
Name of this session (e.g., ‘Qualifying’, ‘Race’, ‘FP1’)
Whether the official F1 API supports this event
Sessions are usually created using
fastf1.get_session() rather than instantiating directly.Properties
event
Reference to the associated Event object
name
Name of this session (e.g., ‘Qualifying’, ‘Race’, ‘FP1’)
date
Date at which this session took place
drivers
List of all driver numbers (as strings) that participated in this session. Available after calling
load().results
Session results with driver information. Available after calling
load().laps
All laps from all drivers in this session. Available after calling
load() with laps=True.car_data
Dictionary of car telemetry (Speed, RPM, etc.) keyed by driver number (string). Each value is a Telemetry object. Available after calling
load() with telemetry=True.pos_data
Dictionary of car position data (X, Y, Z coordinates) keyed by driver number (string). Each value is a Telemetry object. Available after calling
load() with telemetry=True.weather_data
DataFrame containing weather data for this session. Available after calling
load() with weather=True.session_status
Session status data (Started, Finished, Aborted). Available after calling
load() with laps=True.track_status
Track status data (yellow flags, red flags, etc.). Available after calling
load() with laps=True.race_control_messages
Race control messages for this session. Available after calling
load() with messages=True.session_info
Session information including meeting, session, country and circuit names and unique identifier keys.
total_laps
Originally scheduled number of laps for race-like sessions. Available after calling
load() with laps=True.t0_date
Date timestamp marking the beginning of the data stream (when session time is zero). Available after calling
load() with telemetry=True.session_start_time
Session time at which the session was started. Available after calling
load() with laps=True.Methods
load()
Load session data from the supported APIs.Load laps and session status data
Load telemetry data (car_data and pos_data)
Load weather data
Load race control messages
Optional locally saved livetiming data to use as data source instead of API
Without specifying any options, all data is loaded by default. Loading all data is recommended as FastF1 uses data from multiple sources to provide the most accurate results.
get_driver()
Get a DriverResult object containing information about a specific driver.Driver’s three letter identifier (e.g., ‘VER’) or driver number as string
DriverResult object with driver information
get_circuit_info()
Returns additional information about the circuit hosting this event.CircuitInfo object with corner locations, marshal lights, marshal sectors, and track map rotation. Returns None if information is unavailable.
The circuit information is manually created and not highly accurate, but it’s useful for annotating data visualizations.
