Australian Driver Licence OCR API

Read the Australian driver 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

Diagram of the API reading a Australian driver licence and returning the fields as JSON.

What Makes the Australian driver licence Hard to Parse

The Australian driver licence is issued by each state and territory road authority (for example Transport for NSW, VicRoads in Victoria and the Department of Transport and Main Roads in Queensland). Australia has no single national driver licence. Each state and territory issues its own card, so the layout, the position of the licence number and even the licence classes on the card differ between New South Wales, Victoria, Queensland and the rest. Most cards also carry a separate card number next to the licence number; the Document Verification Service (DVS) asks for both when you verify a licence, so onboarding flows often have to capture two similar-looking identifiers from one photo.

One API Call, Named Fields

The StructOCR Driver License OCR API returns the licence number, the holder's name, date of birth, residential address, expiry date and licence class (for example C, LR, MR, HR, HC or MC). Australian cards print dates as DD/MM/YYYY; the API returns them 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 and Node.js 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.

1
Upload
2
Results
↑

Drop files here or click to browse

JPG · PNG · PDF · TIFF  ·  up to 500 files · max 4.5 MB each

No document handy?

No files selected
Need more testing? Create a free account to get 200 free credits (equals 100 Driver License scans).

Where Teams Use It in Australia

Rideshare and Delivery Onboarding

Prefill driver profiles with the licence number, class and expiry date before your own checks run.

Car Rental and Car Sharing

Capture the renter's licence at the counter or in the app and flag expired cards before the keys are handed over.

Financial Services KYC

Collect name, date of birth and address from the licence as part of customer identification, then verify the record through your usual provider.

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, date of birth, residential address, expiry date and licence class (for example C, LR, MR, HR, HC or MC).
  • Normalized dates: Australian cards print dates as DD/MM/YYYY; the API returns them as YYYY-MM-DD.
  • Good to know: The separate card number used for DVS checks is not a dedicated field in the response. If your verification flow needs it, ask the user to type it in or confirm it before you submit the DVS request.

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 Australian driver licence, with fictional values.

{
  "success": true,
  "data": {
    "type": "drivers_license",
    "country_code": "AUS",
    "region": "NSW",
    "document_number": "12345678",
    "personal_number": null,
    "surname": "CITIZEN",
    "given_names": "JANE MARIE",
    "sex": null,
    "date_of_birth": "1990-04-12",
    "place_of_birth": null,
    "date_of_issue": null,
    "date_of_expiry": "2029-04-12",
    "date_of_first_issue": null,
    "issuing_authority": null,
    "address": "1 SAMPLE STREET, SYDNEY NSW 2000",
    "vehicle_class": "C"
  }
}

Frequently Asked Questions

Can I test the Australian driver 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.

Does the API read licences from every Australian state?

It reads the printed fields from state and territory driver licence cards and returns them in one JSON structure. Layouts vary by state, so test the cards your users actually hold in the live demo on this page.

Does the response include the card number for DVS?

Not as a dedicated field. The licence number is returned as document_number. Capture the card number separately if your DVS check requires it.

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

SOLUTION

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.

Driver License OCR
SOLUTION

Bank Branch Account Opening with ID Barcode Prefill

Scan US driver licenses and state ID cards for bank branch account opening. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.

Driver License OCR
SOLUTION

Bar and Nightclub ID Scanner API Using PDF417

Scan US driver licenses and state ID cards for bars and nightclubs. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.

Driver License OCR
SOLUTION

RV and Boat Rental License Scanning with PDF417

Scan US driver licenses for RV and boat rentals. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.

Driver License OCR
SOLUTION

Brazilian CNH 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.

Driver License OCR
SOLUTION

Canadian Driver's Licence OCR API

Extract the licence number, name, date of birth, issue and expiry dates, address and licence class from the Canadian driver's licence as JSON with one API call. Try it free in the browser; new accounts get 100 free licence scans.

Driver License OCR
SOLUTION

Cannabis Dispensary ID Scanning with a PDF417 API

Scan US driver licenses and state ID cards for cannabis dispensaries. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.

Driver License OCR
SOLUTION

Car Rental Driver License PDF417 Data Capture

Use PDF417 and AAMVA parsing for vehicle rental check-in. Pre-fill document_number, date_of_expiry, vehicle_class, handle unreadable barcodes, and keep API credentials server-side.

Driver License OCR
SOLUTION

Car Sharing Driver Licence Capture with OCR

How car-sharing and subscription services can capture driver licence data with OCR for compliance workflows, with confirmation steps and clear limits on what OCR does.

Driver License OCR
SOLUTION

Casino Entry and Player Registration with ID Barcodes

Scan US driver licenses and state ID cards for casino entry and player registration. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.

Driver License OCR

Technical Comparisons & Integrations

Explore platform integrations and competitive analysis

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.

Instant Access Cancel Anytime No Credit Card