The RPACPC Aadhaar OCR API extracts key identity information from Aadhaar card images using Optical Character Recognition (OCR). Integrate Aadhaar document data extraction into digital onboarding, document processing and identity information management workflows.
The RPACPC Aadhaar OCR API enables businesses to extract structured identity information from Aadhaar card images through a simple API integration.
By submitting the front and back images of an Aadhaar card, applications can receive machine-readable information in a standardized JSON response, reducing the need for manual document reading and data entry.
The API returns available fields such as Aadhaar number, name, gender, birth year, address, document type and caretaker name.
The API response may include the following information, depending on the response received:
Aadhaar number and document type
Name, gender and date of birth
Registered residential address
Caretaker or guardian name, where available
Step 01
Submit the front and back images using the front and back multipart form-data fields.
Step 02
The API processes the uploaded document images and extracts available identity information.
Step 03
Retrieve the extracted details in a JSON response containing the status, output fields and request metadata.
Step 04
Use the extracted fields to prefill forms, process documents or support your authorized onboarding workflows.
| Parameter | Type | Description |
|---|---|---|
| front | File | Front image of the Aadhaar card. |
| back | File | Back image of the Aadhaar 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, such as India. |
| billable | Indicates whether the request is billable, as returned by the API. |
| output | Object containing the extracted Aadhaar information. |
| output.id_number | Aadhaar number extracted from the document. |
| output.id_gender | Gender extracted from the document. |
| output.id_name | Name extracted from the document. |
| output.id_dob | Date of birth or birth year returned by the API. |
| output.id_address | Address extracted from the document. |
| output.id_type | Identified document type, such as Aadhaar. |
| output.id_caretaker_name | Caretaker or related-person name, when available. |
{
"status": "Success",
"country": "India",
"billable": "Yes",
"message": "Details extraction completed successfully.",
"output": {
"id_number": "375068065236",
"id_gender": "Male",
"id_name": "Harjinder Singh",
"id_dob": "1987",
"id_address": "S/O Jaswant Singh, 8877, Amritsar -I, Amritsar, Amritsar, Punjab, 143001",
"id_type": "Aadhaar",
"id_caretaker_name": "Jaswant Singh"
},
}
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 available Aadhaar details to prefill customer information forms and reduce manual data entry.
Convert identity document images into structured data for authorized business workflows.
Support document intake and information capture in onboarding workflows, subject to applicable regulatory requirements.
Capture identity information from Aadhaar documents to support identity checks, data validation and risk assessment workflows.
Integrate OCR capabilities into internal platforms, document management systems and business applications.
Common questions about the Aadhaar OCR API — what it returns, how fast it is, and how to integrate
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.