---
title: Extraction API
slug: v2-apis/lmhC-extraction-api
description: Learn how to extract Voter ID data from an Indian Voter ID using our comprehensive API. Understand the API call process, including input guidelines for images or URLs. Get code examples for seamless integration and explore detailed parameter descriptions 
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

This API is used to extract Voter Id data from any Indian Voter Id by uploading either front image & back image or URLs of the images as input.

## How to call the API

Before going for Auto reading calls, you first need to create an Identity object. Need to pass accessToken and itemid obtained from identity call along with other input parameters

## API Input Guidelines

To hit this API front and back images or URLs of the need to given as input.

## Sample Curl

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<patronId>/voterIdV2",
  "name": "Voter ID 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-extracting voter Id data"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "images",
            "type": "string",
            "description": "Url of front and back image of Voter Id"
          }
        ],
        "description": "essential part of the request"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "wyb0TKr0vws29DEEH600R",
        "code": "{\n    \"essentials\": {\n        \"images\": [\n            \"frontImage.jpg\",\n            \"backImage.jpg\"\n        ]\n    },\n    \"id\": \"\",\n    \"patronId\": \"\",\n    \"task\": \"extraction\",\n    \"result\": {\n        \"status\": \"200\",\n        \"name\": \"\",\n        \"fatherName\": \"\",\n        \"address\": \"\",\n        \"state\": \"HARYANA\",\n        \"ageAsOn\": \"\",\n        \"dob\": \"\",\n        \"gender\": \"FEMALE\",\n        \"yob\": \"\",\n        \"epicNumber\": \"\",\n        \"splitAddress\": {\n            \"district\": [\n                \"FARIDABAD\"\n            ],\n            \"state\": [\n                [\n                    \"HARYANA\",\n                    \"HR\"\n                ]\n            ],\n            \"city\": [\n                \"\"\n            ],\n            \"pincode\": \"\",\n            \"country\": [\n                \"IN\",\n                \"IND\",\n                \"INDIA\"\n            ],\n            \"addressLine\": \"\"\n        },\n        \"msg\": \"success\"\n    }\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "wyb0TKr0vws29DEEH600R"
  },
  "examples": {
    "languages": [
      {
        "id": "UdujZUG1iSlHuM0q2Tdf6",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/<patronId>/voterIdV2' \\\n--header 'Authorization: <token>' \\\n--header 'content-type: application/json' \\\n--data-raw '{\n    \"task\": \"extraction\",\n    \"essentials\": {\n        \"images\": [\n            \"<Front image Url>\",\n            \"<back image Url>\"\n        ]\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "QTS0RSB-UIH1nSs1gK7eV",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/<patronId>/voterIdV2' \\\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            \"<Front image Url>\",\r\n            \"<back image Url>\"\r\n        ]\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "QTS0RSB-UIH1nSs1gK7eV"
  },
  "description": "Extracting Voter Id details",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### Response Parameter

| ***Parameter Name&#x20;***      | **Description**                                             |
| ------------------------------- | ----------------------------------------------------------- |
| essentials                      | Contain essential data for input                            |
| essentials.images               | Contains Images Url                                         |
| id                              | Contains unique Id                                          |
| patronId                        | Contains patron Id                                          |
| task                            | Extracting voter Id data                                    |
| result                          | Contains the output details                                 |
| result.status                   | Contains the result status                                  |
| result.name                     | Contains name of the voter Id holder                        |
| result.fatherName               | Contains father name or husband name of the voter Id holder |
| result.address                  | Contains address                                            |
| result.state                    | Contains state name                                         |
| result.ageAsOn                  | Contains Age of the Indentity holder                        |
| result.dob                      | Contains date of birth                                      |
| result.gender                   | Contains gender information of the indentity holder         |
| result.yob                      | Contains year of birth                                      |
| result.epicNumber               | Contains epic number of Voter Id                            |
| result.splitAddress.district    | Contains district name                                      |
| result.splitAddress.state       | Contains state name                                         |
| result.splitAddress.city        | Contains name of the city                                   |
| result.splitAddress.pincode     | Contains pincode                                            |
| result.splitAddress.country     | Contains Country name                                       |
| result.splitAddress.addressLine | Contains address house number area etc                      |
| result.msg                      | Contains message of success or failure of the output        |

***

:::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).
:::
