Get a list of all available makes in the database.
Makes retrieved successfully
No parameters required.
| Field | Type | Required | Description |
|---|---|---|---|
| data | array<string> | Required | Array of make names (strings), sorted alphabetically |
| Field | Type | Required | Description |
|---|---|---|---|
| error | string | Required | Error type identifier. Common values: "Validation Error", "HTTP Error", "Database Error", "Internal Server Error" |
| message | string | Required | Human-readable error message describing what went wrong |
| details | object<string, string[]> | - | Additional validation error details. Only present for 400 Validation Error responses. Keys are field names, values are arrays of error messages for that field |
const response = await fetch('https://api.oldcarsdata.com/makes');
const data = await response.json();{
"data": [
"Toyota",
"Ford",
"Chevrolet",
"BMW",
"Mercedes-Benz"
]
}