CarBaseCarBaseCarBase
CarBase

Specs, prices and colors of every new US-market car, 2022 to 2025.

Developers

  • Getting started
  • API Reference
  • Pricing
  • Sign in

© 2026 CarBase

  • Documentation
  • API Reference
  • Pricing
CarBase APIGetting startedCompareConventionsData dictionaryErrorsMakesModelsReference dataTrims
powered by apitogo
Documentation

Getting started

This guide takes you from nothing to your first search in a few minutes.

1. Check the API is up

TerminalCode
curl http://localhost:3000/health
Code
{ "status": "ok" }

2. Find a make

TerminalCode
curl http://localhost:3000/api/makes

Each make has an id. Acura is 1.

3. List its models

TerminalCode
curl "http://localhost:3000/api/makes/1/models?year=2024"

Each model has an id. The Acura Integra is 2.

4. List the model's trims

TerminalCode
curl "http://localhost:3000/api/models/2/trims?year=2024"

5. Get full specs for one trim

TerminalCode
curl http://localhost:3000/api/trims/401901022

6. Or skip the browsing and search directly

Electric SUVs under $50,000, cheapest first:

TerminalCode
curl "http://localhost:3000/api/trims?body_type=SUV&engine_type=electric&max_price=50000&sort=price"

Running the server yourself

The server lives in the server folder and needs Node.js 22.5 or newer.

TerminalCode
cd server npm install npm start
VariableDefaultDescription
PORT3000Port to listen on
DB_PATHdata/carbase.sqlite (inside server/)Path to the SQLite database

Tools

  • Postman: import server/CarBase.postman_collection.json for 29 ready-made requests.
  • OpenAPI: the spec is at GET /openapi.json and in APIs/openapi.json.

Next

Read the conventions that apply to every endpoint.

Last modified on November 8, 2026
CarBase APICompare
On this page
  • 1. Check the API is up
  • 2. Find a make
  • 3. List its models
  • 4. List the model's trims
  • 5. Get full specs for one trim
  • 6. Or skip the browsing and search directly
  • Running the server yourself
  • Tools
  • Next
JSON