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.
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.
The API response may include the following information, depending on the response received:
Driving licence number, document type and issuing authority
Name, date of birth, age and caretaker name
Issue date, licence validity and authorized vehicle classes
Blood group, licence nature and document identification result
Step 01
Submit the front image, back image, or both using multipart form-data.
Step 02
The API processes the supplied images and extracts the available text and licence details.
Step 03
Get structured driving licence information along with request status and tracking identifiers.
Step 04
Use the extracted licence details to prefill forms, automate document processing and support authorized onboarding workflows.
| 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. |
headers = {
"Authorization": "prod-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
files = [
("front", ("1.jpg", open("1.jpg", "rb"), "image/jpeg")),
("back", ("2.jpg", open("2.jpg", "rb"), "image/jpeg"))
]
| 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. |
{
"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.
Extract driving licence details to prefill customer forms and simplify authorized customer onboarding processes.
Capture licence holder details and available vehicle categories for rental application workflows.
Automate document intake and capture relevant driving licence information for authorized insurance workflows.
Verify driving licence details and check available licence status information to support customer identity verification and compliance workflows.
Integrate driving licence verification into document management systems and enterprise applications.
Common questions about the Driving License API — what it returns, how fast it is, and how to integrate
Government ID Check API helps banks, FinTechs, and NBFCs streamline KYC with faster identity verification and reduced manual work.
Read More
Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.