API Documentation DH-Boss


PAN OCR API - DHBOSS API

PAN OCR API can be used to read and parse the text from a given PAN document image which then returns the information in the JSON format. This API supports both individual and business PAN documents. PAN OCR API is very helpful for automatically filling out forms when data from the PAN document is retrieved and utilised to complete the form's fields.


API Outcome

  • PAN number
  • Name of individual / entity
  • Date of birth / incorporation
  • Father's name for individuals
  • Category of pan

Extracts data from PAN Cards instantly and accurately.

DHBOSS API PAN Card OCR API extracts data from an image of a PAN card. It accurately auto-fills this data in the right fields for a quicker & errorless form-filling experience.


PAN OCR technology offers distinct advantages across various sectors. For businesses, it streamlines customer onboarding and ensures data compliance. Government agencies benefit from more efficient and error-free administrative processes. Individuals find it easier to apply for financial products like loans and credit cards.

- docs.dhboss.com


GET/POST : pan_ocr_api

What is needed to use this API and how it will work is described below -
Your Api Key : Get API In Profile & eKYC

Input Parameters Detail
Name Type Description Mandatory
pan_image_url String {Enter Value} Yes
apikeyfill String {Enter Value} Yes

Output Parameters Detail
Name Type Description
code integer 200
status string success
message string Success
response.category string INDIVIDUAL
response.identity_type string P
response.age string 24
response.pancase string MAJOR
response.pan_no string AAAPA0001A
response.registered_name string DUMMY NAME
response.dob string 10/07/2001
response.father_name string DUMMY FATHER NAME






Call API URL
https://api.dhboss.com/apicall/pan_ocr_api/
API Call Request Parameters
pan_image_url=value&apikeyfill=value                                                   
API Call Example Request
<?php

$url = "https://api.dhboss.com/apicall/pan_ocr_api/";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

$data = 'pan_image_url=https://example.com/pancardimage.png&apikeyfill=yourkey';
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

echo $response = curl_exec($curl);
curl_close($curl);

?>
API Hit Example Response
{
	"code": 200,
	"status": "success",
	"message": "Success",
	"response": {
		"category": "INDIVIDUAL",
		"identity_type": "P",
		"age": "24",
		"pancase": "MAJOR",
		"pan_no": "AAAPA0001A",
		"registered_name": "DUMMY NAME",
		"dob": "10/07/2001",
		"father_name": "DUMMY FATHER NAME"
	}
}