The RPACPC Voter ID OCR API extracts key information from Indian Voter ID cards using Optical Character Recognition (OCR). Automate voter identity document data extraction and integrate it into your applications through a simple API request.
The RPACPC Voter ID OCR API enables businesses and developers to extract structured identity information from Voter ID card images without manually entering document details.
The API processes the submitted images and returns available information in JSON format. Extracted fields may include Voter ID number, cardholder name, gender, date of birth, address, document type, and caretaker or related-person name.
The API response may include the following information, depending on the response received:
Voter ID number and document type
Name, gender and date of birth
Registered residential address
Caretaker or related-person name, where available
Submit the front image, back image, or both using the front and back multipart form-data fields.
The API processes the submitted images and extracts available identity and address information.
Retrieve the extracted Voter ID details in JSON format along with processing status and request metadata.
Use the extracted fields to prefill forms, process documents or support your authorized onboarding workflows.
| Parameter | Type | Required | Description |
|---|---|---|---|
| front | File | No, if another image is supplied | Front image of the Voter ID card. |
| back | File | No, if another image is supplied | Back image of the Voter ID card. |
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 processing request. |
| billable | Indicates whether the request is billable. |
| output | Object containing extracted Voter ID information. |
| output.id_number | Voter ID card number. |
| output.id_gender | Gender extracted from the card, when available. |
| output.id_name | Full name of the cardholder. |
| output.id_dob | Date of birth, when available. |
| output.id_address | Address extracted from the Voter ID card, when available. |
| output.id_type | Identified document type, such as Voter ID. |
| output.id_caretaker_name | Name of the father, mother, spouse, or other related person, if available. |
{
"status": "Success",
"country": "India",
"billable": "Yes",
"message": "Details extraction completed successfully.",
"output": {
"id_number": "ABC1234567",
"id_gender": "F",
"id_name": "PRIYA RAJESH SHARMA",
"id_dob": "15/08/1992",
"id_address": "FLAT 204, GREEN PARK APARTMENTS, CIVIL LINES, NAGPUR, MAHARASHTRA, 440001",
"id_type": "Voter ID",
"id_caretaker_name": "RAJESH SHARMA"
}
}
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 Voter ID details during customer registration and onboarding workflows to reduce manual data entry.
Capture available Voter ID information as part of broader KYC workflows, alongside any required identity and document verification checks.
Populate application forms with information extracted from Voter ID images, helping streamline registration processes.
Extract and organize identity document details for digital records and document processing systems.
Integrate Voter ID data extraction into existing applications, databases, and customer management workflows.
Common questions about the Voter ID OCR API — what it returns, how to submit images, and how to integrate it.
Discover the fastest identity solution for startups to streamline customer verification, speed up onboarding, and support business growth.
Read More
Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.