Documentation
Models
A model is a car line within a make, such as the Toyota RAV4.
Get a model
Code
Returns the model with a summary for each model year.
Path parameters
| Name | Type | Description |
|---|---|---|
modelId | integer | Model ID |
Example
Code
Code
Fields
| Field | Type | Description |
|---|---|---|
id | integer | Model ID |
name | string | Model name |
make_id | integer | Make ID |
make | string | Make name |
trim_count | integer | Number of trims, all years |
min_msrp / max_msrp | integer | Base price range, all years |
years | object[] | One entry per model year, each with year, trim_count, min_msrp and max_msrp |
Returns 404 if the model does not exist.
List trims of a model
Code
Returns the model's trims, newest year first, then cheapest first. The list is not paged.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
modelId | path | integer | Model ID |
year | query | integer | Optional. Only trims of this model year |
Example
Code
Code
Long text and arrays are shortened in these examples.
Each item is a trim summary.
Returns 404 if the model does not exist.
Last modified on