API reference
VIN Recognition API
Read the VIN from a photo of a plate, door label or document, check-digit verified and decoded.
- Host
vin-recognition-read-vin-from-photo-decode.p.rapidapi.com- Base path
/v1/vin-photo- Auth
X-RapidAPI-Key,X-RapidAPI-Host- For agents
openapi.json·vin-photo.md
Overview and pricing · Tutorial: VIN Recognition API · RapidAPI playground (opens in a new tab) ↗
VIN Recognition
VINs read from a photo, checked, corrected and decoded.
Read VIN from Image URL
POST /v1/vin-photo/read
Read the VIN of a photo from its URL. Read every VIN in a photo from its URL (windshield, door label, plate, frame, registration, screenshot). Each VIN is checked (check digit) and look-alike misreads fixed. `decode=true` adds make, model, year, engine (NHTSA). 1 credit per photo, decoding included.
| Parameter | In | Type | Description |
|---|---|---|---|
url required |
body | string |
Direct link to a photo, scan or screenshot: PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB. |
decode |
body | boolean |
Also decode each VIN found (make, model, year, engine, equipment, from NHTSA). No extra credit. Default False. |
curl -X POST "https://vin-recognition-read-vin-from-photo-decode.p.rapidapi.com/v1/vin-photo/read" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: vin-recognition-read-vin-from-photo-decode.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"url": "https://upload.wikimedia.org/wikipedia/commons/d/d1/Vin_number_11.jpg",
"decode": true
}'
import requests
url = "https://vin-recognition-read-vin-from-photo-decode.p.rapidapi.com/v1/vin-photo/read"
payload = {
"url": "https://upload.wikimedia.org/wikipedia/commons/d/d1/Vin_number_11.jpg",
"decode": True
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "vin-recognition-read-vin-from-photo-decode.p.rapidapi.com",
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
const res = await fetch("https://vin-recognition-read-vin-from-photo-decode.p.rapidapi.com/v1/vin-photo/read", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "vin-recognition-read-vin-from-photo-decode.p.rapidapi.com",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://upload.wikimedia.org/wikipedia/commons/d/d1/Vin_number_11.jpg",
"decode": true
}),
});
console.log(await res.json());
Read VIN from Uploaded Image
POST /v1/vin-photo/read/upload
Read the VIN of an uploaded photo. Same as /read, for a photo sent as multipart/form-data (field `file`), e.g. straight from a phone camera.
| Parameter | In | Type | Description |
|---|---|---|---|
file required |
form | file |
Image, up to 20 MB. |
decode |
form | boolean |
Also decode each VIN found (make, model, year, engine, equipment, from NHTSA). No extra credit. Default False. |
curl -X POST "https://vin-recognition-read-vin-from-photo-decode.p.rapidapi.com/v1/vin-photo/read/upload" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: vin-recognition-read-vin-from-photo-decode.p.rapidapi.com" \
-F "file=@./my-file"
import requests
url = "https://vin-recognition-read-vin-from-photo-decode.p.rapidapi.com/v1/vin-photo/read/upload"
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "vin-recognition-read-vin-from-photo-decode.p.rapidapi.com",
}
with open("my-file", "rb") as f:
r = requests.post(url, headers=headers, files={"file": f})
print(r.json())
import { readFile } from "node:fs/promises";
const form = new FormData();
form.append("file", new Blob([await readFile("my-file")]), "my-file");
const res = await fetch("https://vin-recognition-read-vin-from-photo-decode.p.rapidapi.com/v1/vin-photo/read/upload", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "vin-recognition-read-vin-from-photo-decode.p.rapidapi.com",
},
body: form,
});
console.log(await res.json());
Response
{
"source": "https://upload.wikimedia.org/wikipedia/commons/d/d1/Vin_number_11.jpg",
"mime_type": "image/jpeg",
"found": true,
"vin": "1D4GP25B03B108775",
"count": 1,
"vins": [
{
"vin": "1D4GP25B03B108775",
"read_as": "1D4GP25B03B108775",
"status": "valid",
"confidence": "high",
"check_digit_valid": true,
"corrections": [],
"alternatives": [],
"reason": "Check digit correct, as read. NHTSA's patterns for this maker match it.",
"location": "door_label",
"wmi": "1D4",
"make": "DODGE",
"region": "North America",
"country": "United States",
"model_year": 2003,
"vehicle": {
"found": true,
"manufacturer": "FCA US LLC",
"make": "DODGE",
"model": "Caravan/Grand Caravan",
"series": "RS",
"vehicle_type": "MULTIPURPOSE PASSENGER VEHICLE (MPV)",
"body_class": "Van",
"doors": 4,
"drive_type": "FWD/Front-Wheel Drive",
"engine": { "cylinders": 4, "displacement_l": 2.4, "configuration": "In-Line", "fuel": "Gasoline" },
"gvwr_class": "Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)",
"plant": { "city": "FENTON", "state": "MISSOURI", "country": "UNITED STATES (USA)" },
"notes": []
}
}
],
"image": "readable"
}
From a real response, the door-jamb label of a 2003 Dodge Caravan (the decoded vehicle is shortened: it also repeats the VIN checks and lists equipment and airbags when NHTSA has them). vin is the best VIN of the photo; vins lists every VIN found, best first.
Why developers pick this API
- 🎯 No silent errors: an OCR that returns a wrong VIN with confidence costs you a wrong car. Here a VIN is only
highconfidence when its check digit, or NHTSA, proves it; otherwise you getambiguouswith the alternatives, orinvalidwith the reason. - 🧩 Read and decode in one call: the VIN recognition APIs stop at the characters, the VIN decoders need you to type them. This one does both.
- 🌍 Any country: European VINs (Audi
WAUZZZ..., Volkswagen, Porsche), Korean, Chinese and Malaysian plates read as printed, with region, country and make. - 💸 Priced for apps and fleets: about $0.0026 a photo on PRO, decoding included (popular VIN recognition APIs charge $0.02 to $0.05 a photo), and failed calls (4xx, 5xx) use 0 credits.
Corrections
When the check digit of a North American or Chinese VIN is wrong as read, the API tries every single look-alike swap and keeps a correction only when exactly one makes the check digit right (or when NHTSA's patterns pick one among several):
{
"vin": "1D4GP25B03B108775",
"read_as": "1D4GP25B038108775",
"status": "corrected",
"confidence": "high",
"check_digit_valid": true,
"corrections": [
{ "position": 11, "read": "8", "corrected": "B", "reason": "8 and B look alike; B makes the check digit right." }
],
"reason": "The check digit was wrong as read; one character changed, the only change that makes it right. NHTSA's patterns for this maker match it."
}
From a real response on the same 314-pixel photo, in another run where the reader took the B for an 8.
status |
Meaning | Use it? |
|---|---|---|
valid |
Check digit right as read | ✅ |
corrected |
Fixed, check digit now right; see corrections |
✅ |
unverified |
Well formed, from a region where the check digit is optional (most of Europe) | ✅ after a glance at the photo |
ambiguous |
Check digit wrong, several fixes possible; see alternatives |
❌ ask for a better photo |
invalid |
Not 17 readable characters (or a pre-1981 chassis number) | ❌ |
Errors
| Status | code |
Meaning |
|---|---|---|
| 400 | invalid_url, invalid_request |
Fix the input. |
| 400 | site_unreachable, site_blocked, file_too_large |
The photo could not be downloaded (down, protected, over 20 MB). |
| 400 | unsupported_file |
Not an image (PNG, JPEG, WEBP, HEIC, GIF, BMP, TIFF). |
| 429 | daily_limit_reached |
Daily safety limit of your plan; resets at 00:00 UTC. |
| 503 | ai_error / capacity_exhausted |
The reader did not answer; retry. Not billed. |
A photo without a VIN is an answer, not an error: found: false, image: "no_vin" (or "unreadable" when one is there but blurred), and a note saying how to retake it. It uses 1 credit.
Honest limits
- No bounding boxes: you get the VIN and where it was printed (
location), not pixel coordinates. - One credit per photo, VIN or not: the photo is read either way.
- Up to 6 VINs per photo, 4 of them decoded.
- 20 MB per photo; very large images are resized, which keeps a plate readable but not a VIN that is a few pixels high in a wide shot. Crop or zoom first.