br-g/openf1
br-g/openf1 has 1,857 GitHub stars and 163 forks. GitHot measured +5 stars in 24 hours. Last checked 2026-11-08 01:11 UTC. Last push 2026-11-01.
OpenF1 API - Real-time and historical Formula 1 data
What you can do
- Real-Time Data: Stay updated with live lap times, speeds, and driver positioning.
- Historical Data: Analyze past races, compare performance over seasons, and dive deep into race strategy.
- Car Telemetry: Access in-depth car data, including throttle, brake, DRS, and gear information.
- Driver Information: Get details on F1 drivers, including team affiliations and performance metrics.
Measured star growth
- in 24h
- +5
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalOpenF1 API
OpenF1 is a free and open-source API that offers real-time and historical Formula 1 data.
Whether you're a developer, data analyst, or F1 enthusiast, OpenF1 provides comprehensive
access to lap timings, car telemetry, driver information, race control messages, and more.
Explore the data through JSON or CSV formats to build dashboards, analyze races, or integrate F1 data into your projects.
For full API documentation, visit openf1.org.
Key Features
- Real-Time Data: Stay updated with live lap times, speeds, and driver positioning.
- Historical Data: Analyze past races, compare performance over seasons, and dive deep into race strategy.
- Car Telemetry: Access in-depth car data, including throttle, brake, DRS, and gear information.
- Driver Information: Get details on F1 drivers, including team affiliations and performance metrics.
Example Usage
Here’s a quick example of how to fetch lap data for a specific driver using the API:
curl "https://api.openf1.org/v1/laps?session_key=9161&driver_number=63&lap_number=8"
For more detailed examples and documentation, visit the API Documentation.
Running the project locally
Install and start MongoDB Community Server v7 or v8
Install pip>=23 and python>=3.10
Install the OpenF1 python package
git clone [email protected]:br-g/openf1.git
pip install -e openf1
- Configure the MongoDB connection
Set the MONGO_CONNECTION_STRING environment variable to connect to your local MongoDB instance:
export MONGO_CONNECTION_STRING="mongodb://localhost:27017"
- Run the project
- Fetch and ingest scraped data: services/f1_scraping/
- Fetch and ingest live timing data: services/ingestor_livetiming/
- Start and query the API: services/query_api/
Supporting OpenF1
If you find this project useful, consider supporting its long-term sustainability:
Disclaimer
OpenF1 is an unofficial project and is not affiliated with Formula 1 companies. All F1-related trademarks are owned by Formula One Licensing B.V.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,905 starspublic-apis/public-apis
A collective list of free APIs
497,149 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
442,207 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,173 stars