API Documentation
The following documentation explains the available endpoints available to retrieve vehicle data.
The API is available on car.dioapi.com
Random Vehicles
Endpoint: /api/random
Returns a list of randomly selected vehicles. By default, returns a list with only one vehicle.
Query Parameters
count - number
Specify the number of vehicles to return in the response. Default: 1
Required: false
Example
/api/random
Search Vehicles
Endpoint: /api/search
Returns a list of randomly selected vehicles. By default, returns a list of all matching vehicles.
Query Parameters
search - string
A search string to search for vehicles. Searches on make, model, region & description.
Required: true
limit - number
A maximum number of vehicles to return.
Required: false
Example
/api/search?search=aud&limit=1