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

Formula 1 or MotoGP API


Posted: 29 May 2024 20:59
qwarz987
User
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.

transparent spacer
Posted: 29 May 2024 21:32
curswine
Admin
Posts: 1,084
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.

transparent spacer
Posted: 30 May 2024 07:34
qwarz987
User
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

transparent spacer
Posted: 30 May 2024 07:47
curswine
Admin
Posts: 1,084
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
transparent spacer
Posted: 30 May 2024 12:18
qwarz987
User
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.

transparent spacer
Posted: 30 May 2024 13:24
curswine
Admin
Posts: 1,084
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
transparent spacer
Posted: 30 May 2024 18:12

zag
Admin
Posts: 3,848
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

transparent spacer
Posted: 28 Feb 2025 09:42
curswine
Admin
Posts: 1,084
Joined: 2020

@exotic308 Please don't post entire JSONs it makes your message hard to read.

Please just post the endpoints and what you expect to find and what you're looking for.

transparent spacer
Posted: 24 Mar 2025 08:51
francescofipertani
Editor Premium
Posts: 5
Joined: 2025

Hello, I'm looking for the API to get the updated standings for formula 1. Can you please help me?

transparent spacer
Posted: 24 Mar 2025 08:54
curswine
Admin
Posts: 1,084
Joined: 2020

Its not something we can provide.

transparent spacer
Showing 0 to 10 (Total: 10)