International Visitor Car Rental License OCR
Extract the licence number, name, and expiry from the foreign licence and the passport, and keep permit checks in your rental policy. OCR captures the data; your compliance process stays in charge of decisions.
200 free credits = 100 Driver License scans, no credit card. Then from $5 for 500 credits, pay as you go. See pricing

The Requirement
Rental counters accept driver licences from many countries, sometimes with an international driving permit, and staff must record licence details. Foreign licence layouts are unfamiliar, so agents spend time finding the right fields.
Capture Once, Confirm, Then Report
Extract the licence number, name, and expiry from the foreign licence and the passport, and keep permit checks in your rental policy. The driver licence OCR API returns structured JSON, so the same record can feed your forms, reports, and audit trail. Licence validity and permit requirements depend on local law and the rental company’s policy.
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?
Workflow Applications
Airport rental counters
Pre-fill document_number, date_of_expiry, vehicle_class, country_code and require confirmation before saving.
Online pre-check-in
Ask for a clearer image when the document is cropped, blurred, or covered by glare.
Additional drivers
Keep extracted data separate from approval, reporting, and eligibility decisions.
Technical Specs
- Endpoint: POST https://api.structocr.com/v1/driver-license
- Inputs: JPG, PNG, WebP, or PDF as Base64 JSON; maximum 4.5MB
- Cost: 2 credits per successful request; failures are not billed
- Output: Structured JSON with normalized names, numbers, and ISO dates
- Decision boundary: OCR extracts printed data and does not verify identity, authenticity, or legal eligibility
- Regulations change: Confirm current requirements with the relevant authority before relying on any workflow
Key Features
- Data minimization: Store only the fields the regulation or process requires.
- Confirmation step: Let the customer or staff correct extracted fields before submission.
- Retention policy: Delete or mask document images according to your documented schedule.
- Independent decisions: Licence validity and permit requirements depend on local law and the rental company’s policy.
Server-Side Integration
Send the driver licence image from your backend and keep only the fields your process needs.
import base64
import os
import requests
with open("license.jpg", "rb") as image_file:
image = base64.b64encode(image_file.read()).decode("ascii")
response = requests.post(
"https://api.structocr.com/v1/driver-license",
headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
json={"img": image},
timeout=30,
)
if response.ok:
data = response.json()["data"]
print("document_number:", data.get("document_number"))
print("date_of_expiry:", data.get("date_of_expiry"))
print("vehicle_class:", data.get("vehicle_class"))
print("country_code:", data.get("country_code"))
else:
print("Retake or review:", response.json().get("error"))Illustrative Response
Wholly fictional data showing the response shape. It is not a real person’s document.
{
"success": true,
"data": {
"document_number": "SAMPLE",
"date_of_expiry": "1990-01-01",
"vehicle_class": "SAMPLE",
"country_code": "SAMPLE"
}
}Frequently Asked Questions
Does OCR make us compliant?
No. OCR speeds up data capture. Licence validity and permit requirements depend on local law and the rental company’s policy.
Which fields are relevant here?
Usually document_number, date_of_expiry, vehicle_class, country_code. Collect only what your obligation requires.
What if the photo is unreadable?
The API returns an error instead of guessing; ask for a new photo of the full document without glare.
Explore More Driver License OCR Solutions
Malaysian Lesen Memandu OCR API
Extract the IC number, identity fields, and vehicle classes from Malaysian driving licenses (Lesen Memandu). Test our edge-routed API with a free image upload.
Liquor Store Age Verification with ID Barcode Scanning
Scan US driver licenses and state ID cards for liquor retailers. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Philippine LTO Driver License OCR API
Accurately extract data from Philippine LTO driver's licenses. Parse restriction codes, conditions, and identity fields via our edge-routed API. Test for free.
Notary and Loan Signing ID Capture with PDF417
Scan US driver licenses and state ID cards for notaries and signing agents. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Pawn Shop and Secondhand Dealer Seller ID Capture
Scan US driver licenses and state ID cards for pawn shops and secondhand dealers. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Pharmacy Prescription Pickup ID Scanning with PDF417
Scan US driver licenses and state ID cards for pharmacy pickup. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Plasma Donation Center Donor ID Check-In with PDF417
Scan US driver licenses and state ID cards for plasma donation centers. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Ride-Share Driver License Barcode Onboarding API
Use PDF417 and AAMVA parsing for ride-share onboarding. Pre-fill document_number, date_of_expiry, region, handle unreadable barcodes, and keep API credentials server-side.
School Visitor Management with License and ID Barcodes
Scan US driver licenses and state ID cards for school front offices. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Self-Storage Rental Intake with a Driver License Barcode
Use PDF417 and AAMVA parsing for self-storage leasing. Pre-fill given_names, surname, address, handle unreadable barcodes, and keep API credentials server-side.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Add Driver's License OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a Bolt.new app. Build car rental and mobility onboarding flows right in your browser.
Add Driver's License OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API using the Cursor AI code editor. Build car rental and mobility onboarding flows rapidly.
Add Driver's License OCR to Your Lovable.dev App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a Lovable.dev app. Build car rental and mobility onboarding flows with zero backend.
Add Driver's License OCR to Your Replit App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a Replit application. Build car rental and mobility onboarding flows using Replit Agent and Secrets.
Add Driver's License OCR to Your v0 App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a v0 by Vercel app. Build car rental and mobility onboarding flows with zero backend.
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.
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.