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

Extract Aadhaar card details through a single API.

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.

Live extraction Replay
1 You upload
aadhaar_front_back.jpgJPG · 1.2 MB · front & back
Reading document
2 You get back
✓
SUCCESSBoth sides read · fields extracted
612 ms
Document Aadhaar · front & back
Name Harjinder Singh
Date of birth 1987
Gender Male
Aadhaar no. XXXX XXXX 5236
Address S/O Jaswant Singh, 8877, Amritsar-I, Amritsar, Punjab, 143001
Caretaker name Jaswant Singh
Masked copy✓ Generated
Response time
< 2 s
Uptime SLA
99.9%
Rate limit
500 req / min
Auth
Authorization token
API overview

Simplify Aadhaar OCR API

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.

Key information available

Access essential Aadhaar OCR API details.

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

01
Aadhaar Identification Details

Aadhaar number and document type

aadhaar_number
id_type
02
Personal Information

Name, gender and date of birth

id_name
id_gender
id_dob
03
Address Information

Registered residential address

id_address
04
Caretaker Information

Caretaker or guardian name, where available

id_caretaker_name
How it works

Simple API-based verification process.

Step 01

Upload Aadhaar Images

Submit the front and back images using the front and back multipart form-data fields.

Step 02

OCR Processing

The API processes the uploaded document images and extracts available identity information.

Step 03

Receive Structured Data

Retrieve the extracted details in a JSON response containing the status, output fields and request metadata.

Step 04

Integrate into Your Application

Use the extracted fields to prefill forms, process documents or support your authorized onboarding workflows.

API Request

Step 1 Submit Aadhaar OCR API details.

Request parameters
Parameter Type Description
front File Front image of the Aadhaar card.
back File Back image of the Aadhaar card.
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, 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.
200 · Sample responseRESPONSE
{
  "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.

Use cases

Aadhaar OCR API across business workflows.

Digital onboarding and KYC workflows

Extract available Aadhaar details to prefill customer information forms and reduce manual data entry.

Document processing automation

Convert identity document images into structured data for authorized business workflows.

Financial services and insurance

Support document intake and information capture in onboarding workflows, subject to applicable regulatory requirements.

Identity verification and fraud prevention

Capture identity information from Aadhaar documents to support identity checks, data validation and risk assessment workflows.

Enterprise applications

Integrate OCR capabilities into internal platforms, document management systems and business applications.

FAQ

Frequently asked questions

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

Still have a question? Talk to an expert
What is the Aadhaar OCR API?
The Aadhaar OCR API extracts available information from Aadhaar card images and returns it in a structured JSON response.
What information can the API extract?
Available fields include Aadhaar number, name, gender, birth year or date of birth, address, document type and caretaker name.
Are both the 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 format does the API return?
The API returns JSON containing a processing status, an output object with extracted fields, and request metadata.
Does Aadhaar OCR verify the authenticity of an Aadhaar card?
OCR extracts text from document images. It should not be treated as proof of document authenticity or as a UIDAI database verification unless a separate verification service explicitly provides that capability.
Can I use the extracted information in my application?
Yes. You can integrate the returned fields into authorized document processing and onboarding workflows, subject to applicable consent, privacy and data-protection requirements.
What happens if the image is unclear?
OCR accuracy can be affected by blur, glare, low resolution, cropping and other image-quality issues. Use clear, legible images and handle unsuccessful or incomplete extraction responses in your application.
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.