Get Makes
Get a list of all available makes in the database.
GET https://api.oldcarsdata.com/makes
Request Parameters
No parameters required.
Code Examples
cURL
bash
curl "https://api.oldcarsdata.com/makes"JavaScript
javascript
const response = await fetch('https://api.oldcarsdata.com/makes');
const data = await response.json();Python
python
import requests
response = requests.get('https://api.oldcarsdata.com/makes')
data = response.json()Success Response (200)
Makes retrieved successfully.
json
{
"data": [
"Toyota",
"Ford",
"Chevrolet",
"BMW",
"Mercedes-Benz"
]
}Response Fields
| Field | Type | Description |
|---|---|---|
data | array | Array of make names (strings), sorted alphabetically |
Error Responses
| Field | Type | Description |
|---|---|---|
error | string | Error type identifier |
message | string | Human-readable error message |
500 — Internal Server Error:
json
{
"error": "Internal Server Error",
"message": "An unexpected error occurred"
}