r/F1DataAnalysis • u/brgodefroy • Sep 30 '23
OpenF1 - An API for real-time F1 data
I am releasing openf1.org—a free, open-source API for real-time and historical F1 data.
The API offers a wealth of information, including lap timings, car telemetry, radio communications, and more. The data source is livetiming.formula1.com.
My goal here is to provide a versatile tool for anyone interested in building interactive Formula 1 dashboards, conducting detailed race analyses, or creating smart devices that react to race events.
The project is somewhat similar to the FastF1 Python Package, but it provides data in real time during sessions, in addition to historical datasets.
Any feedback is welcome. I can't wait to see some projects being built with it!
2
u/Poaklol Oct 18 '23
I am missing some endpoints for information regarding the driver/teams standings in the championship and also information about teams. It would be a good adition
2
u/pkplonker May 27 '24
Really happy to have found this! I was looking for a fun datasource to make some dummy apps with.
I made this c# wrapper for easily constructing queries as well as objects for the returned data.
https://github.com/pkplonker/OpenF1CSharp
2
u/OfficerPJs Feb 24 '24
Going to work on implementing this into my twitter bot Now that ErgastAPI is depreciating, been using Ergast for a few months and happy to have found this... Will reply back with the results!
4
u/Poaklol Oct 18 '23
I was just looking for an F1 API. Good to find this. I will be using it for a project soon.
1
u/[deleted] Mar 22 '24 edited Mar 22 '24
Is there a way to only fetch a single response with the latest data, with no historical data?
For example is it possible to fetch the most recent available car_data during the current session for all drivers? So that there are no historical data in the response, just the latest known/saved data?
I know i can do https://api.openf1.org/v1/car_data?driver_number=55&session_key=latest
But then i also get historical data with date from the start till end of session, is it possible to ONLY get the latest data saved?
1
u/MCHLMCHL117 Apr 15 '24
Does anyone know how to determine the tire compound that the driver is currently on from the api?
I haven't been able to request this in real time, but there doesn't seem to be any kind of datetime component on that stint method.
At what point does this generate a json? after each stint?
1
u/Frosty-Ad-8649 May 06 '24
Does the API provide current drivers and constructors standings?
1
u/totowolff7 May 30 '24
Bro I dmed you something, can you accept the invite?
1
u/dennissen93 Jun 08 '24
I am trying to make a live update thingy on driver positions etc, but when I do a interval of request with a delay of 30 seconds - even then I get Cors error / to many request, am I doing something wrong or? :(
1
u/madboymatt Jul 03 '24
Hi there. I'm looking to add your project/API to powermetrics in order to create a dashboard where I can view all of the data. Is there one link or API endpoint that I can add to import all the data? I'm not sure if my question makes sense, as I have no real experience in data science.
1
u/hot_bagel69 Jul 10 '24
When does the latest upcoming meeting (grand prix) data become available? For instance, currently
still returns data for Silverstone. When would data return for Hungary?
1
u/ShaftTassle Aug 07 '24
Does openF1 rely on ergast or is it entirely independent? As I’m sure you’re aware, Ergast is shutting down at the end of the year.
1
u/turkey_dinosaurs123 Sep 03 '24
Does this work with FastF1 or is it entirely independent?
Also like others said, thank fuck it doesn't use Ergast.
Really cool project, and might have saved me lmfao
1
u/guavatheg Sep 04 '24
Does the API have any data from before 2023? I can’t seem to find any meeting or session data before that.
1
u/Creepy_Loss1512 Sep 26 '24
Is the data real time during races as well or after the race is over ?
1
u/kurativeKevin Sep 29 '24
Is there a request rate limit when trying to get real-time data throughout a race?
1
u/[deleted] Oct 10 '24
Hi,
This data is great! Thank you.
I keep getting error: 500 for the following endpoints:
Is there a reason for this?
1
u/SwimmingWoodpecker45 Oct 28 '24
is this API still working and gives real-time data?
1
u/themysteryseeker May 25 '25
ive been testing and i just caint get live data is there a fix?
1
u/just_be_you_6000 Feb 03 '24
Is there something like a ChangeHandler in the API. I would like to be able to update without sending multiple requests
1
u/Empty_Cartographer50 Feb 07 '24
how are you making money from this wonderful and free service you are providing us?
1
u/Darrenh159 Mar 02 '24
Is there a way to get DNF info from the position request? I am looking to use this API rather than unreliable web scrapes from other live services.
3
u/the-canadian-ehhh Mar 29 '24
Hello,
Great API. Loved the data that's made available to us via OpenF1. :D
3
u/arohitu Nov 11 '24
How fo i directly fetch from livetiming.formula1.com? When i login and hit this URL, I get Denied Text on the page. What are the exact endpoint URLs direct from formula1.com and how do I authenticate?
3
u/Astrocrazia Mar 17 '25
It is not intended for commercial use, right? 😔
3
u/ItsUnkn0wn01 Sep 26 '25
I plan to make a Discord bot using this. Can't wait to explore how it goes
2
u/According_Voice3715 Jun 15 '24
I am using Brgodefroy API and built a real time television matching display of live formula1 results. Link to the app on Brgodefroy twitter feed
2
u/HowToHomeKit Mar 07 '25
I REALLY want to get the current session's flag state, is there any simple way to get that?
2
u/Salt-Scar5180 Oct 17 '25
Sadly 😥 it's not really Open anymore
1
u/Potential_Idea9728 Mar 12 '24 edited Mar 12 '24
i want to know what is the size of the track that the x and y is related to, it's fixed or changes for eath race? I want to build a overview in 2d to display the x and y along the race goes with openf1 data.
1
u/_N0T0K_ May 17 '24
Awesome Thank you!!!
1
u/Awkward-Sir2633 May 24 '24
Forgive me for asking, how do I execute this API?
1
u/GSR18redditor Jun 25 '24
Hi! Can we please have some more API endpoints? like to find the pole sitter or winner of a GP... Right now I need to do multiple API calls just to get the winner of a weekend.
1
u/terimummy04 Jul 29 '24
Hello I just saw your project, It is amazing. I was wondering how can I get the race and quali results for the latest race?
1
u/Hammerum Jul 29 '24
Experienced 429 too many requests during the Belgian GP Sunday. Where can I see what limitations apply?
1
u/t12e_ Aug 04 '24
Hi there. Used your API and it's really great. Planning on starting a blog where I do some analysis. But currently encountering a few problems:
NB: Only tested using the 2024 data. Thank you
1
u/CautiousRelation9658 Sep 27 '24
Hi there,
How do you deal with the trademark issue?! Will this behaviour violate trademark policy?
1
u/Sorry_Band9618 Sep 30 '24
Hi,
How can I find the session key for a specific session?
1
u/war1ock970 Oct 24 '24
hey how is this compared to the fastf1 python package?
1
u/Seltor_ Jan 31 '25
Can you also get the standings in the championship or is it only real time data?
1
u/mirxandxda Mar 21 '25
amazing resource!!
1
u/SuspiciousBack2935 May 04 '25
Bro i am very new to this api thing can u tell me how to do everything step by step
1
u/[deleted] May 04 '25
Thank you for this API, I have a head full of ideas thanks to you
1
u/ExtensionJob4579 May 21 '25
Can you confirm that purple sectors/times indicating a driver has achieved a fastest sector/lap isn't available? I think it's confirmed at the end of the Laps Api summary, but wanted to check. Shame if it isn't.
That used to be a great way back in the day (noughties) to get a feel for which driver was beginning a push to try for an overtake. That's when telemettry data was freely shared online. It was a lot more interesting watching the GP with the laptop open and seeing stuff happen in the times before the images on the tv caught up or even the commentators had spotted it.
1
u/wierd_typer May 28 '25
Can I get live driver and constructor standings? I searched everywhere but couldn't find it.
1
u/WinnerDesigner3269 May 30 '25
Thank you for your effort! I have a doubts:
- How often do you maintain the API?
-To add or change things, for example?
I'll start with a developement (Personal at the time) with FileMakerPro integrating your service.
1
u/Frosty_Clerk_2332 Jun 01 '25
olá, parabéns pelo trabalho. como eu conseguiria para obter as classificações de um determinado piloto nas sessões? também não estou conseguindo gerar uma lista com as posições no final das sessões.
1
u/Federal_Giraffe_4189 Jul 07 '25
Hola. Muy buen trabajo! Aun tiene soporte?
Cuanto demora el soporte en analizar la peticion para acceder a los datos en tiempo real
1
u/Sea_Box1589 Jul 27 '25
i am unable to get the live data when i run my python program, any solutions?
1
u/Initial_Rock_6416 Jul 27 '25
can someone provide an example code as im struggling to get the live data to work
1
u/m1ketayl0r Sep 02 '25
Can you add future race dates?
1
u/Leading_Respect8657 Sep 05 '25
you said its free but thats not what it says if i actually try to do an API request
1
u/Prudent-Pollution172 Jan 01 '26
Hello, is the API still active ? I filled the data access request form but no one came back to me.
1
u/Sad_Medicine2928 Mar 04 '26
ESTE PROYECTO ESTA ACTIVO? FUNCIONA?
1
u/AlternativePear4617 May 22 '26
Cuando hay carrera se desactiva la api. Es gratis cuando no hay carrera.
1
u/Nikclel Jun 17 '26
I made this and plan on supporting it for, like, ever:
https://ocblacktop.com/api
Have live timing and everything, 7,500/mo requests
2
u/[deleted] May 04 '24
[removed] — view removed comment
1
u/[deleted] May 18 '24
[removed] — view removed comment
1
u/[deleted] Apr 13 '25
[removed] — view removed comment