F1 API - livef1.api

Functions

livef1.api.download_data(season_identifier: int = None, location_identifier: str = None, session_identifier: str | int = None)[source]

Downloads and filters F1 data based on the provided season, location, and session identifiers.

Parameters:
season_identifierint

The unique identifier for the F1 season. This is a required parameter.

location_identifierstr

The location (circuit or country name) for filtering meetings (races).

session_identifierstr

The session name (e.g., ‘FP1’, ‘Qualifying’) or key (integer) to filter a specific session within a meeting.

Returns:
dict

The filtered dataset containing the requested season, meeting, or session data.

Raises:
livef1Exception

Raised if any of the required parameters are missing or if no matching data is found.

Examples

print("Hello World")

Exceptions