Site
Home / Forum / Developers / Formula 1 or MotoGP API

Formula 1 or MotoGP API


Posted: 29 May 2024 20:59
qwarz987

Posts: 3
Joined: 2024

Hello Everyone! I'm searching this site but I really can't find or simply figure out if there is Formula 1, or MotoGP, free API here. As web designer and former F1 fun I thought to build small website feeded with Json format data, just as small personal project with which I can learn and play with Angular and Vue.js. I found this page: thesportsdb.com/free_sports_api , but no Formula1 API there. I found, for example, this page: thesportsdb.com/event/1963777-Monaco-Grand-Prix , but I can't see any Json format data. Can You enlight me or just give my some advice what could I do? Thanks in advance. Kind regards, Yuriy.

Posted: 29 May 2024 21:32
curswine


Posts: 935
Joined: 2020

https://www.thesportsdb.com/api/v1/json/3/searchevents.php?e=Monaco_Grand_Prix&s=2024

Is a free method for getting event data. Switch around the event names and season for other events.

Posted: 30 May 2024 07:34
qwarz987

Posts: 3
Joined: 2024

https://www.thesportsdb.com/api/v1/json/3/searchevents.php?e=Monaco_Grand_Prix&s=2024

Is a free method for getting event data. Switch around the event names and season for other events.


Hi @curswine,
and thanks for reply. Ok, but as I understand it's not lets say so called "dedicated" Formula 1 API, is it? I can not see for example who was the winner of the race in the query above. For example, how can I "connect" seasons / years with circuits, or circuits with drivers, or drivers with all the races they did etc etc? Do You understand what I'm talking about?.. Thanks. And wish You have a good day! Y

Posted: 30 May 2024 07:47
curswine


Posts: 935
Joined: 2020

For results you would get the idEvent - '1963777' from that first API call and then feed it into this API call https://www.thesportsdb.com/api/v1/json/3/eventresults.php?id=1963777 which will give you the results from the race.

qwarz987, zag
Posted: 30 May 2024 12:18
qwarz987

Posts: 3
Joined: 2024

For results you would get the idEvent - '1963777' from that first API call and then feed it into this API call https://www.thesportsdb.com/api/v1/json/3/eventresults.php?id=1963777 which will give you the results from the race.
Thanks again for reply. Ok, so as I understand You want to say that even with these lets call'em very "generic" or "universal" queries it's possible to build something basic about F1 seasons, teams, and players, and it could work for past years too perhaps. Just putting and combining those "universal" queries right way. Well, I probably have to give it a deeper look and study it better. Thanks again. Regards, Yuriy.

Posted: 30 May 2024 13:24
curswine


Posts: 935
Joined: 2020

If the data is there, yes. Most of the result data is only applicable to more recent seasons.

You're welcome to register as an editor and add historical data yourself.

zag
Posted: 30 May 2024 18:12

zag


Posts: 3,511
Joined: 2020

F1 and MotoGP is pretty well filled for the latest season:

https://www.thesportsdb.com/season/4370-Formula-1/2024
https://www.thesportsdb.com/season/4407-MotoGP/2024

Data available on our API includes event times, artwork, TV schedules, event rating, Youtube Highlights, Twitter links, Circuit Maps, Driver standings as well as usually an event report.

It's pretty good once you dig into the data


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 7 (Total: 7)