VIN OCR
Extract the Vehicle Identification Number (VIN) from an image using OCR
Ever needed to quickly identify a vehicle's VIN from an image? Whether it's for verifying vehicle details or tracking, the VIN OCR API allows you to extract the VIN from an image (either a URL or base64 string) using optical character recognition (OCR) and computer vision. This API is capable of recognizing VINs from a wide range of vehicles, ensuring accurate and detailed vehicle information retrieval.
This endpoint allows you to retrieve a vehicle's VIN.
Required attributes
- Name
- key
- Type
- string
- Description
- Your CarsXE API key. 
 
- Name
- body
- Type
- string
- Description
- POST body that's a URL to an image or the base64 string of the image. 
 
Response attributes
- Name
- success
- Type
- boolean
- Description
- Whether the algorithm has been able to successfully analyze the VIN from the image. 
 
- Name
- vin
- Type
- string
- Description
- The extracted VIN number from the image. 
 
- Name
- confidence
- Type
- number
- Description
- The confidence score, which is a probability value (between 0 and 1) indicating how certain the algorithm is that the extracted VIN is correct. 
 
- Name
- message
- Type
- string
- Description
- String detailing error if any. 
 
Frequently asked questions
Request
curl --location 'https://api.carsxe.com/v1/vinocr?key=CARSXE_API_KEY' \
--header 'Content-Type: text/plain' \
--data 'https://user-images.githubusercontent.com/5663423/30922082-64edb4fa-a3a8-11e7-873e-3fbcdce8ea3a.png'Response
{
  "success": true,
  "vin": "JHLRD77874C026456",
  "box": {
      "xmin": 257,
      "xmax": 1673,
      "ymin": 635,
      "ymax": 793
  },
  "confidence": 0.9834251403808594,
  "candidates": [
      {
          "vin": "JHLRD77874C026456",
          "confidence": 0.9834251403808594,
          "box": {
              "xmin": 257,
              "xmax": 1673,
              "ymin": 635,
              "ymax": 793
          }
      }
  ]
}