Philippines Driver License OCR with Node.js SDK
Send a LTO driver's license to the official Node.js SDK and receive normalized identity, validity and licence fields.

Reading Philippines Driver Licenses
LTO cards include identity data together with agency code, expiry date and permitted vehicle categories. Manual transcription adds delays and creates avoidable formatting errors when a team needs to move licence data into onboarding, rental or mobility systems.
A Server-Side Node.js SDK Workflow
The StructOCR driver license endpoint accepts a Base64-encoded image or PDF and returns normalized fields that are visible on the document. Typical results include the document number, holder name, dates, issuing region, address and vehicle class; optional fields may be null when they are absent or unreadable.
Common Integration Scenarios
- Vehicle rental: Pre-fill customer and licence details before a vehicle handover.
- Driver onboarding: Move visible licence fields into a review queue without retyping the card.
- Fleet operations: Capture licence classes and validity dates for internal driver records.
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
Philippines Driver License OCR with Node.js SDK
The official Node.js SDK reads a supported local file and calls /v1/driver-license. Open the TypeScript + Express tab for a server route using the same SDK method.
Prerequisite: `npm install structocr`; set the server-side `STRUCTOCR_API_KEY` environment variable.
Prefer another stack? Open the Python SDK + FastAPI integration.
const StructOCR = require("structocr");
const client = new StructOCR(process.env.STRUCTOCR_API_KEY);
async function main() {
const result = await client.scanDriverLicense("driver-license.jpg");
if (result.success) {
const data = result.data;
console.log(data.document_number);
console.log(data.given_names, data.surname);
} else {
console.error(result.error);
}
}
main().catch(console.error);Technical Specs
- •Endpoint: POST /v1/driver-license
- •Input: Base64-encoded JPG, PNG, WebP, or PDF in JSON (Max 4.5MB)
- •Authentication: Server-side x-api-key header handled by the SDK
- •Cost: 2 credits per scan
- •Output: Structured JSON
Key Features
- •Regional output: Returns country and issuing region when visible.
- •Licence fields: Extracts document number, validity dates and vehicle class when present.
- •Identity fields: Returns the printed holder name, birth details and address when readable.
- •Optional details: Preserves supported country-specific fields under extra_details.
JSON Response Example
Fields are returned when present and legible on the submitted licence; country-specific details may appear in extra_details.
{
"success": true,
"data": {
"type": "drivers_license",
"country_code": "PHL",
"region": "National Capital Region",
"document_number": "N01-23-456789",
"personal_number": null,
"surname": "SANTOS",
"given_names": "MARIA LUZ",
"sex": "F",
"date_of_birth": "1993-08-16",
"place_of_birth": "MANILA",
"date_of_issue": "2024-08-16",
"date_of_expiry": "2029-08-16",
"date_of_first_issue": "2018-04-09",
"issuing_authority": "LAND TRANSPORTATION OFFICE",
"address": "QUEZON CITY, METRO MANILA",
"vehicle_class": "A/A1/B/B1/B2",
"extra_details": {}
}
}Frequently Asked Questions
Which fields can the Philippines driver license API return?
The response can include country_code, region, document_number, personal_number, surname, given_names, sex, birth details, issue and expiry dates, issuing_authority, address, vehicle_class and extra_details. Fields not present or not legible can be null.
Can I use the other SDK language?
Yes. This tutorial has a paired Python and FastAPI version linked in the integration section.
You May Also Like
Related tutorials, platform guides, and comparisons
Philippines Driver License OCR with Python SDK
Extract structured fields from a Philippines LTO driver's license with the StructOCR Python SDK and FastAPI.
Node.js Driver License Verification API
Stop manual driver license checks. Our Node.js API delivers verified data in JSON within <4s, secured by AES-256 encryption and SOC2 compliance. Achieve 98.5% uptime. Upload an image for a free test!
Australia Driver License OCR with Node.js SDK
Extract structured fields from a Australia state or territory driver licence with the StructOCR Node.js SDK and TypeScript + Express.
US Driver License OCR with Node.js SDK
Extract structured fields from a United States state-issued driver license with the StructOCR Node.js SDK and TypeScript + Express.
Canada Driver License OCR with Node.js SDK
Extract structured fields from a Canada provincial driver licence with the StructOCR Node.js SDK and TypeScript + Express.
UK Driver License OCR with Node.js SDK
Extract structured fields from a United Kingdom photocard driving licence with the StructOCR Node.js SDK and TypeScript + Express.
Brazil Driver License OCR with Node.js SDK
Extract structured fields from a Brazil Carteira Nacional de Habilitação (CNH) with the StructOCR Node.js SDK and TypeScript + Express.
Philippines PhilID OCR with Node.js SDK
Extract PhilSys Card Number, names, dates and other visible fields from Philippine Identification Card (PhilID) with the StructOCR Node.js SDK and Express.
UK Driver License OCR with Python SDK
Extract structured fields from a United Kingdom photocard driving licence with the StructOCR Python SDK and FastAPI.
Canada Driver License OCR with Python SDK
Extract structured fields from a Canada provincial driver licence with the StructOCR Python SDK and FastAPI.
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.
Invoice OCR API Integration for Bolt.new
Learn how to integrate our Invoice OCR API into a Bolt.new app in under 5 minutes. Extract structured JSON effortlessly. Try our free live test now.
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.