Java implementation to get a historical record of motor racing data from Ergast Developer API.
You have to initialize Ergast object:
Ergast ergast = new Ergast(2016, 100, 2);
Ergast ergast = new Ergast();
If you use default constructor, season will be set as -1, limit as 30 and offset as 0. You can get the following objects that satisfy Ergast queries:
- Season
- Qualification
- Constructor
- LapTimes
- Schedule
- DriverStandings, ConstructorStandings
- Circuit
- RacePitStops
- RaceResult
- Driver
- FinishingStatus
For example, to get information about pit stops at final race of 2016 season with 100 limit:
Ergast ergast = new Ergast(2016, 100, Ergast.DEFAULT_OFFSET);
ergast.getRacePitStops(21).forEach(System.out::println);