---
title: Address Match
slug: api-marketplace/address-match
description: Learn about Signzy's Name Match API, a powerful tool for matching different variations of the same name. With comprehensive match results, scores, and reasons, this API requires authentication and accepts nameBlockv2 input parameters. Explore the sample r
createdAt: 2023-03-23T08:37:20.000Z
---

## Introduction

The Address Match API is a sophisticated tool designed to simplify and enhance the process of address verification. This API efficiently compares two given address strings and determines their similarity, providing a clear indication of whether the addresses match. Upon a simple request with two addresses, the API analyzes and returns a detailed response, including the difference in distance (in kilometers and meters), pin match results, and a distance match status. Furthermore, it calculates an address match score using the Jaro-Winkler method for precise similarity measurement. This API is indispensable for applications involving address verification, fraud detection, or logistics, where accurate address matching is crucial.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/matcher/addressMatcher
```
:::

:::CodeblockTabs
UAT Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/matcher/addressMatcher
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**            | **Required** |
| ------------- | ------------- | -------------------------- | ------------ |
| address1      | String        | First line of the address  | Yes          |
| address2      | String        | Second line of the address | Yes          |

```json
{
    "address1": "Address 1",
    "address2": "Address 2"
}
```

***

### Request Headers

| **Name&#x20;** | **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. |

***

### Code Samples

:::CodeblockTabs
Curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/matcher/addressMatcher' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Authorization token>' \
--data '{
    "address1": "<Address 1>",
    "address2": "<Address 2>"
}'
```

Node.js

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "address1": "<Address 1>",
  "address2": "<Address 2>"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/matcher/addressMatcher',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Authorization token>'
  },
  data : data
};

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

```

Python

```python
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/matcher/addressMatcher"
  method := "POST"

  payload := strings.NewReader(`{
    "address1": "<Address 1>",
    "address2": "<Address 2>"
}`)

  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", "<Authorization 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))
}
```

GO

```go
package main

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

func main() {

  url := "https://api.signzy.app/api/v3/validation/email"
  method := "POST"

  payload := strings.NewReader(`{
    "emailId": "<Email ID>"
}`)

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

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

  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        | Response of the API                                                                                                  |
| result.addressDiffInKm              | Integer       | The difference in kilometers between the two addresses                                                               |
| result.addressDiffInMeters          | Integer       | The difference in meters between the two addresses                                                                   |
| result.pinMatchResult               | String        | Indicates if the PIN codes match                                                                                     |
| result.distanceMatch                | String        | If the distance in Kms is between 0-50 then Match, 50-500 is "Partial Match" and more than 500 is 'No Match'.        |
| result.addressMatch                 | String        | Indicates if the address strings are matching. The possible values are 'Direct Match' and 'No Match'.                |
| result.addressMatchJaroWinklerScore | String        | The [Jaro-Winkler](https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance) score for address string similarity. |

:::CodeblockTabs
200

```json
{
    "result": {
        "addressDiffInKm": 0,
        "addressDiffInMeters": 597,
        "pinMatchResult": "Match",
        "distanceMatch": "Match",
        "addressMatch": "No Match",
        "addressMatchJaroWinklerScore": "45.01"
    }
}
```

400

```json
// Passing invalid data type field value
{
    "error": {
        "name": "error",
        "message": "Address 1 must be a string",
        "status": "Bad Request",
        "statusCode": 400
    }
}

{
    "error": {
        "name": "error",
        "message": "Address 2 must be a string",
        "status": "Bad Request",
        "statusCode": 400
    }
}

```

401

```json
// If Authorization token is not passed
{
    "message": "No API key found in request"
}

// If Authorization token is invalid
{
    "message": "Invalid authentication credentials"
}
```

409

```json
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```
:::

***

**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!
