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

Conventions

These rules apply to every endpoint.

Requests

  • Every endpoint uses GET.
  • No authentication is needed.
  • Query parameters are plain strings, for example ?year=2024&sort=-price.
  • Text filters such as make, model, body_type and country ignore upper and lower case.
  • CORS is open (Access-Control-Allow-Origin: *), so browsers can call the API directly.

Responses

  • Every response is JSON.
  • Lists come back in a data array.
  • Short lists also have a count field.
  • Paged lists have a pagination object instead (see below).

IDs

ResourceID fieldExample
Makeid / make_id1 (Acura)
Modelid / model_id2 (Acura Integra)
Trimid401901022

Trim IDs come from the source dataset and stay the same when the database is rebuilt. Make and model IDs are assigned when the database is built and can change if it is rebuilt from a newer file. Do not store them long term; store names, or trim IDs.

Pagination

GET /api/trims returns results in pages.

ParameterDefaultLimits
page11 or more
limit201 to 100
Code
"pagination": { "page": 1, "limit": 20, "total": 77, "pages": 4 }

Sorting

GET /api/trims accepts a sort parameter. Prefix the field with - to sort in descending order.

ValueSorts by
priceBase MSRP
yearModel year
makeMake name
modelModel name
horsepowerHorsepower
torqueTorque
mpgEPA combined MPG
rangeEV range
weightCurb weight
towingMax towing capacity
seatsTotal seating

Trims with no value for the sort field always come last.

Example: ?sort=-horsepower returns the most powerful trims first.

Units

All values use US units. The unit is part of the field name.

SuffixUnit
_ininches
_ftfeet
_lbspounds
_llitres
_galUS gallons
_cu_ftcubic feet
_mimiles
_hphorsepower
_ft_lbspound-feet
_rpmrevolutions per minute
_kwhkilowatt-hours
_hrhours

Prices (base_msrp, base_invoice) are in US dollars, without cents.

Missing values

If a value is not known, the field is still returned with the value null. For example, gas cars have epa_electricity_range_mi: null and electric cars have epa_combined_mpg: null.

Last modified on November 7, 2026
CompareData dictionary
On this page
  • Requests
  • Responses
  • IDs
  • Pagination
  • Sorting
  • Units
  • Missing values
JSON