Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found Possible New API Source #47

Closed
siddharth-tewari opened this issue Oct 12, 2021 · 11 comments
Closed

Found Possible New API Source #47

siddharth-tewari opened this issue Oct 12, 2021 · 11 comments

Comments

@siddharth-tewari
Copy link

Hello, I found on the official F1 site that there is a link called http://api.formula1.com/v1/event-tracker . I am not much a developer and learned a little bit python in school so just posted if anyone finds it useful.

@theOehrly
Copy link
Owner

I know of this one. It requires authentication, though. That's not a problem in itself, but it takes additional time to implement. I've looked at it already a bit. Maybe I'll get around to it at some point.

@siddharth-tewari
Copy link
Author

siddharth-tewari commented Oct 13, 2021

@theOehrly Actually after opening this issue, I found 2 more which are https://ltss.fiaformula2.com/streaming/hubs for Formula 2 and https://ltss.fiaformula3.com/streaming/hubs for Formula 3.

@theOehrly
Copy link
Owner

Those streams might work in theory, yes. They seem to be using the signalr protocol, and it is likely that they use the same backend and therefore have the same data format. But I haven't checked.
The problem is that FastF1 has some hard coded references for F1 weekend schedules and so on. This is where the real difficulty might be in terms of supporting F2/F3. I'll keep it in mind, and maybe I can look into it at some point.

@hash55
Copy link

hash55 commented Oct 13, 2021

Hello, I found on the official F1 site that there is a link called http://api.formula1.com/v1/event-tracker . I am not much a developer and learned a little bit python in school so just posted if anyone finds it useful.

What advantages does it have apparently? Is it something similar to what we have now, or does it have new features?

@siddharth-tewari
Copy link
Author

@hash55 No idea, just found it while viewing the source code of the official timing page.

@theOehrly
Copy link
Owner

@hash55 I took a quick look at it some time ago. It offers mostly information about events, schedule and tracks if I remember correctly.

@siddharth-tewari
Copy link
Author

@theOehrly Reopening the issue as having some doubts. How do use authenticate the http://api.formula1.com/v1/event-tracker api? Do we need to use our F1 account? Any code as I don't know anything about api's. For finding pages like TeamRadio,jsonStream, how do I find it for https://ltss.fiaformula2.com/streaming/hubs. Any tutorial links for reference?

@siddharth-tewari
Copy link
Author

@theOehrly I used Developer Tools but still not able to found anything. I even forked this package and am making one for Formula 2. Formula 3 would be same as they both use same type of api.

@theOehrly
Copy link
Owner

@siddharth-tewari
I'm not sure if I ever tried authentication with the event tracker api endpoint from python. No, I don't have any code for it. But I guess you need to authenticate with your F1 account. I'm not sure, it's already some time ago that I took a look at it.
I also don't have any tutorials for this. And it's not a given that the F2/F3 backend is the same as the one for F1.

@siddharth-tewari
Copy link
Author

@theOehrly I mean F2/F3 backend is almost same but not meant F1.

@siddharth-tewari
Copy link
Author

@theOehrly Any way how you did it? I tried from python but failed. Also what is your username as we gave our Name and Surname not any username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants