@openf1-client-sdk/sdk
v0.1.1
Published
TypeScript client for the OpenF1 API
Readme
@openf1-client-sdk/sdk
TypeScript client for the OpenF1 API.
All data comes from OpenF1. This package is not affiliated with, endorsed by, or maintained by the OpenF1 project.
Install
npm install @openf1-client-sdk/sdkRequires Node.js 18+.
Usage
import { OpenF1Client } from "@openf1-client-sdk/sdk";
const client = new OpenF1Client({
token: process.env.OPENF1_TOKEN,
});
const laps = await client.laps.list({
session_key: "latest",
driver_number: 44,
lap_number: { lte: 3 },
});Historical data works without auth. Real-time data requires a Bearer token or username/password credentials.
Resources
Covers all OpenF1 v1 endpoints: car_data, championship_drivers, championship_teams, drivers, intervals, laps, location, meetings, overtakes, pit, position, race_control, sessions, session_result, starting_grid, stints, team_radio, and weather.
Each resource exposes .list(params) and .listCsv(params).
Links
License
EUPL-1.2
