Australia Driver License OCR with Node.js SDK
Send a state or territory driver licence to the official Node.js SDK and receive normalized identity, validity and licence fields.

Reading Australia Driver Licenses
State and territory cards differ in layout while sharing common identity, licence and validity fields. 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
Australia 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": "AUS",
"region": "New South Wales",
"document_number": "12345678",
"personal_number": null,
"surname": "TAYLOR",
"given_names": "CASEY",
"sex": null,
"date_of_birth": "1988-09-21",
"place_of_birth": null,
"date_of_issue": "2023-09-21",
"date_of_expiry": "2028-09-21",
"date_of_first_issue": null,
"issuing_authority": "NSW",
"address": "18 GEORGE ST, SYDNEY NSW 2000",
"vehicle_class": "C",
"extra_details": {}
}
}Frequently Asked Questions
Which fields can the Australia 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
Australia Driver License OCR with Python SDK
Extract structured fields from a Australia state or territory driver licence with the StructOCR Python SDK and FastAPI.
Philippines Driver License OCR with Node.js SDK
Extract structured fields from a Philippines LTO driver's 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.
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!
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.
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.
Go Driver License OCR API
Upload an image for a free test! Struggling with manual driver's license data entry? Our Go API delivers structured JSON in <5s, boasting 98.5% uptime and SOC2 compliance with AES-256 encryption.
Philippines Driver License OCR with Python SDK
Extract structured fields from a Philippines LTO driver's license with the StructOCR Python SDK and FastAPI.
UK Driver License OCR with Python SDK
Extract structured fields from a United Kingdom photocard driving 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.
Add Invoice OCR to Your Lovable.dev App in 5 Minutes
Step-by-step guide to integrating the StructOCR invoice API into a Lovable.dev app. No backend required — just paste a prompt and add your API key.
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.