UAE Driving Licence OCR API
Read the UAE driving licence from a photo and get the licence number, name, dates and classes as structured JSON. Upload an image below to test it free.
200 free credits = 100 Driver License scans, no credit card. Then from $5 for 500 credits, pay as you go. See pricing

What Makes the UAE driving licence Hard to Parse
The UAE driving licence is issued by the traffic authority of each emirate (for example the RTA in Dubai and the police traffic departments in Abu Dhabi and Sharjah). UAE driving licences are issued per emirate and printed in Arabic and English. Besides the licence number, cards carry a traffic code (traffic file) number that links the driver to their traffic record, and the emirate that issued the card determines the layout. Rental desks, delivery platforms and insurers need the English fields in a consistent structure regardless of which emirate issued the licence.
One API Call, Named Fields
The StructOCR Driver License OCR API returns the licence number, the holder's name, nationality where printed, date of birth, issue and expiry dates, the issuing authority and the permitted vehicle categories. Dates are returned as YYYY-MM-DD. Send a JPG, PNG, WebP or PDF as Base64 JSON or as a multipart upload; there is no SDK to embed in your app, although official Python and Node.js SDKs are available. Step-by-step code is in the Python guide. Usage is billed per successful scan with pay-as-you-go pricing.
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?
Where Teams Use It in the UAE
Car Rental Counters
Read residents' licences at pickup, and pair them with passports or Emirates ID for visitors.
Delivery and Rideshare Onboarding
Collect licence numbers, categories and expiry dates for drivers across emirates.
Motor Insurance
Prefill the driver's details on quotes and renewals.
Technical Specs
- Endpoint: POST https://api.structocr.com/v1/driver-license
- Input: JPG, PNG, WebP or PDF up to 4.5 MB, as Base64 JSON or multipart upload
- Price: 2 credits per successful scan; new accounts get 200 free credits (100 scans)
- Retention: Images and results are kept for at most 24 hours for quality spot-checks, then deleted
Key Features
- Named fields: The licence number, the holder's name, nationality where printed, date of birth, issue and expiry dates, the issuing authority and the permitted vehicle categories.
- Normalized dates: Dates are returned as YYYY-MM-DD.
- Good to know: The traffic code number is not a dedicated field in the response. If you need it, capture it alongside the extracted data.
Integration & AI Prompts
Install the official SDK and pass a photo of the licence. Full request and response details are in the driver license API reference.
# pip install structocr
import os
from structocr import StructOCR
client = StructOCR(api_key=os.environ["STRUCTOCR_API_KEY"])
result = client.scan_driver_license("licence.jpg")
if result.get("success"):
data = result["data"]
print(data["document_number"], data["surname"], data["date_of_expiry"])Standardized JSON Output
An illustrative response for a UAE driving licence, with fictional values.
{
"success": true,
"data": {
"type": "drivers_license",
"country_code": "ARE",
"region": "DUBAI",
"document_number": "1234567",
"personal_number": null,
"surname": "AL MANSOORI",
"given_names": "AHMED",
"sex": null,
"date_of_birth": "1990-01-15",
"place_of_birth": null,
"date_of_issue": "2022-03-01",
"date_of_expiry": "2032-02-28",
"date_of_first_issue": null,
"issuing_authority": "RTA DUBAI",
"address": null,
"vehicle_class": "LIGHT VEHICLE"
}
}Frequently Asked Questions
Can I test the UAE driving licence scan for free?
Yes. Upload a photo in the live demo on this page without an account, or create an account to get 200 free credits, enough for 100 licence scans through the API.
Are licences from every emirate supported?
The API reads the English fields of UAE driving licences and returns one JSON structure. Test the emirates your users come from in the live demo on this page.
Does it return the Arabic name?
It returns the name as printed in Latin script. Arabic text is not returned as a separate field.
Do I need an SDK?
No. It is a plain REST API that accepts Base64 JSON or a multipart upload. Official Python and Node.js SDKs are available if you prefer them.
Explore More Driver License OCR Solutions
UK Driving Licence OCR API
Extract name, licence number (field 5), address (field 8), dates and categories from UK DVLA driving licences as JSON. Free upload test and 100 free API scans.
US Driver License Scanner API & SDK
Scan US driver's licenses from all 50 states with a REST API or our Python and Node SDKs. Extract name, DOB, address and the Document Discriminator (DD). 100 free scans.
Vape and Tobacco Shop ID Verification with PDF417
Scan US driver licenses and state ID cards for vape and tobacco retailers. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Vehicle Test-Drive License Scanning with PDF417
Use PDF417 and AAMVA parsing for automotive dealerships. Pre-fill document_number, given_names, surname, handle unreadable barcodes, and keep API credentials server-side.
Visitor Management with Driver License PDF417 Data
Use PDF417 and AAMVA parsing for visitor registration. Pre-fill given_names, surname, document_number, handle unreadable barcodes, and keep API credentials server-side.
Age Verification Data Capture with a PDF417 API
Use PDF417 and AAMVA parsing for age-gated commerce. Pre-fill date_of_birth, date_of_expiry, document_number, handle unreadable barcodes, and keep API credentials server-side.
Alcohol Delivery Age Checks with an ID Barcode API
Scan US driver licenses and state ID cards for alcohol delivery. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Apartment Leasing Form Prefill from Driver License PDF417
Use PDF417 and AAMVA parsing for property leasing. Pre-fill given_names, surname, address, handle unreadable barcodes, and keep API credentials server-side.
Australian Driver Licence OCR API
Extract the licence number, the holder's name, date of birth, residential address, expiry date and licence class from the Australian driver licence as JSON with one API call. Try it free in the browser; new accounts get 100 free licence scans.
Auto Dealership Finance Desk License Scanning with PDF417
Scan US driver licenses for dealership finance offices. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
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.
Add HIN OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR HIN (Hull Identification Number) scanner API using the Cursor AI code editor. Build marine and boat management tools rapidly.
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.