F1 Data API

Sports API · Formula 1 · Motorsport statistics · Race data

TL;DR

The F1 Data API provides comprehensive Formula 1 statistics from the official F1 Archive, covering every race since the 1950 season. Query drivers, constructors, circuits, race results, qualifying times, pit stops, lap records, championship standings, and driver of the day awards. Built from the Ergast API successor, this is the most complete free F1 data source. No API key required.

Quick start: https://f1-data-api.com/drivers?season=2024

No API key needed — free F1 statistics!

How to Use This API

1. List Drivers for a Season

Get all Formula 1 drivers who participated in the 2024 season:

https://f1-data-api.com/drivers?season=2024

2. Get Race Schedule

https://f1-data-api.com/races?season=2024

3. Race Results

https://f1-data-api.com/races/2024/1/results

4. JavaScript — Driver Standings

fetch('https://f1-data-api.com/standings/drivers?season=2024')
  .then(r => r.json())
  .then(data => {
    data.standings.slice(0, 10).forEach((d, i) => {
      console.log(`${i+1}. ${d.driver.givenName} ${d.driver.familyName} — ${d.points} pts`);
    });
  });

5. Python — Constructor History

import requests

constructor = 'ferrari'
resp = requests.get(
    f'https://f1-data-api.com/constructors/{constructor}'
).json()

print(f"{resp['name']} ({resp['nationality']})")
print(f"First entry: {resp['first_entry']}")
print(f"World championships: {resp['world_championships']}")
for season in resp['seasons'][-5:]:
    print(f"  {season['year']}: {season['position']}")
2024 drivers: https://f1-data-api.com/drivers?season=2024

Frequently Asked Questions

What data is available from the API?
Drivers (name, nationality, DOB, number), constructors, circuits (name, location, coordinates), race schedules, qualifying results, race results with positions, pit stop times, lap records, and championship standings.
How far back does the data go?
The API covers the entire history of Formula 1 from the first championship season in 1950 through to the current season. Every race, every driver, every constructor.
Can I get data for a specific race weekend?
Yes — use /races/{season}/{round} for a specific race, with sub-endpoints for qualifying, results, pitstops, and laps.
Are there any rate limits?
The API is free for reasonable usage. For high-volume applications (scraping the entire dataset), consider contacting the maintainers about bulk access options.
Does it support the new sprint race format?
Yes — sprint race results and sprint qualifying are included where applicable for seasons that use the sprint format (2021 onwards).
Is circuit coordinate data available?
Yes — each circuit entry includes latitude, longitude, locality, and country. Useful for mapping race locations and plotting grand prix venues.

API Details

API URL
https://f1-data-api.com/
Documentation
github.com/Jacobbrewer1/f1-data
Category
Sports
Authentication
Not Required
Data Coverage
1950–present (all FIA Formula 1 seasons)

What You Can Build