https://github.com/rafacv23/f1-api
Open and free Formula One (F1) API. Built with Next.js, Turso (SQLite) and Typescript. Tested with Playwright.
https://github.com/rafacv23/f1-api
api f1 formula1 formulaone open openapi public
Last synced: 2 months ago
JSON representation
Open and free Formula One (F1) API. Built with Next.js, Turso (SQLite) and Typescript. Tested with Playwright.
- Host: GitHub
- URL: https://github.com/rafacv23/f1-api
- Owner: Rafacv23
- License: mit
- Created: 2024-05-06T11:31:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-01T10:38:58.000Z (2 months ago)
- Last Synced: 2025-08-01T12:52:02.622Z (2 months ago)
- Topics: api, f1, formula1, formulaone, open, openapi, public
- Language: TypeScript
- Homepage: https://f1api.dev
- Size: 1.52 MB
- Stars: 41
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 🏎️ F1api.dev | Your free & open source F1 api, ready for development
[](#contributors-)
[](https://github.com/rafacv23/F1-api) [](https://github.com/rafacv23/F1-api/fork)
Project made with Next.js and Turso to take all the data about the Formula 1 Championship.
[f1api.dev](https://f1api.dev)

## 🛫 Endpoints
You can find all the available endpoints in the [docs](https://f1api.dev/docs) section of the website.
## 🪄 Official SDK to use the API
You can use the official SDK to use the API. This is not mandatory, you can simply use fetch to get the data.
[F1 API SDK GitHub](https://github.com/Rafacv23/f1api-sdk)
[F1 API SDK NPM](https://www.npmjs.com/package/@f1api/sdk)### Installation
You can use npm, pnpm, yarn or bun to install this package.
```bash
npm install @f1api/sdk
```### Usage
#### Initialize the SDK
You can use coommonjs or ES6 import to initialize the SDK.
```js
import F1Api from "@f1api/sdk"const f1Api = new F1Api()
```#### Use any method to retrieve endpoint data
```js
const drivers = await f1Api.getDrivers()
```## ⌨️ Stack
- Next.js
- React
- Turso
- JavaScript
- TypeScript
- Tailwind
- Shadcn
- HyperUi
- Playwright## 📱 Contact
You can contact with us [contact](https://f1api.dev/contact) section of the website.
## 👀 Be part of the project
Feel free to check my code and make comments about it. And use it in your daily work.
```
git clone https://github.com/Rafacv23/F1-api
```## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Artem Anisimov
🌍 🐛
Paul
🐛
Darlann Banache
🐛
zhenghaoyang24
🤔
Chanzy ma
🐛
Jelger Haanstra
🎨
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!