Cars
/
Retrieve option codes

Option Codes

It returns the list of known option codes that can be associated with a car.

curl https://api.teslahunt.io/cars/optioncodes --header 'x-api-key: YOUR_TOKEN'

A option code can represent any aspect of the car such as battery pack, country location, paint color, extract package, etc.

You can use filterByFormula for getting specific option codes results.

e.g, get Tesla cars with pearl white multi-coat paint color:

curl 'https://api.teslahunt.io/cars' \
  --get \
  --data-urlencode 'filterByFormula=FIND("PPSW",{optionCodes})' \
  --header 'x-api-key: YOUR_TOKEN'

See teslahunt.io/optioncodes to visualize all the possibilities at glance.