Get Intervals
get_intervalsFetch real-time gaps between drivers and to the race leader from OpenF1 during races, with updates every 4 seconds. Bound results by date_from/date_to.
Instructions
Fetch real-time gaps between drivers and to the race leader from OpenF1.
Available during races only, with updates approximately every 4 seconds. Use date_from/date_to to bound the response (e.g., the closing laps).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | ||
| date_from | No | ||
| session_key | No | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
| driver_number | No | int — optional, 1-99. Driver number for the season. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |