CarsXECarsXE

Product pages: Vehicle Specifications and Plate Image Recognition

Get exterior dimensions, curb weight, gross vehicle weight rating (GVWR), and vehicle classification in one response. Use Vehicle Dimensions when you have a VIN, a US plate and state, or a catalog trim. Use Classify a Vehicle From a Plate Image when your input is a photo with one readable US plate.

Who uses this API

Parking operators, fleet managers, and logistics teams use vehicle measurements to screen for garage clearance, assign lanes or bays, and identify vehicles that may need charging access.

Use cases

B2B

B2C

Look up vehicle dimensions

Send GET /v1/vehicle/dimensions with your API key and exactly one set of identifiers.

Query parametersDescription
keyRequired CarsXE API key.
vinThe vehicle's 17-character VIN.
plate and stateA US license plate and its two-letter issuing code, such as CA. Both parameters are required for a plate lookup.
year, make, model, and trimAll four fields are required for a catalog lookup. A short trim can match multiple configurations; see below.

Look up dimensions by VIN

Code
curl -G 'https://api.carsxe.com/v1/vehicle/dimensions' \
  --data-urlencode 'key=YOUR_API_KEY' \
  --data-urlencode 'vin=3TMKB5FNXRM012539'

For a plate lookup, replace vin with plate and state. For a catalog lookup, pass year, make, model, and trim instead. When a short trim matches multiple styles that all agree on length, width, height, parking category, and weight class, the response contains the values they share. Otherwise the request returns 409 with the full style names in trim_options, and it is not charged. Retry with one of those names, or look one up in YMM Options.

{
  "success": false,
  "message": "Trim matches multiple configurations. Supply the full catalog style name.",
  "trim_options": ["XL 4dr Van LWB", "XL 4dr Van SWB"]
}

Classify a vehicle from a plate image

Send POST /v1/vehicle/classify with key in the query and upload_url in the JSON body. Use a publicly accessible HTTP or HTTPS URL for a photo showing one US plate. The service reads the plate and issuing state, looks up the vehicle's VIN, and returns the same response shape as the dimensions endpoint.

Classify a vehicle from a photo

Code
curl -X POST 'https://api.carsxe.com/v1/vehicle/classify?key=YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"upload_url":"https://imagedelivery.net/moyiiSImjJPI_EZVxNMBBw/f49aed53-d736-4370-f3f4-97418841c800/public"}'

Replace the sample URL with your image URL. A photo without exactly one readable US plate returns 422, and it is not charged. If the application already has a verified plate and state, use the direct dimensions request to skip image recognition. Use Plate Image Recognition when you need the raw OCR result, region, or alternate candidates.

Response

Both endpoints return success: true and five objects. This example shows a Tacoma response after the catalog lookup completes. Availability varies by vehicle and source.

ObjectWhat it contains
vehicleYear, make, model, and trim.
dimensionsMeasurements in inches, weights in pounds, and cargo volume in cubic feet.
classificationBody style, size class, parking category, weight class, commercial status when reported, and passenger capacity.
fuel_and_energyFuel type, fuel economy in MPG, tank capacity in gallons, range in miles, and EV charging fields when applicable.
towing_and_haulingMaximum towing and payload ratings in pounds, plus reported hitch status.
{
  "success": true,
  "vehicle": {
    "year": 2024,
    "make": "Toyota",
    "model": "Tacoma",
    "trim": "TRD Sport Double Cab 2WD"
  },
  "dimensions": {
    "length_in": 213,
    "width_in": 77.9,
    "height_in": 74.7,
    "wheelbase_in": 131.9,
    "curb_weight_lbs": 4265,
    "gvwr_lbs": 5775,
    "bed_length_in": 60.3,
    "cargo_volume_cuft": null,
    "ground_clearance_in": null
  },
  "classification": {
    "body_style": "extended_cab_pickup",
    "size_class": null,
    "parking_category": "full_size",
    "weight_class": "class_1",
    "is_commercial": null,
    "passenger_capacity": 5
  },
  "fuel_and_energy": {
    "fuel_type": "gasoline",
    "mpg_city": null,
    "mpg_highway": null,
    "mpg_combined": null,
    "tank_size_gal": 18.2,
    "range_miles": null,
    "ev_specs": null
  },
  "towing_and_hauling": {
    "max_towing_lbs": 6400,
    "max_payload_lbs": 1445,
    "has_trailer_hitch": false
  }
}

Use null as unavailable or inapplicable. For example, bed_length_in applies to pickups and trucks, while cargo_volume_cuft applies to SUVs, wagons, and vans when a figure is available. Commercial status, bed length, size class, hitch status, and payload depend on the source. A 200 always has at least one of length, width, or height. A VIN with none of them returns a free 404.

Parking categories

The API uses the first matching category in this table.

CategoryLengthWidth
compact≤ 185 in≤ 70 in
standard≤ 200 in≤ 75 in
full_size≤ 220 in≤ 80 in
oversizedOver 220 inOr over 80 in

One measurement above the oversized limit is enough to return oversized. If either measurement is missing and the other is within the limit, the category is unknown. Check length, width, and height against your facility's limits before confirming fit. width_in is the body width without mirrors. A width that includes mirrors is never reported, so width_in is null when no body width is published.

Weight classes

The weight class uses GVWR or a vehicle weight class already reported by the source. If neither establishes a class, weight_class is unknown.

ClassGVWR in pounds
class_1Up to 6,000
class_2Over 6,000 through 10,000
class_3Over 10,000 through 14,000
class_4Over 14,000 through 16,000
class_5Over 16,000 through 19,500
class_6Over 19,500 through 26,000
class_7Over 26,000 through 33,000
class_8Over 33,000

Fuel and charging

Combined MPG can be estimated from city and highway figures. When both tank capacity and combined MPG are available, the API can estimate fuel range. A battery-electric vehicle's range is its electric range. For a plug-in hybrid, use ev_specs.range_miles for the electric-only range.

For electric and plug-in hybrid vehicles, ev_specs can include battery capacity, electric range, charge port, peak DC power, Level 2 charging time, and DC 10–80% charging time. For supported matches, CarsXE fills missing electric range and Level 2 charging time from a matched record for the same powertrain and drivetrain. Individual fields can still be null.

Billing

Each step bills at its own product's price on your plan. See Pricing for current prices.

InputSteps charged
VINSpecifications
Year, make, model, and trimYear Make Model
US plate and stateUS Plate Decoder and Specifications
Plate imagePlate Image Recognition, US Plate Decoder, and Specifications

See Billing Units.

Errors

StatusWhat to check
400Send one complete identifier set. For image classification, send a public HTTP or HTTPS URL in upload_url.
401Check the API key and account.
402Your credit balance does not cover the total for this input. Nothing was charged.
403Vehicle dimensions are not enabled for the account. Contact support to enable them.
404The lookup found no vehicle or usable VIN, the VIN has no known length, width, or height, or the US Plate Decoder is not enabled for the account. For a VIN without measurements, retry by year, make, model, and trim. Not charged.
405Use GET for dimensions and POST for image classification.
409The trim matches several catalog styles. Retry with one of the names in trim_options. Not charged.
422Check that the URL serves an accessible image with one identifiable US plate and a readable state. If you know both values, submit them directly to the dimensions endpoint. Not charged.
429Too many photos without a usable plate this hour. Retry after the Retry-After header. Not charged.
503The vehicle catalog or an upstream service is temporarily unavailable. Not charged, so retrying after the Retry-After header is safe.

For billing, rate limit, and provider errors, see the Errors guide.