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
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..."}'{
"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.

How it works
Integrate professional ID card verification into your app in minutes.
Secure Ingestion
Upload front or back of the license via API. Data is encrypted in transit and deleted within 24 hours.
AI Analysis
Our models identify the jurisdiction (State/Country) and correct perspective to read dense text fields.
Structured Output
Receive standardized JSON including address, license number, and vehicle codes ready for your database.
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)
Live Demo: Driver License OCR Scanner
No registration required. Upload a file to test the extraction.
Drop files here or click to browse
JPG · PNG · PDF · TIFF · up to 500 files · max 4.5 MB each
No document handy?
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.
The address extraction feature is a lifesaver. It matches the license address against credit card data instantly, reducing fraud by 60%.
Integrating StructOCR for KYC was effortless. It reads even the old, worn-out ID cards that our previous provider rejected.
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