F1DB is the most comprehensive free open source database with all-time Formula 1 racing data and statistics.
Whether you are building a custom website, mobile application or just using F1DB to query data, here is what we provide:
- All drivers
- All constructors (including chassis)
- All engine manufacturers (including engines)
- All tyre manufacturers
- All circuits and location data
- All seasons from 1950 to present; including:
- entrants
- standings
- All races; including:
- free practice and warming-up results
- qualifying and pre-qualifying results
- sprint race results
- starting grid positions
- race results
- fastest laps
- pit stops
- driver of the day results
- standings
New releases will be available as soon as possible after every race. See also Versioning.
Release artifacts are available in the following formats:
- CSV
- JSON
- JSON splitted (multiple data files)
- Smile (binary variant of the JSON format)
- SQL (MySQL, PostgreSQL or SQLite .sql dump files to create and populate a custom database)
- SQL with single inserts (much smaller .sql dump files with single insert per table; better performance but not supported by all platforms)
- SQLite database
- Fixed type of
turns
property fromnumner
tointeger
inCircuit
andRace
objects.
To accommodate this change the JSON Schema is bumped to version v6.1.1
.
- Added
polePosition
property toRaceResult
object.
To accommodate this change the JSON Schema is bumped to version v6.1.0
.
- Added
direction
,length
andturns
properties toCircuit
object. - Added
direction
andturns
properties toRace
object (courseLength
already exists). - Added
driversChampionshipDecider
andconstructorsChampionshipDecider
properties toRace
object.
To accommodate these changes the JSON Schema is bumped to version v6.0.0
.
The main f1db.schema.json
schema file contains all F1DB object definitions and serves as the main documentation.
For the splitted distributions the splitted schema files must be used.
Both the JSON and Smile artifacts validate against the F1DB Json Schema.
The SQLite database artifact contains all data in a relational database format and can be used to directly query the data instead of processing the JSON format.
The database file could also serve students who want to learn SQL.
We suggest to use SQLiteStudio for querying the database file. Of course any SQLite compliant SQL client can be used as well.
Since v2024.3.0
SQL artifacts are available for MySQL, PostgreSQL and SQLite
that provide .sql dump files to import the schema and data directly in these database systems.
If you want to populate another database system (e.g. H2) then most likely the PostgreSQL .sql dump file is your best option. If that doesn't work, and you want a .sql dump file for another database system to be added to the release artifacts, then please create a feature request.
Releases are versioned using a "customized" CalVer versioning scheme:
YYYY.RR.MICRO(.MODIFIER)
which uses the following conventions:
- YYYY – Full year of the season –
2025
, .. - RR – Round number within the season –
0
,1
,2
, ..,10
,11
, .. - MICRO – Patch version –
0
,1
,2
, .. - MODIFIER – An optional text tag like
dev
,alpha
,beta
,rc
, ..
Note this is basically the YYYY.MINOR.MICRO(.MODIFIER)
pattern where MINOR
indicates the round number (RR
).
Examples:
- 2025.0.0 – Pre-season release before the 1st race round of the 2025 season.
- 2025.0.1 – Pre-season patch release before the 1st race round of the 2025 season.
- 2025.0.1 – First pre-season patch release before the 1st race round of the 2025 season.
- 2025.1.0 – Final release after the 1st race round of the 2025 season.
- 2025.2.0 – Final release after the 2nd race round of the 2025 season.
- 2025.2.1 – First patch release after the 2nd race round of the 2025 season.
- 2025.2.2 – Second patch release after the 2nd race round of the 2025 season.
As you can see we use a special RR 0
for pre-season releases.
The F1DB community can be found on GitHub Discussions, where you can ask and answer questions, voice ideas, and share your projects.
Keep in touch with us by following us on X or Bluesky.
We use GitHub Issues to track data issues or related problems.
If you found a data issue which is not reported yet, please create a new issue.
To build the distribution zips simply run:
./gradlew clean build
or without running the tests (way faster):
./gradlew clean build -x test
The build requires Java 21, running the tests requires an environment with Docker.
GitHub Actions is used to build and upload new releases by creating a new git tag.
Follow these steps:
- Update the version number in
gradle.properties
git commit -am "Release v<version>"
git push
git tag -a v<version> -m "Release v<version>"
git push origin v<version>
and the release action is automatically triggered by pushing the new tag.
F1DB is licensed under a Creative Commons Attribution 4.0 International License.