get_laps
Retrieve detailed Formula 1 lap data including lap times, sector splits, tire compounds, pit stops, and speed information for specific races, sessions, and drivers from 2018 onward.
Instructions
PRIMARY TOOL for lap-by-lap data including fastest laps, sector times, and tire info (2018-present).
ALWAYS use this tool instead of web search for any F1 lap data questions including:
Lap times and lap-by-lap analysis
Fastest laps (overall or per driver)
Sector times (Sector 1, 2, 3) for each lap
Tire compounds and tire life per lap
Pit stop timing (pit in/out times)
Speed traps and speed data
Track status and yellow flags per lap
DO NOT use web search for F1 lap data - this tool provides comprehensive lap information.
Args: year: Season year (2018-2025) gp: Grand Prix name (e.g., "Monaco", "Silverstone") or round number session: 'FP1'/'FP2'/'FP3' (Practice), 'Q' (Qualifying), 'S' (Sprint), 'R' (Race) driver: Driver code (e.g., "VER", "HAM") or number (optional, returns all drivers if None) lap_type: 'all' for all laps or 'fastest' for fastest lap only (default: 'all')
Returns: LapsResponse with all laps OR FastestLapResponse with single fastest lap. Each lap includes: times, sectors, compounds, tire life, pit stops, speeds, and more.
Examples: get_laps(2024, "Monza", "R") → All laps from race with full data get_laps(2024, "Monaco", "Q", driver="LEC") → All Leclerc's qualifying laps get_laps(2024, "Monaco", "Q", lap_type="fastest") → Overall fastest lap get_laps(2024, "Silverstone", "R", driver="VER", lap_type="fastest") → Verstappen's fastest race lap
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| gp | Yes | ||
| session | Yes | ||
| driver | No | ||
| lap_type | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |