Nissan VIN Location and VIN OCR API
Where to find the VIN on a Nissan, what its first characters mean, and how to read it from a photo with an API and decode the model year.
Where the VIN Is on a Nissan
On Nissan vehicles sold in North America, the 17-character VIN is on a plate at the lower driver-side corner of the windshield, readable from outside, and on the certification label in the driver-side door jamb. It also appears on the title, registration, and insurance card. Nissan builds in Japan, the United States, and Mexico, and the first character of the VIN tells them apart.
Reading a Nissan VIN from a Photo
Common Nissan manufacturer identifiers include JN1 and JN8 (Japan-built), 1N4 (US-built cars), 5N1 (US-built SUVs), 3N1 (Mexico-built). Send a photo of the windshield plate, door label, or document to the VIN OCR API; it returns the VIN and where it was read from. To get make, model, and year, pass the VIN to NHTSA’s free vPIC API. Try it first with the free VIN scanner.
Where This Fits
- Dealer trade-ins: Capture Nissan VINs from the windshield during appraisal without typing 17 characters.
- Insurance and claims: Read the VIN from the door label or registration card and attach it to the policy or claim.
- Fleet and rental lots: Audit lots by photographing windshield plates from outside the vehicle.
Read the VIN, Then Decode It
Extract the VIN with StructOCR, then decode make, model, and year with NHTSA vPIC.
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")
# 1. Read the VIN from the photo with StructOCR
ocr = requests.post(
"https://api.structocr.com/v1/vin",
headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
json={"img": image},
timeout=30,
)
ocr.raise_for_status()
vin = ocr.json()["data"]["vin"]
# 2. Decode make, model, and year with NHTSA's free vPIC API
decoded = requests.get(
f"https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVinValues/{vin}?format=json",
timeout=30,
).json()["Results"][0]
print(vin, decoded["Make"], decoded["Model"], decoded["ModelYear"])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 (for example windshield or door_jamb)
Key Features
- •VIN-aware reading: I, O, and Q never appear in VINs, which removes a common source of OCR confusion.
- •Check digit: North American VINs carry a check digit in position 9 that you can validate after extraction.
- •Model year: Position 10 encodes the model year on a 30-year cycle.
- •Decoding is separate: The API reads the VIN; decoding Nissan-specific trim and engine details is done by a VIN decoder.
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": "windshield"
}
}Frequently Asked Questions
Where is the VIN on a Nissan?
At the base of the windshield on the driver side, on the driver-side door-jamb label, and on registration and insurance documents.
What do the first three characters of a Nissan VIN mean?
They are the World Manufacturer Identifier. Common Nissan prefixes include JN1 and JN8 (Japan-built), 1N4 (US-built cars), 5N1 (US-built SUVs), 3N1 (Mexico-built).
Does the API return make and model?
No. It returns the VIN read from the image. Use a VIN decoder such as NHTSA vPIC for make, model, and year.
You May Also Like
Related tutorials, platform guides, and comparisons
Volkswagen VIN Location and VIN OCR API
Where to find the VIN on a Volkswagen, what its first characters mean, and how to read it from a photo with an API and decode the model year.
Toyota VIN Location and VIN OCR API
Where to find the VIN on a Toyota, what its first characters mean, and how to read it from a photo with an API and decode the model year.
Jeep VIN Location and VIN OCR API
Where to find the VIN on a Jeep, what its first characters mean, and how to read it from a photo with an API and decode the model year.
Rental Fleet VIN Capture at Check-Out and Return
Where the VIN is on a rental fleet, how to photograph it so it reads reliably, and how to extract it with a VIN OCR API.
RV and Motorhome VIN OCR API
Where the VIN is on a rv and motorhome, how to photograph it so it reads reliably, and how to extract it with a VIN OCR API.
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.
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.
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 Shipping Container OCR API
Tutorial: How to use the StructOCR Node.js SDK to extract data from Shipping Containers. Upload an image for a free test! Includes code samples and JSON schema.
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.