# VIN Recognition API

> Read the VIN from a photo of a plate, door label or document, check-digit verified and decoded.

**Typing 17 characters from a dusty windshield plate is where VIN errors start.** Send a photo instead: a **windshield plate**, **door-jamb label**, **manufacturer plate**, a VIN **stamped in the frame**, a **registration document**, a **title** or a **screenshot**. Get back the **VIN**, **verified by its check digit**, **auto-corrected** when the photo fooled the reader, and **decoded** into make, model, year and engine. From **$0.0026 per photo**, decoding included: about **8x cheaper** than the popular VIN recognition API.

- Host: `vin-recognition-read-vin-from-photo-decode.p.rapidapi.com`
- Base URL: `https://vin-recognition-read-vin-from-photo-decode.p.rapidapi.com/v1/vin-photo`
- Auth: headers `X-RapidAPI-Key` and `X-RapidAPI-Host`
- OpenAPI: https://helenis-api.com/docs/vin-photo/openapi.json

## Endpoints

### 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 | Required | Description | Example |
|---|---|---|---|---|---|
| `url` | body | `string` | yes | Direct link to a photo, scan or screenshot: PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB. | `https://upload.wikimedia.org/wikipedia/commons/d/d1/Vin_number_11.jpg` |
| `decode` | body | `boolean` | no | Also decode each VIN found (make, model, year, engine, equipment, from NHTSA). No extra credit. Default `False`. |  |

```bash
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
  }'
```

#### 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 | Required | Description | Example |
|---|---|---|---|---|---|
| `file` | form | `file` | yes | Image, up to 20 MB. |  |
| `decode` | form | `boolean` | no | Also decode each VIN found (make, model, year, engine, equipment, from NHTSA). No extra credit. Default `False`. |  |

```bash
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"
```

## Sample call

Read VIN from Image URL: `POST /v1/vin-photo/read`.

```bash
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
  }'
```

## Response

```json
{
  "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 `high` confidence when its check digit, or NHTSA, proves it; otherwise you get `ambiguous` with the alternatives, or `invalid` with 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):

```json
{
  "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.

## Pricing

1 credit per photo, VIN decoding included. Failed calls are never billed.

| Plan | Price | Credits included | Above the quota |
|---|---|---|---|
| BASIC | Free | 2 / day | resets every day |
| PRO | $4.99/month | 1,900 / month | $0.03 per credit |
| ULTRA | $14.99/month | 5,800 / month | $0.03 per credit |
| MEGA | $49.99/month | 19,000 / month | $0.03 per credit |

Apify actor **VIN Scanner - Read VINs from Photos & Decode**: billed per event; free-plan users get 10 photos per run.

| Event | Charged for | Price |
|---|---|---|
| `photo-read` | each photo read | $0.003 |

## Links

- API reference (HTML): https://helenis-api.com/docs/vin-photo
- OpenAPI: https://helenis-api.com/docs/vin-photo/openapi.json
- Overview and pricing: https://helenis-api.com/apis/vin-photo/
- RapidAPI listing: https://rapidapi.com/helenis-api-helenis-api-docs/api/vin-recognition-read-vin-from-photo-decode?utm_source=helenis&utm_medium=site&utm_campaign=vin-photo&utm_content=markdown

## Conventions (every Helenis API)

- Auth: two headers on every call, `X-RapidAPI-Key` (your key) and `X-RapidAPI-Host` (the API's host). One RapidAPI key works for every API you subscribe to.
- Billing in credits: one for a simple call, more for heavier work (a minute of audio, a page read by AI). Each API states its rule.
- Failed calls are never billed: a `4xx` bills zero credits and a `5xx` is never counted.
- Errors share one envelope: `{"error": {"status", "code", "message"}}` with a stable machine-readable `code`.
- `400`: fix the input (validation errors are always 400, never 422); not billed.
- `429`: rate limit; wait for `Retry-After`. `503`: temporary upstream or AI failure (`ai_error`, `upstream_timeout`); retry later, not billed.
- Values the source does not give come back as `null`, never invented.
