Philippine LTO Driver License OCR API
Automate eKYC and fleet onboarding in the Philippines. Instantly extract restriction codes, conditions, and core identity data from Land Transportation Office (LTO) driver's licenses. Upload a sample image below to test the extraction accuracy for free.

The Complexity of Philippine LTO Licenses
The Philippine driving license, issued by the Land Transportation Office (LTO), presents unique challenges for automated data extraction. Standard text-recognition engines frequently fail to accurately parse the highly specific 'Restriction Codes' (e.g., 1 for motorcycles, 2 for light vehicles) and 'Conditions' (e.g., A for wearing eyeglasses), which are critical for determining a driver's legal operating capacity. Additionally, varying card materials and temporary paper licenses create optical inconsistencies. To see how our layout-aware identity models overcome these specific regional data extraction challenges, explore our core driver license OCR capabilities.
Edge-Routed Speed & Zero-SDK Architecture
For the Southeast Asian market, mobile application size and network reliability are critical. We deliver our LTO OCR engine as a pure REST API, completely eliminating the need to force bloated SDKs onto your users' devices. Our architecture is natively deployed on Cloudflare's global edge network, meaning API requests originating from Metro Manila or Cebu are processed at the nearest local node for lightning-fast TTFB (Time to First Byte). Whether you send a direct file upload or a Base64-encoded string, our engine returns structured JSON instantly.
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 · WebP · up to 500 files · max 4.5 MB each
High-Growth Use Cases in the Philippines
Ride-Hailing & Logistics Onboarding
Automate gig-economy fleet registration. Instantly verify if a new driver holds the correct Restriction Code 1 (motorcycle) or 2/3 (commercial vehicles) before authorizing them to accept bookings. Read more about our mobility driver verification solutions.
Digital Wallet & Fintech eKYC
Accelerate user onboarding for Philippine e-wallets and neobanks. Instantly extract identity fields from the LTO license to cross-reference with national compliance databases. To remove cross-border fiat friction, you can manage your enterprise API subscription natively using USDT/USDC. Explore our flexible pricing plans.
Vehicle Rental & Tourism
Streamline car and scooter rentals across the Philippines. Capture the driver's details, agency code, and license expiration accurately using just a smartphone photo, removing manual data entry bottlenecks at the rental counter.
Technical Specs
- Edge Processing Architecture: Deployed entirely on Cloudflare Workers, ensuring that API requests from Southeast Asia are handled by regional edge nodes for near-zero routing latency.
- Input Versatility: Fully supports multipart file uploads and raw Base64 strings, eliminating the need to compile and maintain heavy native Android/iOS SDKs.
- Base64 Auto-Cleansing: Our API intelligently sanitizes malformed Base64 payloads (e.g., stripping carriage returns and spaces) prior to processing.
- Cryptocurrency Payments: Designed for global SaaS compliance and convenience, developers can fund API usage seamlessly via traditional credit cards or Web3-native USDT/USDC.
Key Features
- Restriction Code Extraction: Contextually isolates the specific LTO restriction numbers (e.g., 1, 2, 3) and maps them to the `vehicle_class` field for immediate fleet authorization.
- Conditions Parsing: Accurately extracts driving conditions (e.g., Condition A, B, C) and captures supplementary data like Blood Type and Weight into the `extra_details` object.
- Date Standardization: Natively converts the local date formats printed on the license into strict, database-ready `YYYY-MM-DD` ISO strings.
Integration & AI Prompts
Integrating our API into your backend takes minutes. We natively process direct file uploads, public URLs, and Base64-encoded strings—automatically stripping out illegal whitespaces or newlines to ensure your requests never fail. For comprehensive endpoint parameters, consult our developer documentation.
import requests
import base64
# 1. Prepare Base64 Image of the Philippine LTO License
with open("lto_license_sample.jpg", "rb") as image_file:
base64_image = base64.b64encode(image_file.read()).decode('utf-8')
url = "https://api.structocr.com/v1/driver-license"
headers = {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
# Pass the pure Base64 string directly
payload = {
"img": base64_image
}
response = requests.post(url, headers=headers, json=payload)
result = response.json()
if result.get('success'):
data = result['data']
print(f"✅ License Number: {data['document_number']}")
print(f"✅ Name: {data['surname']}, {data['given_names']}")
print(f"✅ Restriction Codes: {data['vehicle_class']}")Standardized JSON Output
Observe how the unique data points of a Philippine LTO license are mapped into a standardized schema. Crucial restriction codes are mapped to `vehicle_class`, while localized fields like conditions and blood type are stored in `extra_details`.
{
"success": true,
"data": {
"type": "drivers_license",
"country_code": "PHL",
"region": "NCR",
"document_number": "N01-89-123456",
"personal_number": null,
"surname": "DELA CRUZ",
"given_names": "JUAN MIGUEL",
"sex": "M",
"date_of_birth": "1985-11-20",
"place_of_birth": null,
"date_of_issue": "2023-11-20",
"date_of_expiry": "2033-11-20",
"date_of_first_issue": null,
"issuing_authority": "LTO",
"address": "123 RIZAL AVENUE, MANILA, METRO MANILA 1000",
"vehicle_class": "1, 2",
"extra_details": {}
}
}Frequently Asked Questions
Can I test the Philippine LTO driver license OCR before purchasing?
Yes! You can use the free image upload testing widget at the top of this page. Upload a sample photo of an LTO license to evaluate the extraction speed and accuracy instantly.
Do I need to install a heavy SDK in my mobile app?
No, StructOCR operates as a pure REST API. You can simply capture the document image using the user's native camera, convert it to a Base64 string, and POST it to our endpoint. This approach drastically reduces your app's bundle size.
Does the API extract LTO Restriction Codes?
Yes. The API is specifically trained to recognize the layout of Philippine licenses. It extracts the Restriction Codes (e.g., 1, 2, 3) and places them inside the structured `vehicle_class` field within the JSON response.
Explore More Drivers-license Solutions
Indonesian SIM (Surat Izin Mengemudi) OCR API
Extract NIK, identity, and category data from Indonesian driver's licenses (Surat Izin Mengemudi). Test our low-latency, edge-routed API with a free image upload.
UK Driving Licence OCR & Field Extraction API
Accurately parse numbered fields (like Field 5 and Field 8) from UK driving licences. Try our fast, Cloudflare-routed OCR API with a free image upload test.
US Driver License Scanner API
Extract data from all 50 US state driver's licenses with our fast OCR API. Try our free image upload tool and easily parse the Document Discriminator (DD) and identity fields.
Brazilian CNH (Driver's License) OCR API
Extract CPF, RG, and identity fields from Brazilian Carteira Nacional de Habilitação (CNH) instantly. High-accuracy OCR API deployed on edge networks for fast LatAm eKYC.
Automated CPF Extraction from Brazilian Driver Licenses
Accurately extract the CPF (Tax ID) and RG from Brazilian driver licenses (CNH). Try our free image upload tool and integrate our fast, edge-routed OCR API.
Automated Document Discriminator (DD) Extraction
Instantly extract the Document Discriminator (DD) and audit numbers from US driver's licenses. Test our edge-routed OCR API for free using image uploads.
EU Driving Licence OCR API
Accurately parse numbered fields (1, 4a, 9) from European driving licences. Try our fast, edge-routed OCR API with a free image upload test.
Malaysian Lesen Memandu (Driving License) 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.
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.
Heavy KYC SDKs vs. StructOCR Passport API for Mobile Apps
Discover why modern app developers are abandoning bulky on-device OCR SDKs in favor of lightweight, edge-deployed Passport APIs.
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.