Project CARS 2 Randomizer API

Desktop Basic Cell

The randomizer was created to add some fun and variety into race nights. Want to level the playing field? Nobody practices Indycars on an RX track...in the rain.

Even if you're just looking for a random car, some random classes, anything - the randomizer is designed to make those decisions for you.

Updated for patch 6 - notes at the bottom. Contact me on Discord at JasonSandwich#1976 with all feedback. Made in Arizona and free to use. Enjoy!

API

Path

All calls are made to https://pc2randomizer.azurewebsites.net/api/PC2Randomizer

Flags

Default values are bold. Order does not matter.

format

Determines output from API. No default; required.

images

Include images in HTML output. The default may change if it is expensive for me.

dlc

Include DLC cars and tracks.

karts

Include kart tracks.

rx

Include rally cross tracks.

snow

Chance of snow on a track that would allow it. If Fuji is randomly chose, there is a chance of snow being chosen as the season. "Snow" is a season type
different from the snow weather type. If this is set to false, snow can still fall but the track will not be pre-covered in snow.

snowpct

If the above is true, this is the likelihood of snow being chosen if the track supports snow. By default, this is 30 percent. For no snow, set above flag to false.

laps

This sets the maximum number of laps. This number is used to calculate the race time also, guessing an average speed of 90mph. This is wildly inaccurate
so consider it just another alternate recommendation for the race length.

avs

Average speed in MPH used to figure race length. Default is 90. Take a good guess!

Samples

XML

HTML

Notes

  1. 20180604 - added le mans legend dlc
  2. 20180601 - added dlc flag to documentation and updated examples, forgot to include it with initial documentation
  3. 20180528 - added avs argument to feed average speed, changed assets to transfer via https only