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

FieldTypeDescription
dataarrayArray of make names (strings), sorted alphabetically

Error Responses

FieldTypeDescription
errorstringError type identifier
messagestringHuman-readable error message

500 — Internal Server Error:

json
{
  "error": "Internal Server Error",
  "message": "An unexpected error occurred"
}