Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riccardotornesello/iracing-data-api


https://github.com/riccardotornesello/iracing-data-api

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# iRacing data API

## Installation

```bash
npm install iracing-data-api
yarn add iracing-data-api
pnpm i iracing-data-api
bun i iracing-data-api
```

## Basic Usage

```typescript
import IracingAPI from "iracing-data-api"

const irUser = "[email protected]"
const irPass = "BAR"

const main = async () => {
const ir = new IracingAPI()

// First you have to login to iracing using your credentials to be able to use the API.
await ir.login(irUser, irPass)

// Now you can use any endpoint, e.g. getCars
const cars = await ir.car.getCars()

console.log(cars)
}

main().then(() => "Done")
```

More information can be found in the package's [documentation](iracing-data-api/README.md).

## Project status

This project is actively used but since iRacing's API are not frequently updated, it will not receive many updates.