---
title: Extraction API
slug: v2-apis/gxlM-extraction-api
description: Learn how to extract details from a Business PAN card using OCR technology with our Extraction API. This document provides step-by-step instructions on calling the API and offers guidelines for optimal API input. Discover sample code examples for seamless
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

The Extraction API is used to extract certain details from the Business PAN card like name, Date of Issue, and so on for Business PAN holder using an OCR.

## How to call the API

You will need to [login](https://docs.signzy.com/sandboxapis) before sending the request. You are required to pass the access token received from the login call, as authorization header in the Extraction API request.

## API Input Guidelines

For best results, please make sure that the image you use fits tightly in camera view and is horizontally-aligned. Each image/pdf should be less than 2MB.

Though this engine support extraction of images as well as pdf files, our test results indicate that there is much better accuracy and faster response time for image extraction. We would suggest you to pass only image file for better results. For pdf files extacrtion, you can use our pdf to image converter API and then pass the resulted image file in this extraction engine.Pdf to Image(JPG).

## Sample Curl

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/businessPanV2",
  "name": "Pan Extraction",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "String",
        "children": [],
        "description": "Contains the id parameter returned from the login step"
      },
      {
        "kind": "required",
        "name": "content-type",
        "type": "String",
        "children": [],
        "description": "Application/JSON"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "task",
        "type": "string",
        "description": "Task- Extraction of PAN Data"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "essentials.images",
            "type": "string",
            "description": "URL of PAN image"
          }
        ],
        "description": "Essential part of the request"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "GjCygulr4a2fUF88IY43P",
        "code": "{\r\n    \"essentials\": {\r\n        \"images\": [\r\n            \"........upload front file.........\"\r\n        ]\r\n    },\r\n    \"id\": \"\",\r\n    \"patronId\": \"\",\r\n    \"task\": \"extraction\",\r\n    \"result\": {\r\n        \"dateOfIssue\": \"\",\r\n        \"name\": \"\",\r\n        \"number\": \"\",\r\n        \"summary\": {\r\n            \"number\": \"\",\r\n            \"name\": \"\",\r\n            \"dob\": \"\",\r\n            \"address\": \"\",\r\n            \"splitAddress\": {\r\n                \"district\": [],\r\n                \"state\": [\r\n                    []\r\n                ],\r\n                \"city\": [],\r\n                \"pincode\": \"\",\r\n                \"country\": [],\r\n                \"addressLine\": \"\"\r\n            },\r\n            \"gender\": \"\",\r\n            \"guardianName\": \"\",\r\n            \"issueDate\": \"\",\r\n            \"expiryDate\": \"\",\r\n            \"fatherName\": \"\"\r\n        },\r\n        \"dob\": \"\",\r\n        \"fatherName\": \"\"\r\n    }\r\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "GjCygulr4a2fUF88IY43P"
  },
  "examples": {
    "languages": [
      {
        "id": "GGGgqKzwfVLnZqEi7kYOh",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/<patronid>/businessPanV2' \\\n\n--header 'Authorization: <token>' \\\n--header 'content-type: application/json' \\\n--data-raw '{\n    \"task\": \"extraction\",\n    \"essentials\": {\n        \"images\": [\n            \"<........upload front file.........>\"\n        ]\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "R5IbGwXmF2m7_Om2c-aWb",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/<patronid>/businessPanV2' \\\r\n\r\n--header 'Authorization: <token>' \\\r\n--header 'content-type: application/json' \\\r\n--data-raw '{\r\n    \"task\": \"extraction\",\r\n    \"essentials\": {\r\n        \"images\": [\r\n            \"<........upload front file.........>\"\r\n        ]\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "R5IbGwXmF2m7_Om2c-aWb"
  },
  "description": "Extracting Bussiness Pan Data",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### Response Parameter

| **Parameter Name&#x20;**                | **Description**                                                                                                                                                                                                                               |
| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| essentials                              | Essential part of the request                                                                                                                                                                                                                 |
| essentials.images                       | URL of PAN image                                                                                                                                                                                                                              |
| id                                      | Unique user id                                                                                                                                                                                                                                |
| patronId                                | Unique patronId                                                                                                                                                                                                                               |
| task                                    | The type of task performed - “extraction”                                                                                                                                                                                                     |
| result<br />                            | It is the collection of response obtained on <br />  API hit.                                                                                                                                                                                 |
| result.dateOfIssue                      | Date of issue of PAN card                                                                                                                                                                                                                     |
| result.name                             | Name of the PAN card holder/ Name of the <br />organization                                                                                                                                                                                   |
| result.number                           | PAN Number                                                                                                                                                                                                                                    |
| result.summary                          | Summary of OCR output for given input                                                                                                                                                                                                         |
| result.summary.number                   | PAN Number                                                                                                                                                                                                                                    |
| result.summary.name                     | Name of the PAN card holder/ Name of <br />the organization                                                                                                                                                                                   |
| result.summary.dob                      | Date of birth of person/ Establishment date of <br />organization.                                                                                                                                                                            |
| result.summary.address                  | Address of the person/Organization.                                                                                                                                                                                                           |
| result.summary.splitAddress             | This parameter displays the various parts of the  address to<br />by splitting them into separate categories like district,<br /> state, city, pincode and country. For the country category, <br />acceptable values is “IN”,”IND”and”INDIA” |
| result.summary.splitAddress.district    | Name of the district                                                                                                                                                                                                                          |
| result.summary.splitAddress.state       | Name of the state                                                                                                                                                                                                                             |
| result.summary.splitAddress.city        | Name of the city                                                                                                                                                                                                                              |
| result.summary.splitAddress.pincode     | Area Pincode corresponding to the address.                                                                                                                                                                                                    |
| result.summary.splitAddress.country     | Country Name                                                                                                                                                                                                                                  |
| result.summary.splitAddress.addressLine | First Line of Address                                                                                                                                                                                                                         |
| result.summary.gender                   | Gender of the card holder                                                                                                                                                                                                                     |
| result.summary.guardianName             | Name of the guardian                                                                                                                                                                                                                          |
| result.summary.issueDate                | Date of idssue of pancard                                                                                                                                                                                                                     |
| result.summary.expiryDate               | Date of expiry of pan card                                                                                                                                                                                                                    |
| result.summary.fatherName               | Father Name of the card holder                                                                                                                                                                                                                |
| result.dob                              | Date Of Birth of the card holder                                                                                                                                                                                                              |
| result.fatherName                       | Father Name  of card holder                                                                                                                                                                                                                   |

***

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](mailto\:help@signzy.com).
:::
