We’re excited to launch our latest product to simplify your business processes. Know More →
OCR RPACPC OCR SuiteDocument Verification

Extract driving license details with a single API.

The RPACPC Driving License OCR API extracts key information from Indian driving license images using Optical Character Recognition (OCR).
Simplify document processing and integrate driving license data extraction into your applications through a single API request.

Live extraction Replay
1 You upload
driving_license_front_back.jpg JPG · Front & back
Reading document
2 You get back
✓
SUCCESS Driving licence identified · fields extracted
612 ms
Licence no. MH12 20250012345
Name RAHUL KUMAR SHARMA
Date of birth 12-06-1995
Issue date 15-03-2025
Vehicle classes MCWG · LMV
Validity 14/03/2030 · 14/03/2045
Issuing authority RTO PUNE
Response time
< 2 s
Uptime SLA
99.9%+
Rate limit
500 req / sec
Auth
Authorization token
API overview

Simplify driving license data extraction.

The RPACPC Driving License OCR API enables businesses and developers to extract structured information from driving license images without manually entering the details.
The API processes the provided document images and returns the extracted information in JSON format. Depending on the document and image quality, available fields may include license number, name, date of birth, issue date, blood group, caretaker name, license validity, vehicle classes, license type and issuing authority.

Key information available

Access essential Driving License OCR API details.

The API response may include the following information, depending on the response received:

01
Licence Identification

Driving licence number, document type and issuing authority

id_number
id_type
id_issuing_authority
02
Personal Information

Name, date of birth, age and caretaker name

id_name
id_dob
id_age
id_caretaker_name
03
Licence Validity & Vehicle Classes

Issue date, licence validity and authorized vehicle classes

id_issue_date
id_validity
id_vehicle_classes
04
Additional Licence Details

Blood group, licence nature and document identification result

id_blood_group
id_nature_of_license
identify_doc
How it works

Simple API-based verification process.

Step 01

Upload Driving Licence Images

Submit the front image, back image, or both using multipart form-data.

Step 02

Extract Licence Information

The API processes the supplied images and extracts the available text and licence details.

Step 03

Receive JSON Response

Get structured driving licence information along with request status and tracking identifiers.

Step 04

Integrate into Your Application

Use the extracted licence details to prefill forms, automate document processing and support authorized onboarding workflows.

API Request

Step 1 Submit Driving License OCR API details.

Request parameters
Parameter Type Required Description
front File No, if another image is supplied Front image of the driving licence.
back File No, if another image is supplied Back image of the driving licence.
The request values shown are illustrative dummy data.
Sample request REQUEST
headers = {
    "Authorization": "prod-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

files = [
    ("front", ("1.jpg", open("1.jpg", "rb"), "image/jpeg")),
    ("back", ("2.jpg", open("2.jpg", "rb"), "image/jpeg"))
]
API response

Step 2Receive structured verification information.

Key response fields
Field Description
country Country associated with the document.
billable Indicates whether the request is billable.
output Object containing extracted driving licence information.
output.id_number Driving licence number.
output.id_gender Gender, if available.
output.id_issue_date Date the licence was issued.
output.id_name Name of the licence holder.
output.id_dob Date of birth.
output.id_address Address, if available.
output.id_type Identified document type.
output.id_caretaker_name Caretaker or related-person name, if available.
output.id_blood_group Blood group, if available.
output.id_vehicle_classes List of vehicle classes identified on the licence.
output.id_validity Validity dates for transport and non-transport categories.
output.identify_doc Boolean indicating document identification result.
output.id_issuing_authority Issuing authority, if available.
output.id_nature_of_license Nature of licence, such as Permanent.
output.id_age Age extracted or derived by the API.
200 · Sample responseRESPONSE
{
  "status": "Success",
  "country": "India",
  "billable": "Yes",
  "message": "Details extraction completed successfully.",
  "output": {
    "id_number": "MH12 20250012345",
    "id_gender": "",
    "id_issue_date": "15-03-2025",
    "id_name": "RAHUL KUMAR SHARMA",
    "id_dob": "12-06-1995",
    "id_address": "Pune, Maharashtra, India",
    "id_type": "Driving License",
    "id_caretaker_name": "SURESH KUMAR SHARMA",
    "id_blood_group": "B+",
    "id_vehicle_classes": [
      "MCWG",
      "LMV"
    ],
    "id_validity": {
      "Transport": "14/03/2030",
      "Non-Transport": "14/03/2045"
    },
    "identify_doc": true,
    "id_issuing_authority": "RTO PUNE",
    "id_nature_of_license": "Permanent",
    "id_age": 31
  }
}

Illustrative response using dummy data. The API may return additional fields such as request ID, sequence ID and timestamps. Field availability and values may vary.

Use cases

Driving License OCR API across business workflows.

Digital onboarding

Extract driving licence details to prefill customer forms and simplify authorized customer onboarding processes.

Vehicle rental services

Capture licence holder details and available vehicle categories for rental application workflows.

Insurance applications

Automate document intake and capture relevant driving licence information for authorized insurance workflows.

Identity verification and complianc

Verify driving licence details and check available licence status information to support customer identity verification and compliance workflows.

Business process automation

Integrate driving licence verification into document management systems and enterprise applications.

FAQ

Frequently asked questions

Common questions about the Driving License API — what it returns, how fast it is, and how to integrate

Still have a question? Talk to an expert
What is the Driving License OCR API?
The Driving License OCR API extracts available information from driving license images and returns the results in structured JSON format.
Are both front and back images required?
No. You can submit only the front image, only the back image, or both images together in a single API request.
What information can the API extract?
Available information includes license number, holder's name, date of birth, issue date, blood group, caretaker name, vehicle classes, license validity, issuing authority and other document details.
What is the response format?
The API returns a JSON object containing the processing status, extracted fields inside output, and request metadata.
What happens if some fields are missing?
Fields may be empty or contain empty arrays when the information is unavailable, illegible or not present in the submitted images.
Does OCR verify a driving license with an RTO database?
OCR extracts information from document images. Database verification or authenticity checks should only be claimed if a separate verification capability explicitly supports them.
Blog

What Is the Fastest Identity Solution for a Rapidly Growing Startup?

Discover the fastest identity solution for startups to streamline customer verification, speed up onboarding, and support business growth.

Read More
What Is the Fastest Identity Solution for a Rapidly Growing Startup?

India's verification infrastructure is already here.

Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.