CarsXE

Recognition turns vehicle images into structured identifiers you can use in the rest of the CarsXE API. Use Plate Image Recognition when the photo contains a license plate. Use VIN OCR when the photo contains a VIN plate, dashboard VIN, or sticker. Both endpoints are POST requests with JSON bodies and key as a query parameter.

When to use it

Plate Image Recognition

Extract a license plate number and region from a vehicle image.

Parameters

ParameterRequiredLocationDescription
keyYesQueryYour CarsXE API key
image_urlYesJSON bodyPublic URL to an image of a vehicle/license plate

Use image_url for raw HTTP requests. Some SDKs may expose this as upload_url; the endpoint body field remains image_url.

Example

Recognize a plate

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

Response

Top-level shape

{
"success": true,// always true on 200
"message": "",// empty on success
"processing_time": 117.822,// milliseconds
}

Click any object or array to expand it and see sample data. For the full interactive reference, try it live in the API Reference.

All response fields are optional. If results is empty or missing, no plate was detected.

results

Bounding boxes

Coordinates are pixel offsets in the original image. xmin and ymin mark the top-left corner. xmax and ymax mark the bottom-right corner. Use these values to draw overlays or crop the detected plate or vehicle.

Region and candidates

region - predicted registration region

The region.code identifies the predicted plate region, such as "us-ca". The region.score value is the confidence for that region prediction, from 0 to 1.

candidates - alternate plate readings

Use candidates when the top plate result is ambiguous. Each candidate includes a possible plate string and a score so you can decide whether to show alternatives, ask for review, or accept the top result automatically.

VIN OCR

Extract a 17-character VIN from an image.

Parameters

ParameterRequiredLocationDescription
keyYesQueryYour CarsXE API key
image_urlYesJSON bodyPublic image URL or base64-encoded image string

Example

Extract a VIN

Code
curl -X POST "https://api.carsxe.com/v1/vinocr?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://user-images.githubusercontent.com/5663423/30922082-64edb4fa-a3a8-11e7-873e-3fbcdce8ea3a.png"}'

Response

Top-level shape

{
"success": true,// always true on 200
"vin": "JHLRD77874C026456",
"confidence": 0.9834251403808594,
}

Click any object or array to expand it and see sample data. For the full interactive reference, try it live in the API Reference.

All response fields are optional. A successful response can include one best VIN plus candidate VINs when multiple readings are possible.

VIN fields

Image quality

Chaining Recognition With Vehicle Data

Plate Image Recognition returns a plate string; pass that into Plate Decoder when you need vehicle details. VIN OCR returns a VIN; pass that into Specifications, Market Value, Vehicle History, or Recalls.

Use the API Reference to try these endpoints live and inspect the complete schemas.

Errors

See the Errors guide for the full list.

Plate Image Recognition:

VIN OCR: