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

Extract passport details with a single API.

The RPACPC Passport OCR API extracts key information from passport images using Optical Character Recognition (OCR). Automate passport document data extraction and integrate it into your applications through a simple API request.

Live extraction Replay
1 You upload
passport_front_back.jpgJPG · 1.2 MB · passport pages
Reading document
2 You get back
✓
SUCCESSPassport read · fields extracted
612 ms
Document Passport
Passport no. N7392846
Name PRIYA ANIL DESHMUKH
Date of birth 14/05/1992
Gender Female
Nationality INDIAN
Place of birth PUNE, MAHARASHTRA
Date of issue 12/06/2023
Date of expiry 11/06/2033
Father's name ANIL RAJARAM DESHMUKH
Mother's name SUNITA ANIL DESHMUKH
Response time
< 2 s
Uptime SLA
99.9%+
Rate limit
500 req / sec
Auth
Authorization token
API overview

Simplify Passport OCR API.

The RPACPC Passport OCR API enables businesses and developers to extract structured information from passport images without manually entering document details.

The API processes the submitted passport images and returns the extracted information in JSON format. Depending on the document and image quality, available fields may include passport number, holder’s name, gender, date of birth, nationality, country code, place of birth, place of issue, date of issue, date of expiry and other passport-related information.

Key information available

Access essential Passport OCR API details.

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

01
Passport Identification

Passport number, document type and issuing country

id_number
id_type
id_country_code
id_passport_type
02
Personal Information

Full name, gender, date of birth and nationality

id_name
id_gender
id_dob
id_nationality
03
Passport Issuance & Validity

Place of birth, place of issue and passport validity dates

id_place_of_birth
id_place_of_issue
id_doi
id_doe
04
Additional Passport Information

File number, previous passport number, family details and MRZ name

id_file_num
id_old_passport_num
id_father_name
id_mother_name
id_spouse_name
id_name_from_mrz
How it works

Simple API-based verification process.

Step 01

Upload Passport Images

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

Step 02

OCR Processing

The API analyzes the uploaded passport images and extracts available identity information, including MRZ details when supported.

Step 03

Receive Structured Data

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

Step 04

Integrate into Your Application

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

API Request

Step 1 Submit Passport OCR API details.

Request parameters
Parameter Type Required Description
front File No, if another image is supplied Front image of the passport.
back File No, if another image is supplied Back image of the passport, if applicable.
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 passport information.
output.id_type Identified document type, such as Passport.
output.id_number Passport number extracted from the document.
output.id_gender Gender value extracted from the passport.
output.id_name Name of the passport holder.
output.id_dob Date of birth.
output.id_address Address, if available.
output.id_caretaker_name Caretaker or related-person name, if available.
output.id_country_code Country code associated with the passport.
output.id_nationality Nationality printed on the passport.
output.id_place_of_birth Place of birth.
output.id_place_of_issue Place where the passport was issued.
output.id_doi Date of issue.
output.id_doe Date of expiry.
output.id_passport_type Passport type code extracted from the document.
output.id_file_num Passport application or file number, if available.
output.id_old_doi Issue date of the previous passport, if available.
output.id_old_passport_num Previous passport number, if available.
output.id_old_place_of_issue Previous passport’s place of issue, if available.
output.id_father_name Father’s name, if available.
output.id_mother_name Mother’s name, if available.
output.id_spouse_name Spouse’s name, if available.
output.id_name_from_mrz Boolean indicating whether the name was identified from the Machine Readable Zone (MRZ).
200 · Sample responseRESPONSE
{
  "status": "Success",
  "country": "India",
  "billable": "Yes",
  "message": "Details extraction completed successfully.",
  "output": {
    "id_type": "Passport",
    "id_number": "N7392846",
    "id_gender": "F",
    "id_name": "PRIYA ANIL DESHMUKH",
    "id_dob": "14/05/1992",
    "id_address": "",
    "id_caretaker_name": "",
    "id_country_code": "IND",
    "id_nationality": "INDIAN",
    "id_place_of_birth": "PUNE, MAHARASHTRA",
    "id_place_of_issue": "PUNE",
    "id_doi": "12/06/2023",
    "id_doe": "11/06/2033",
    "id_passport_type": "P",
    "id_file_num": "",
    "id_old_doi": "",
    "id_old_passport_num": "",
    "id_old_place_of_issue": "",
    "id_father_name": "ANIL RAJARAM DESHMUKH",
    "id_mother_name": "SUNITA ANIL DESHMUKH",
    "id_spouse_name": "",
    "id_name_from_mrz": true
  }
}

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

Passport OCR API across business workflows.

Travel and Tourism

Automate passport information capture for authorized travel booking, passenger verification and customer registration workflows.

Hospitality and Guest Registration

Streamline passport data entry for authorized hotel guest registration and document processing.

Digital Onboarding

Extract available identity details to prefill forms and reduce manual data entry.

Identity Verification & Compliance

Support identity verification and KYC workflows using extracted passport information.

Document Management Automation

Integrate passport OCR into enterprise applications and authorized document processing systems.

FAQ

Frequently asked questions

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

Still have a question? Talk to an expert
What is the Passport OCR API?
The Passport OCR API extracts available information from passport images and returns the results in structured JSON format.
Are both front and back images required?
You can submit the front image only, the back image only, or both images in the same request. The information extracted depends on which images are provided and the details they contain.
What information can the API extract?
Available fields include passport number, name, gender, date of birth, nationality, country code, place of birth, place of issue, issue date, expiry date and additional passport details.
What is the MRZ?
The machine-readable zone (MRZ) contains standardized passport information in a machine-readable format.
Can the API extract previous passport details?
The response schema includes fields for the previous passport number, issue date and place of issue. These fields may remain empty when the information is unavailable.
What happens if some fields are missing?
Fields may be empty when information is absent, illegible or not successfully extracted from the submitted images.
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.