Driver License
OCR API

Instantly extract identity, vehicle class, and parse full addresses for automated proof of address. Our driver license OCR API supports IDs from 195+ countries via direct file upload, Base64 strings, or URLs.

Processing the back of a US driver license? View the PDF417 & AAMVA API docs

100 driver license scans • No credit card required
POST /v1/driver-license
curl -X POST 
https://api.structocr.com/v1/driver-license \
-H "x-api-key: Bearer sk_live_..." \
-d '{"img": "data:image/jpeg;base64,/9j/4A..."}'
RESPONSE 200 OK
{
  "success": true,
  "data": {
    "type": "DL",
    "country_code": "USA",
    "region": "CA",
    "document_number": "D1234567",
    "address": "123 MAIN ST, SAN JOSE, CA",
    // ... more fields
  }
}

Our OCR API Key Features

Built for Real Photos

Models tuned on US State IDs and global licenses, including the Document Discriminator (DD), with PDF417 decoding for US backs.

Proof of Address Ready

Unlike basic OCR, we parse full addresses into clean strings, serving as a reliable proof of address API for automated KYC workflows.

Global Coverage

Support for 200+ countries including all 50 US states, Canadian provinces, and EU member states.

24-Hour Data Retention

Images and results are deleted automatically within 24 hours. StructOCR holds SOC 2 Type II.

Hologram Handling

Advanced pre-processing filters out holographic reflections and glare common on driver licenses.

Structured JSON

Transforms raw card images into clean JSON with separated fields for name, dates, and vehicle class.

US PDF417 & AAMVA

Decode the barcode on US driver license backs into deterministic AAMVA fields through a dedicated API.

Vehicle Class Data

Extracts vehicle categories (e.g., Class C, Motorcycle) essential for rental and fleet management.

Flowchart showing driver license image ingestion, AI OCR analysis, and structured JSON data output for KYC

How it works

Integrate professional ID card verification into your app in minutes.

01

Secure Ingestion

Upload front or back of the license via API. Data is encrypted in transit and deleted within 24 hours.

02

AI Analysis

Our models identify the jurisdiction (State/Country) and correct perspective to read dense text fields.

03

Structured Output

Receive standardized JSON including address, license number, and vehicle codes ready for your database.

response.json
{
  "success": true,
  "data": {
    "type": "drivers_license",
    "country_code": "USA",
    "region": "CA",
    "document_number": "E3802489",
    "surname": "IDNOOB",
    "given_names": "MING",
    "address": "750 GONZALEZ DR APT 6B, SAN FRANCISCO, CA 94512",
    "vehicle_class": "C",
    "sex": "F",
    "date_of_birth": "1988-06-06",
    "date_of_expiry": "2020-06-06",
    "date_of_issue": "2015-07-22",
    "extra_details": {
      "card_security_number": "06/09/2014599A5/DOFD/19",
      "fathers_name": null,
      "mothers_name": null,
      "rg_number": null
    }
  }
}
Data Output

Standard Data Fields You Can Extract

Our API is fine-tuned for ID cards, automatically extracting 12+ specific data points including local addresses and vehicle classes.

Document Type

Country Code

Region / State

License Number

Surname

Given Names

Full Address

Vehicle Class

Sex

Date of Birth

Date of Expiry

Date of Issue

Security Code (DD / Audit)

Father's Name (LATAM)

Mother's Name (LATAM)

RG Number (LATAM)

...and more meta data

Live Demo: Driver License OCR Scanner

No registration required. Upload a file to test the extraction.

1
Upload
2
Results
↑

Drop files here or click to browse

JPG · PNG · PDF · TIFF  ·  up to 500 files · max 4.5 MB each

No document handy?

No files selected
Need more testing? Create a free account to get 200 free credits(equals 100 driver license scans)

Trusted by Mobility & FinTech Leaders

Powering identity verification for rental fleets, delivery apps, and digital banks.

We automated driver onboarding for our delivery fleet. StructOCR handles licenses from 15 different states flawlessly.

David Miller
Operations Director, QuickDash
Gig Economy

The address extraction feature is a lifesaver. It matches the license address against credit card data instantly, reducing fraud by 60%.

Elena Rossi
Product Manager, AutoRentals Global
Car Rental

Integrating StructOCR for KYC was effortless. It reads even the old, worn-out ID cards that our previous provider rejected.

James Chen
Lead Developer, NeoBank
FinTech

Why Developers Prefer Our
OCR API for Identity Verification

We prioritize developer experience without compromising on power, providing the tools needed to embed intelligent document recognition into any stack.

REST API and Official SDKs

Send driver license images as file uploads or Base64 strings to one endpoint, or use the official Python and Node.js SDKs (scan_driver_license / scanDriverLicense).

Global Edge Infrastructure

Deployed on high-performance edge networks (like Cloudflare) designed for fast responses and high availability in verification apps.

Auto-Correction & Formatting

Leverage industry-leading OCR precision that automatically corrects common optical confusions and formats dates/addresses uniformly.

Engineer-Centric Docs

Access deep technical guides and API references crafted to make integrating driver license parsing a seamless experience.

Ready to Build with StructOCR?

Get your API key in under a minute. New users receive 200 free credits to test Passport, VIN, License Plate, Container, Receipt, HIN, Driver License, ID Card, Vehicle Registration, Weighbridge Ticket, ATM Cassette and Invoice OCR APIs.

✓ No credit card required · ✓ Instant API key · ✓ Full API access

Frequently Asked Questions