Reading Pre-1981 Classic Car VINs and Serial Numbers
Where the VIN is on a classic car (pre-1981), how to photograph it so it reads reliably, and how to extract it with a VIN OCR API.
Where to Find the VIN on a Classic Car (Pre-1981)
The standardized 17-character VIN started with model year 1981. Older vehicles use manufacturer-specific serial numbers of varying length, often on a dash or door-pillar plate.
Capture and Extract It Reliably
Treat short or irregular serials as valid historical identifiers and do not force 17-character validation on them. Then send the photo to the VIN OCR API, which returns the VIN and the surface it was read from. Test with the free VIN scanner.
Where This Fits
- Classic car insurance: Replace manual transcription of 17-character identifiers with a photo.
- Auction and appraisal intake: Attach the extracted VIN and its source surface to the record for audit.
- Restoration records: Send low-confidence reads to a review queue instead of saving them.
Python Example
Send the image as Base64 JSON and read the VIN fields.
Prerequisite: Python 3.9+, `pip install requests`, and a STRUCTOCR_API_KEY
import base64
import os
import requests
with open("vin.jpg", "rb") as image_file:
image = base64.b64encode(image_file.read()).decode("ascii")
response = requests.post(
"https://api.structocr.com/v1/vin",
headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
json={"img": image},
timeout=30,
)
response.raise_for_status()
data = response.json()["data"]
print("vin:", data.get("vin"))
print("confidence:", data.get("confidence"))
print("carrier_type:", data.get("carrier_type"))Technical Specs
- •Endpoint: POST https://api.structocr.com/v1/vin
- •Authentication: x-api-key request header
- •Inputs: JPG, PNG, or WebP as Base64 JSON; maximum 4.5MB
- •Price: 1 credit per successful request; failed requests are not billed
- •Free trial: 200 free credits on sign-up, no credit card required
- •Output: vin, confidence, and carrier_type
Key Features
- •Works on many surfaces: Plates, stamped metal, labels, documents, and screens.
- •Confidence returned: Route low-confidence results to review.
- •Per-success billing: You pay 1 credit only when a VIN is returned.
- •Server-side key: Keep your API key on the backend, not in mobile apps.
Sample VIN Response
Illustrative response using the Wikipedia sample VIN. The API returns the VIN as read; decoding happens in a separate step.
{
"success": true,
"data": {
"vin": "1M8GDM9AXKP042788",
"confidence": "High",
"carrier_type": "metal_plate"
}
}Frequently Asked Questions
Where is the VIN on a classic car (pre-1981)?
The standardized 17-character VIN started with model year 1981. Older vehicles use manufacturer-specific serial numbers of varying length, often on a dash or door-pillar plate.
How do I get a clean photo?
Treat short or irregular serials as valid historical identifiers and do not force 17-character validation on them.
Can the API decode the vehicle details?
It returns the VIN. Use a VIN decoding service for manufacturer, model, and year.
You May Also Like
Related tutorials, platform guides, and comparisons
Mazda VIN Location and VIN OCR API
Where to find the VIN on a Mazda, what its first characters mean, and how to read it from a photo with an API and decode the model year.
Mercedes-Benz VIN Location and VIN OCR API
Where to find the VIN on a Mercedes-Benz, what its first characters mean, and how to read it from a photo with an API and decode the model year.
PHP VIN OCR API
Tutorial: How to use the StructOCR PHP Client to extract data from VINs. Upload an image for a free test! Includes code samples and JSON schema.
Rivian VIN Location and VIN OCR API
Where to find the VIN on a Rivian, what its first characters mean, and how to read it from a photo with an API and decode the model year.
Go VIN OCR API
Upload an image for a free test! Tutorial: How to use the StructOCR Go Client to extract data from VIN (Vehicle Identification Number)s. Includes code samples and JSON schema.
C# VIN OCR API
Upload an image for a free test! Tutorial: How to use the StructOCR C# Client to extract data from VIN (Vehicle Identification Number)s. Includes code samples and JSON schema.
Commercial Van VIN OCR for Upfit and Delivery Fleets
Where the VIN is on a commercial van, how to photograph it so it reads reliably, and how to extract it with a VIN OCR API.
Java VIN OCR API
Tutorial: How to use the StructOCR Java Client to extract data from VINs. Upload an image for a free test! Includes code samples and JSON schema.
Node.js VIN OCR API
Tutorial: How to use the StructOCR Node.js SDK to extract data from VINs. Upload an image for a free test! Includes code samples and JSON schema.
Cloudflare Workers PDF417 Driver License API
Build an edge API proxy that decodes US driver license PDF417 barcodes and returns normalized AAMVA JSON with safe retake handling.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Add VIN OCR to Your v0 App in 5 Minutes
Step-by-step guide to integrating the StructOCR VIN scanner API into a v0 by Vercel app. Build automotive and fleet tools with zero backend.
VIN Barcode Scanner vs. VIN OCR API: Which is Better for Mobile Apps?
Deciding between local VIN barcode scanners and cloud-based VIN OCR API for your mobile app? Learn why OCR is the required fallback for damaged or chassis-stamped VINs.
Apple Vision Framework / ML Kit vs. StructOCR VIN API
Why generic on-device text recognition frameworks fail at decoding VINs, and when to switch to a specialized automotive API.
Add VIN OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR VIN scanner API into a Bolt.new app. Build automotive and fleet tools right in your browser.
Add VIN OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR VIN scanner API using the Cursor AI code editor. Build automotive and fleet tools rapidly.
Add VIN OCR to Your Lovable.dev App in 5 Minutes
Step-by-step guide to integrating the StructOCR VIN scanner API into a Lovable.dev app. Build automotive and fleet tools with zero backend required.
From tutorial to production in 5 minutes.
You've seen the code. Now get your API key, grab your 200 free credits, and see it work with your own images. No credit card required.