Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riccardotornesello/iracing-data-api
https://github.com/riccardotornesello/iracing-data-api
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/riccardotornesello/iracing-data-api
- Owner: riccardotornesello
- Created: 2024-09-15T21:50:24.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T20:57:26.000Z (3 months ago)
- Last Synced: 2024-12-02T12:58:38.316Z (24 days ago)
- Language: TypeScript
- Size: 1.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.