Get Sessions
get_sessionsFetch Formula 1 sessions (practice, qualifying, sprint, race) from OpenF1 by year, location, meeting, or session type to find event schedules and IDs.
Instructions
Fetch F1 sessions (practice, qualifying, sprint, race) from OpenF1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | int — optional, >= 2023 (OpenF1 data starts in 2023). | |
| location | No | str — optional, 1-100 chars, e.g., 'Spa-Francorchamps'. | |
| circuit_key | No | int — optional, positive int. Circuit identifier. | |
| meeting_key | No | int | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier. | |
| session_key | No | int | str — optional, positive int or 'latest'. Session identifier; 'latest' targets the current/most recent session. | |
| country_name | No | str — optional, 1-100 chars, e.g., 'Belgium'. | |
| session_name | No | str — optional, e.g., 'Practice 1', 'Qualifying', 'Race'. | |
| session_type | No | str — optional, e.g., 'Practice', 'Qualifying', 'Race'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |