---
title: [Beta] Generic ID Extractor
slug: api-marketplace/beta-generic-id-extractor
createdAt: 2024-04-03T07:39:01.300Z
---

## Introduction

This API allows users to extract information from KYC  documents  such as Aadhar, Pan, Voter Id and other cards through images. The API accepts an image URL containing  KY  document. The API returns a JSON response with the extracted information in a result object including  name of the business, address of the business, unique id of the documents and many other related information.     &#x20;
&#x20;      &#x20;
&#x20;      &#x20;
&#x20; &#x20;

***

## API details

### Endpoint

:::CodeblockTabs
Production Environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/extraction/idb_bot
```
:::

:::CodeblockTabs
Production Environment

```jsx
POST https://api.signzy.app/api/v3/extraction/idb_bot
```
:::

***

### Request headers&#x20;

| **Name**      | **Value**        | **Required** | **Description**                                                                                            |
| ------------- | ---------------- | ------------ | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Mandatory    | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXXXXXX  | Mandatory    | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Request body parameters

| **Parameter** | **Data type** | **Description**                                                                                                    | **Required** |
| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------ | ------------ |
| imgUrl        | String        | A URL of the image. <br />Acceptable image format TIFF/TIF, JPEG/JPG, PNG, PDF(maximum 2 pages) containing id card | Mandatory    |

```json
{
    "imgUrl": "https://development-persist.signzy.tech/api/files/893839/download/xxxxx.jpg"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api.signzy.app/api/v3/extraction/idb_bot' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Auth-Token>' \
--data '{
    "imgUrl": "https://development-persist.signzy.tech/api/files/893839/download/xxxxx.jpg"
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "imgUrl": "https://development-persist.signzy.tech/api/files/xxxx/download/xxxx.jpg"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.signzy.app/api/v3/extraction/idb_bot',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Auth-Token>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});


```

```python
import requests
import json

url = "https://api.signzy.app/api/v3/extraction/idb_bot"

payload = json.dumps({
  "imgUrl": "https://development-persist.signzy.tech/api/files/xxxx/download/xxxx.jpg"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Auth-Token>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.signzy.app/api/v3/extraction/idb_bot"
  method := "POST"

  payload := strings.NewReader(`{
    "imgUrl": "https://development-persist.signzy.tech/api/files/xxxx/download/xxxx.jpg"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "<Auth-Token>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| **Parameter**    | **Data Type**  | **Description**                                         |
| ---------------- | -------------- | ------------------------------------------------------- |
| result           | Object         | An object containing the extracted udyog aadhar details |
| result.name      | String         | Name of the card holder                                 |
| result.dob       | Date           | dob of the card holder                                  |
| result.id        | String         | Unique id associated with the card                      |
| result.address   | String         | Address of the card holder                              |
| result.city      | String         | city associated with the cardholder's address           |
| result.zip\_code | String         | zip\_code associated with the cardholder's address      |
| result.state     | String         | state associated with the cardholder's address          |
| result.country   | String         | country of issue of the card                            |

:::CodeblockTabs
200

```json
{
    "result": {
        "name": "John Doe",
        "dob": "23/09/1999",
        "id": "xxxx",
        "address": "",
        "id_type": "Permanent Account Number Card",
        "city": "",
        "zip_code": "",
        "state": "",
        "country": "India"
    }
}
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

422

```azcli
{
  "error": {
       "status": 422,
       "msg": "The pdf file contains more than 2 pages"
     }
}
```

413

```azcli
{
  "error": {
       "status": 413, 
       "msg": "The file size is greater than 5 MB"
     }
}
```
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!



