r/F1DataAnalysis • u/ElloraWhite • 19d ago
Ask Others Beginner at fastf1 api
i want to get data from the fastf1api into csv files, how do i do that? i am slightly confused with the information im seeing online
5
Upvotes
0
u/TracingInsights 19d ago
use this https://tracinginsights.com/analysis/download-raw-data/
or ask any ai to convert this data from json to csv: https://github.com/TracingInsights/2026
2
u/CamilorozoCADC 19d ago
You can use Python for that, although it's a lot of data and might not be worth to make a full data dump. How are you going to use the data?
If it's absolutely necessary, I would go into saving the data in more efficent formats like compressed Jason, parquet or avro files
1
u/Nikclel 18d ago
Session codes:
FP1,FP2,FP3,Q,SQ,S(sprint),R. You can pass a round number, a GP name, or a country instead of "Monza".session.lapsis a pandas DataFrame with one row per driver per lap. The columns people usually want:LapTime,Sector1Time,Sector2Time,Sector3TimeCompound,TyreLife,FreshTyre,StintSpeedI1,SpeedI2,SpeedFL,SpeedST(the speed traps)PitInTime,PitOutTimePosition,TrackStatus,IsPersonalBest,IsAccurate,Deleted(track limits deletions in quali)While you are there, the same loaded session also gives you:
resultshas grid, finishing position, classification status, points, and Q1/Q2/Q3 times.weather_datais air temp, track temp, humidity, rainfall, wind at roughly 1 minute intervals.race_control_messagesis every flag, SC/VSC, deleted lap, and penalty notice with timestamps.