ahunte / iracingdataapi

A simple wrapper around the iRacing General Data API

Home Page:https://www.github.com/jasondilworth56/iracingdataapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

iracing-data-api is a simple Python wrapper around the General Data API released by iRacing in January 2022 and documented here.

The client allows easy access to some of the most useful endpoints of the data API.

Installation

pip install iracingdataapi

Examples

from iracingdataapi.client import irDataClient

idc = irDataClient(username=[YOUR iRACING USERNAME], password=[YOUR iRACING PASSWORD])

# get the summary data of a member
idc.get_member_summary(cust_id=20979)

# get latest results of a member
idc.get_member_recent_races(cust_id=209179)

# get all laps for a specific driver in a race
idc.get_result_lap_data(subsession_id=43720351, cust_id=209179)

All available methods of irDataClient are included in client.py.

Contributing

I welcome all pull requests for improvements or missing endpoints over time as they are added by iRacing.

About

A simple wrapper around the iRacing General Data API

https://www.github.com/jasondilworth56/iracingdataapi

License:MIT License


Languages

Language:Python 100.0%