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

Compare

Compare trims

Code
GET /api/compare?ids={id1},{id2}

Returns the full specs of 2 to 5 trims in the order you list them. Use it to build side-by-side comparison tables.

Query parameters

NameTypeRequiredDescription
idsstringyes2 to 5 trim IDs, separated by commas

Example

TerminalCode
curl "http://localhost:3000/api/compare?ids=401901022,402002843"
Code
{ "data": [ { "id": 401901022, "make": "Acura", "model": "ILX", "year": 2022, "trim": "(base)", "trim_description": "4dr Sedan w/Premium Package (2.4L 4cyl 8AM)", "make_id": 1, "model_id": 1, "image_urls": [ "https://media.ed.edmunds-media.com/acura/ilx/2019/oem/2019_acura_ilx_sedan_technology-a...", "https://media.ed.edmunds-media.com/acura/ilx/2021/evox/2021_acura_ilx_sedan_base_pr_evo..." ], "source_url": "https://www.edmunds.com/acura/ilx/2022/review/", "pricing": { "base_msrp": 29300, "base_invoice": 28209, "used_price_range": null }, "body": { "body_type": "Sedan", "doors": 4, "total_seating": 5, "car_classification": "Compact car" }, "dimensions": { "length_in": 182.2, "width_in": 70.6, "height_in": 55.6, "wheelbase_in": 105.1, "ground_clearance_in": 5.3, "turning_circle_ft": 36.8, "angle_of_approach_degrees": null, "angle_of_departure_degrees": null, "epa_interior_volume_cu_ft": 101.7, "cargo_capacity_cu_ft": 12.4, "maximum_cargo_capacity_cu_ft": null }, "weight_and_capacity": { "curb_weight_lbs": 3122, "gross_weight_lbs": null, "maximum_payload_lbs": null, "maximum_towing_capacity_lbs": null }, "engine": { "engine_type": "gas", "cylinders": "I4", "engine_size_l": 2.4, "horsepower_hp": 201, "horsepower_rpm": 6800, "torque_ft_lbs": 180, "torque_rpm": 3600, "valves": 16, "valve_timing": "Variable", "cam_type": "Double overhead cam (DOHC)", "drive_type": "front wheel drive", "transmission": "8-speed automated manual" }, "fuel_economy": { "fuel_type": "premium unleaded (recommended)", "fuel_tank_capacity_gal": 13.2, "epa_combined_mpg": 28, "epa_city_highway_mpg": "24/34 MPG", "range_in_miles_city_hwy": "316.8/448.8 mi.", "epa_combined_mpge": null, "epa_city_highway_mpge": null, "epa_electricity_range_mi": null, "epa_kwh_100_mi": null, "epa_time_to_charge_battery_at_240v_hr": null, "battery_capacity_kwh": null }, "interior": { "front_head_room_in": 38, "front_hip_room_in": 50.3, "front_leg_room_in": 42.3, "front_shoulder_room_in": 55.6, "rear_head_room_in": 35.9, "rear_hip_room_in": 51.7, "rear_leg_room_in": 34, "rear_shoulder_room_in": 53.6 }, "warranty": { "basic": "4 yr./ 50000 mi.", "drivetrain": "6 yr./ 70000 mi.", "roadside_assistance": "4 yr./ 50000 mi.", "rust": "5 yr./ unlimited mi." }, "origin": { "country_of_origin": "Japan", "domestic_imported": "Imported", "platform_code_generation_number": "-" }, "date_added": "2021-08-08" }, { "id": 402002843, "make": "Honda", "model": "Civic", "year": 2024, "trim": "Sport", "trim_description": "Sport 4dr Sedan (2.0L 4cyl CVT)", "make_id": 17, "model_id": 181, "image_urls": [ "https://media.ed.edmunds-media.com/honda/civic/2023/oem/2023_honda_civic_sedan_si_fq_oe...", "https://media.ed.edmunds-media.com/honda/civic/2023/oem/2023_honda_civic_sedan_si_fq_oe..." ], "source_url": "https://www.edmunds.com/honda/civic/2024/review/", "pricing": { "base_msrp": 25550, "base_invoice": null, "used_price_range": null }, "body": { "body_type": "Sedan", "doors": 4, "total_seating": 5, "car_classification": "Compact car" }, "dimensions": { "length_in": 184, "width_in": 70.9, "height_in": 55.7, "wheelbase_in": 107.7, "ground_clearance_in": null, "turning_circle_ft": 38.1, "angle_of_approach_degrees": null, "angle_of_departure_degrees": null, "epa_interior_volume_cu_ft": 113.8, "cargo_capacity_cu_ft": 14.8, "maximum_cargo_capacity_cu_ft": null }, "weight_and_capacity": { "curb_weight_lbs": 2935, "gross_weight_lbs": null, "maximum_payload_lbs": null, "maximum_towing_capacity_lbs": null }, "engine": { "engine_type": "gas", "cylinders": "I4", "engine_size_l": 2, "horsepower_hp": 158, "horsepower_rpm": 6500, "torque_ft_lbs": 138, "torque_rpm": 4200, "valves": 16, "valve_timing": "Variable", "cam_type": "Double overhead cam (DOHC)", "drive_type": "front wheel drive", "transmission": "continuously variable-speed automatic" }, "fuel_economy": { "fuel_type": "regular unleaded", "fuel_tank_capacity_gal": 12.4, "epa_combined_mpg": 33, "epa_city_highway_mpg": "30/37 MPG", "range_in_miles_city_hwy": "372.0/458.8 mi.", "epa_combined_mpge": null, "epa_city_highway_mpge": null, "epa_electricity_range_mi": null, "epa_kwh_100_mi": null, "epa_time_to_charge_battery_at_240v_hr": null, "battery_capacity_kwh": null }, "interior": { "front_head_room_in": 39.3, "front_hip_room_in": 54.3, "front_leg_room_in": 42.3, "front_shoulder_room_in": 57, "rear_head_room_in": 37.1, "rear_hip_room_in": 48.9, "rear_leg_room_in": 37.4, "rear_shoulder_room_in": 56 }, "warranty": { "basic": "3 yr./ 36000 mi.", "drivetrain": "5 yr./ 60000 mi.", "roadside_assistance": "3 yr./ 36000 mi.", "rust": "5 yr./ unlimited mi." }, "origin": { "country_of_origin": "Japan", "domestic_imported": "Imported", "platform_code_generation_number": "10th gen" }, "date_added": "2023-08-20" } ] }

Long text and arrays are shortened in these examples.

Each item has the same sections as Get a trim, without review and colors. Get those from the trim endpoints if you need them.

Errors

StatusWhen
400ids is missing, has fewer than 2 or more than 5 IDs, or has an ID that is not a number
404One of the trims does not exist
Last modified on November 7, 2026
Getting startedConventions
On this page
  • Compare trims
    • Query parameters
    • Example
    • Errors
JSON