Skip to main content
POST
/
v2
/
ocr
/
pan
Extract data from PAN Card
curl --request POST \
  --url https://bgv.konnectnxt.com/api/v2/ocr/pan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "document_url": "https://example.com/documents/pan-sample.jpg"
}
'
{
"status": "success",
"code": 200,
"message": "Operation completed successfully",
"data": {
"pan_number": "MYWPS3665E",
"name": "Rajesh Kumar Sharma",
"father_name": "Rakesh Kumar Sharma",
"date_of_birth": "1990-03-15",
"date_of_issue": "",
"pan_type": "Individual",
"age": 35,
"is_minor": false,
"is_scanned": true
},
"credits_used": 10,
"credits_remaining": 984066.5
}

Description

Extract structured data from PAN cards using advanced OCR technology powered by IDfy. Simply provide the document URL and receive comprehensive details including PAN number, name, father’s name, date of birth, PAN type, and age information. The API automatically detects whether the document is scanned or photographed and validates minor status.

Use Cases

This API is valuable for:
  • Digital KYC Onboarding - Automate customer verification by extracting PAN details during account opening or registration processes
  • Loan Applications - Quickly capture applicant PAN information for identity verification and credit assessment
  • Tax Compliance - Extract PAN details for tax filing and compliance requirements without manual data entry
  • Identity Authentication - Verify individual identity by extracting name, father’s name, and date of birth from PAN uploads
  • Document Validation - Detect whether the PAN card is scanned or photographed to assess document quality
  • Age Verification - Automatically calculate age and determine minor status for age-restricted services
  • Customer Onboarding - Eliminate manual data entry by automatically capturing all PAN fields from uploaded documents

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
document_url
string<uri>
required

Public URL of the PAN card image (JPG, PNG, or PDF)

Example:

"https://example.com/documents/pan-sample.jpg"

Response

PAN OCR processed successfully

status
enum<string>
required

Overall status of the API

Available options:
success,
error
code
integer
required

HTTP status code

Example:

400

message
string
required

Description of the response or error

Example:

"Invalid request parameters"

data
object
required
credits_used
integer
required

Represents the total number of credits used in this request.

Example:

3

credits_left
integer
required

Represents the remaining credits available for use.

Example:

4040