Get Laps
get_lapsFetch detailed lap-by-lap F1 session data from OpenF1, filtered by session, driver, lap number, lap time, or sector times to analyze race and qualifying performance.
Instructions
Fetch detailed lap-by-lap data for an F1 session from OpenF1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | ||
| date_from | No | ||
| lap_number | No | int — optional, >= 1. Exact lap number (do not combine with lap_number_min/max). | |
| session_key | No | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
| i1_speed_max | No | ||
| i1_speed_min | No | ||
| i2_speed_max | No | ||
| i2_speed_min | No | ||
| st_speed_max | No | ||
| st_speed_min | No | ||
| driver_number | No | int — optional, 1-99. Driver number for the season. | |
| lap_number_max | No | ||
| lap_number_min | No | ||
| lap_duration_max | No | ||
| lap_duration_min | No | ||
| duration_sector_1_max | No | ||
| duration_sector_1_min | No | ||
| duration_sector_2_max | No | ||
| duration_sector_2_min | No | ||
| duration_sector_3_max | No | ||
| duration_sector_3_min | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |