fastf1

Global Sports Open source · MIT Read-only 13 commands 454 installs

Formula 1 data — race schedules, results, lap timing, driver and team info. Powered by the FastF1 library. Covers F1 sessions, qualifying, practice, race results, sector times, tire strategy.

View source

Commands 13

get_race_schedule
--year

Full season calendar with dates and circuits

get_race_results
--year--event

Final race classification (positions, times, points)

get_session_data
--session_year--session_name[--session_type]

Raw session info (Q, FP1, FP2, FP3, R)

get_driver_info
--year[--driver]

Driver details from the grid

get_team_info
--year[--team]

Team info with driver lineup

get_lap_data
--year--event[--session_type][--driver]

Lap-by-lap timing with sectors and tire data

get_pit_stops
--year[--event][--driver]

Pit stops with pit-lane time (not stationary time) and team averages

get_speed_data
--year[--event][--driver]

Speed trap and intermediate speed data

get_championship_standings
--year[--round]

Driver and constructor championship standings (--round=N for standings after round N)

get_season_stats
--year

Aggregate season performance

get_team_comparison
--year--team1--team2[--event]

Team head-to-head: qualifying, race pace, sectors

get_driver_comparison
--year--driver1--driver2[--event]

Driver head-to-head: qualifying H2H, race H2H, pace delta

get_tire_analysis
--year[--event][--driver]

Tire strategy, stint lengths, degradation rates

Example Prompts

  • Show me the F1 calendar
  • How did Verstappen do at Monza?
  • What were the latest F1 results?

Quick Start

# CLI
sports-skills f1 get_race_schedule --year=<year>
# Python
from sports_skills import f1
f1.get_race_schedule(year="...")