---
title: Extraction API
slug: v2-apis/7dfi-extraction-api
description: Learn how to extract valuable data from an image of a driving license using our powerful API. Get detailed information like name, date of birth, DL issue date, expiry date, DL number, guardian name, and address. Our comprehensive document guides you throu
createdAt: 2022-09-27T20:24:13.000Z
---

## Introduction

This API will extract data from the image of driving licence provided as an input.&#x20;

It will extract the following information:

- Name
- DL issue date
- D.O.B of DL holder
- Expiry Date
- DL Number
- Guardian name&#x20;
- Address

## How to call the API&#x20;

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

## API Input Guidelines

- Add URL of front and back images of the DL.

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/drivingLicenceV2",
  "name": "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 data from DL images"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "images",
            "type": "string",
            "description": "URL of Front and Back image of  "
          }
        ],
        "description": "Contains essentials input data"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "sMnIjsnmRHgP6AMU3fUyF",
        "code": "{\n    \"essentials\": {\n        \"images\": [\n            \"https://preproduction-persist.signzy.tech/api/files/36871453/download/e26d461bd41b4b57b130fe6acc3c92b9881d58eeb9d94a5b9d8fa645aa7xxxx.webp\",\n            \"https://preproduction-persist.signzy.tech/api/files/36871455/download/155205a78a3b42fa94ea0e91e0ccca13327aa8ba765d4c7f84af19d3467xxxx.webp\"\n        ]\n    },\n    \"id\": \"63335c840b9e46d4a042xxxx\",\n    \"patronId\": \"6140962af6d4030eaexxxx\",\n    \"task\": \"extraction\",\n    \"result\": {\n        \"name\": \" \",\n        \"issueDate\": \"24/01/2007\",\n        \"dob\": \"01/12/1987\",\n        \"expiryDate\": \"23/01/2027\",\n        \"number\": \"MH032008002xxxx\",\n        \"gaurdianName\": \" \",\n        \"guardianName\": \" \",\n        \"address\": \" \",\n        \"splitAddress\": {\n            \"district\": [\n                \"MUMBAI\"\n            ],\n            \"state\": [\n                [\n                    \"MAHARASHTRA\",\n                    \"MH\"\n                ]\n            ],\n            \"city\": [\n                \"MUMBAI\"\n            ],\n            \"pincode\": \"400043\",\n            \"country\": [\n                \"IN\",\n                \"IND\",\n                \"INDIA\"\n            ],\n            \"addressLine\": \"KAMLA RAMAN NAGAR BAIGANWADI GOVANDI\"\n        },\n        \"dlType\": [\n            \"LMV\",\n            \"MCWG\"\n        ],\n        \"state\": \"MAHARASHTRA\",\n        \"summary\": {\n            \"number\": \"MH032008002xxxx\",\n            \"name\": \"BABU KHAN\",\n            \"dob\": \"01/12/1987\",\n            \"address\": \" \",\n            \"splitAddress\": {\n                \"district\": [\n                    \"MUMBAI\"\n                ],\n                \"state\": [\n                    [\n                        \"MAHARASHTRA\",\n                        \"MH\"\n                    ]\n                ],\n                \"city\": [\n                    \"MUMBAI\"\n                ],\n                \"pincode\": \"400043\",\n                \"country\": [\n                    \"IN\",\n                    \"IND\",\n                    \"INDIA\"\n                ],\n                \"addressLine\": \" \"\n            },\n            \"gender\": \"\",\n            \"guardianName\": \" \",\n            \"issueDate\": \"24/01/xxxx\",\n            \"expiryDate\": \"23/01/xxxx\"\n        }\n    }\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "sMnIjsnmRHgP6AMU3fUyF"
  },
  "examples": {
    "languages": [
      {
        "id": "2A5Jdkrjj5rBcjlnrjb8h",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/drivingLicenceV2' \\\n\n--header 'Authorization: <Auth Key>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"task\": \"extraction\",\n    \"essentials\": {\n        \"images\": [\n            \"<DL Front Side URL>\",\n            \"<DL Back side URL>\"\n        ]\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "nx6GH26alDANXcvGYiL12",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/<Patron ID>/drivingLicenceV2' \\\r\n--header 'Accept: application/json, text/plain, */*' \\\r\n--header 'Authorization: <Auth Key>' \\\r\n--header 'Content-Type: application/json' \\\r\n--data-raw '{\r\n    \"task\": \"extraction\",\r\n    \"essentials\": {\r\n        \"images\": [\r\n            \"<DL Front Side URL>\",\r\n            \"<DL Back side URL>\"\r\n        ]\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "2A5Jdkrjj5rBcjlnrjb8h"
  },
  "description": "Driving Licence Data extraction",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### Response Parameters

| **Parameter Name**                      | **Description**                                                                      |
| --------------------------------------- | ------------------------------------------------------------------------------------ |
| id                                      | Unique ID of the response                                                            |
| patronId                                | PatronID of the user from login call                                                 |
| task                                    | The type of task performed - “Extraction”                                            |
| result.name                             | Name of DL holder                                                                    |
| result.issueDate                        | Date of issue of Licence                                                             |
| result.dob                              | Date of birth of licence holder                                                      |
| result.expiryDate                       | Expiry date of DL                                                                    |
| result.number                           | DL number                                                                            |
| result.guardianName                     | Gurdian Name of Licence holder                                                       |
| result.address                          | Address mentioned in DL                                                              |
| result.splitAddress.district            | Name of district mentioned in licence                                                |
| result.splitAddress.state               | Name of state mentioned in Licence                                                   |
| result.splitAddress.city                | Name of city mentioned in Licence                                                    |
| result.splitAddress.pincode             | Pincode  mentioned in Licence                                                        |
| result.splitAddress.country             | Name of the country mentioned in DL                                                  |
| result.splitAddress.addressLine         | Address mentioned in DL                                                              |
| result.dlType                           | Type of driving licence, it can be of multiple types like LMV,MCWG,HMV,HGMV,HPMV/HTV |
| result.state                            | State of Licence holder                                                              |
| result.summary.number                   | DL number                                                                            |
| result.summary.name                     | Name of DL holder                                                                    |
| result.summary.dob                      | Date of birth of licence holder                                                      |
| result.summary.address                  | Address of Licence holder                                                            |
| result.summary.splitAddress.district    | Name of district mentioned in licence                                                |
| result.summary.splitAddress.state       | State in which the DL holder resides                                                 |
| result.summary.splitAddress.city        | Name of city mentioned in Licence                                                    |
| result.summary.splitAddress.pincode     | Pincode of the city                                                                  |
| result.summary.splitAddress.country     | Name of the country mentioned in DL                                                  |
| result.summary.splitAddress.addressLine | Address mentioned in the DL                                                          |
| result.gender                           | Gender of the Licence holder                                                         |
| result.guardianName                     | Gurdian Name of Licence holder                                                       |
| result.issueDate                        | Issue date of the Licence                                                            |
| result.expiryDate                       | Expiry date of the licence                                                           |



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