curl --request POST \
--url 'https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=' \
--header 'Content-Type: application/json' \
--data '
{
"Key": "AA11-AA11-AA11-AA11",
"GeoCode": false,
"Addresses": [
{
"Latitude": "",
"Longitude": "",
"Address": "",
"Address1": "",
"Address2": "",
"Address3": "",
"Address4": "",
"Address5": "",
"Address6": "",
"Address7": "",
"Address8": "",
"DeliveryAddress": "",
"DeliveryAddress1": "",
"DeliveryAddress2": "",
"DeliveryAddress3": "",
"DeliveryAddress4": "",
"DeliveryAddress5": "",
"DeliveryAddress6": "",
"DeliveryAddress7": "",
"DeliveryAddress8": "",
"Id": "",
"SuperAdministrativeArea": "",
"AdministrativeArea": "",
"SubAdministrativeArea": "",
"Locality": "",
"DependentLocality": "",
"DoubleDependentLocality": "",
"Thoroughfare": "",
"DependentThoroughfare": "",
"Building": "",
"Premise": "",
"SubBuilding": "",
"SubBuildingFloor": "",
"PostalCode": "",
"Organization": "",
"PostBox": "",
"Country": "",
"Contact": "",
"Function": "",
"Department": "",
"Forename": "",
"Surname": "",
"MiddleName": "",
"FullName": ""
}
],
"Options": {
"ServerOptions": {
"ActiveCassLibrary": "",
"AddressLineSeparator": "<br>",
"AliasPreference": "",
"CassAvcEnable": "NO",
"CassCityAbbreviation": "NO",
"CassPreserveAlias": "NO",
"CassUrbFirst": "NO",
"CassZipFields": "NO",
"CertifiedCountryList": "",
"CombinedSearchMethods": "YES",
"CombinedVerifyMethods": "YES",
"ConfidenceThreshold": "90",
"ConformToReference": "NO",
"CountryFields": "Country",
"DefaultCountry": "",
"DuplicateHandlingMask": "",
"EnhancedCountryTool": "OFF",
"FieldNameWeight": "",
"FieldStatus": "False",
"ForceCountry": "",
"GeocodeCountryList": "",
"GeocodeMatchRules": "",
"IgnoreUnmatched": "NO",
"MaxResults": "",
"MatchScoreAbsoluteThreshold": "60",
"MatchScoreThresholdFactor": "95",
"MaximumGeoDistance": "-1",
"MinimumGeoAccuracyLevel": "0",
"MinimumMatchscore": "0",
"MinimumPostcode": "0",
"MinimumSimilarity": "70",
"MinimumVerificationLevel": "0",
"OutputAddressFormat": "NO",
"OutputCasing": "Title",
"OutputFields": "",
"OutputScript": "Latn",
"OutputSortType": "AVC",
"PreferPrimaryValidAlias": "NO",
"QueryClause": "<string>",
"QueryString": "",
"RangeDecompose": "Match",
"RangefieldPreference": "<string>",
"ReferenceDatasetCacheSize": "5",
"ReturnVerifiedFieldsOnly": "No",
"SerpWesternStyle": "NO",
"SimpleParse": "YES",
"StrictReferenceMatch": "NO",
"StrictRefMatchCountryList": "",
"SuppressAdditionFields": "",
"SuppressAddressFields": "",
"SuppressFields": "",
"SuppressUnmatched": "OFF",
"SuppressMatchFields": "",
"Table": "",
"TransliterationIgnoreFields": "ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC",
"ToolInfo": "NO",
"UseSymbolicTransliteration": "YES",
"VerifyCountryList": "",
"VerifyMatchRules": ""
},
"Version": false,
"Certify": false,
"Enhance": false,
"Deceased": false,
"Goneaways": false,
"Process": "Verify"
}
}
'import requests
url = "https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key="
payload = {
"Key": "AA11-AA11-AA11-AA11",
"GeoCode": False,
"Addresses": [
{
"Latitude": "",
"Longitude": "",
"Address": "",
"Address1": "",
"Address2": "",
"Address3": "",
"Address4": "",
"Address5": "",
"Address6": "",
"Address7": "",
"Address8": "",
"DeliveryAddress": "",
"DeliveryAddress1": "",
"DeliveryAddress2": "",
"DeliveryAddress3": "",
"DeliveryAddress4": "",
"DeliveryAddress5": "",
"DeliveryAddress6": "",
"DeliveryAddress7": "",
"DeliveryAddress8": "",
"Id": "",
"SuperAdministrativeArea": "",
"AdministrativeArea": "",
"SubAdministrativeArea": "",
"Locality": "",
"DependentLocality": "",
"DoubleDependentLocality": "",
"Thoroughfare": "",
"DependentThoroughfare": "",
"Building": "",
"Premise": "",
"SubBuilding": "",
"SubBuildingFloor": "",
"PostalCode": "",
"Organization": "",
"PostBox": "",
"Country": "",
"Contact": "",
"Function": "",
"Department": "",
"Forename": "",
"Surname": "",
"MiddleName": "",
"FullName": ""
}
],
"Options": {
"ServerOptions": {
"ActiveCassLibrary": "",
"AddressLineSeparator": "<br>",
"AliasPreference": "",
"CassAvcEnable": "NO",
"CassCityAbbreviation": "NO",
"CassPreserveAlias": "NO",
"CassUrbFirst": "NO",
"CassZipFields": "NO",
"CertifiedCountryList": "",
"CombinedSearchMethods": "YES",
"CombinedVerifyMethods": "YES",
"ConfidenceThreshold": "90",
"ConformToReference": "NO",
"CountryFields": "Country",
"DefaultCountry": "",
"DuplicateHandlingMask": "",
"EnhancedCountryTool": "OFF",
"FieldNameWeight": "",
"FieldStatus": "False",
"ForceCountry": "",
"GeocodeCountryList": "",
"GeocodeMatchRules": "",
"IgnoreUnmatched": "NO",
"MaxResults": "",
"MatchScoreAbsoluteThreshold": "60",
"MatchScoreThresholdFactor": "95",
"MaximumGeoDistance": "-1",
"MinimumGeoAccuracyLevel": "0",
"MinimumMatchscore": "0",
"MinimumPostcode": "0",
"MinimumSimilarity": "70",
"MinimumVerificationLevel": "0",
"OutputAddressFormat": "NO",
"OutputCasing": "Title",
"OutputFields": "",
"OutputScript": "Latn",
"OutputSortType": "AVC",
"PreferPrimaryValidAlias": "NO",
"QueryClause": "<string>",
"QueryString": "",
"RangeDecompose": "Match",
"RangefieldPreference": "<string>",
"ReferenceDatasetCacheSize": "5",
"ReturnVerifiedFieldsOnly": "No",
"SerpWesternStyle": "NO",
"SimpleParse": "YES",
"StrictReferenceMatch": "NO",
"StrictRefMatchCountryList": "",
"SuppressAdditionFields": "",
"SuppressAddressFields": "",
"SuppressFields": "",
"SuppressUnmatched": "OFF",
"SuppressMatchFields": "",
"Table": "",
"TransliterationIgnoreFields": "ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC",
"ToolInfo": "NO",
"UseSymbolicTransliteration": "YES",
"VerifyCountryList": "",
"VerifyMatchRules": ""
},
"Version": False,
"Certify": False,
"Enhance": False,
"Deceased": False,
"Goneaways": False,
"Process": "Verify"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Key: 'AA11-AA11-AA11-AA11',
GeoCode: false,
Addresses: [
{
Latitude: '',
Longitude: '',
Address: '',
Address1: '',
Address2: '',
Address3: '',
Address4: '',
Address5: '',
Address6: '',
Address7: '',
Address8: '',
DeliveryAddress: '',
DeliveryAddress1: '',
DeliveryAddress2: '',
DeliveryAddress3: '',
DeliveryAddress4: '',
DeliveryAddress5: '',
DeliveryAddress6: '',
DeliveryAddress7: '',
DeliveryAddress8: '',
Id: '',
SuperAdministrativeArea: '',
AdministrativeArea: '',
SubAdministrativeArea: '',
Locality: '',
DependentLocality: '',
DoubleDependentLocality: '',
Thoroughfare: '',
DependentThoroughfare: '',
Building: '',
Premise: '',
SubBuilding: '',
SubBuildingFloor: '',
PostalCode: '',
Organization: '',
PostBox: '',
Country: '',
Contact: '',
Function: '',
Department: '',
Forename: '',
Surname: '',
MiddleName: '',
FullName: ''
}
],
Options: {
ServerOptions: {
ActiveCassLibrary: '',
AddressLineSeparator: '<br>',
AliasPreference: '',
CassAvcEnable: 'NO',
CassCityAbbreviation: 'NO',
CassPreserveAlias: 'NO',
CassUrbFirst: 'NO',
CassZipFields: 'NO',
CertifiedCountryList: '',
CombinedSearchMethods: 'YES',
CombinedVerifyMethods: 'YES',
ConfidenceThreshold: '90',
ConformToReference: 'NO',
CountryFields: 'Country',
DefaultCountry: '',
DuplicateHandlingMask: '',
EnhancedCountryTool: 'OFF',
FieldNameWeight: '',
FieldStatus: 'False',
ForceCountry: '',
GeocodeCountryList: '',
GeocodeMatchRules: '',
IgnoreUnmatched: 'NO',
MaxResults: '',
MatchScoreAbsoluteThreshold: '60',
MatchScoreThresholdFactor: '95',
MaximumGeoDistance: '-1',
MinimumGeoAccuracyLevel: '0',
MinimumMatchscore: '0',
MinimumPostcode: '0',
MinimumSimilarity: '70',
MinimumVerificationLevel: '0',
OutputAddressFormat: 'NO',
OutputCasing: 'Title',
OutputFields: '',
OutputScript: 'Latn',
OutputSortType: 'AVC',
PreferPrimaryValidAlias: 'NO',
QueryClause: '<string>',
QueryString: '',
RangeDecompose: 'Match',
RangefieldPreference: '<string>',
ReferenceDatasetCacheSize: '5',
ReturnVerifiedFieldsOnly: 'No',
SerpWesternStyle: 'NO',
SimpleParse: 'YES',
StrictReferenceMatch: 'NO',
StrictRefMatchCountryList: '',
SuppressAdditionFields: '',
SuppressAddressFields: '',
SuppressFields: '',
SuppressUnmatched: 'OFF',
SuppressMatchFields: '',
Table: '',
TransliterationIgnoreFields: 'ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC',
ToolInfo: 'NO',
UseSymbolicTransliteration: 'YES',
VerifyCountryList: '',
VerifyMatchRules: ''
},
Version: false,
Certify: false,
Enhance: false,
Deceased: false,
Goneaways: false,
Process: 'Verify'
}
})
};
fetch('https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Key' => 'AA11-AA11-AA11-AA11',
'GeoCode' => false,
'Addresses' => [
[
'Latitude' => '',
'Longitude' => '',
'Address' => '',
'Address1' => '',
'Address2' => '',
'Address3' => '',
'Address4' => '',
'Address5' => '',
'Address6' => '',
'Address7' => '',
'Address8' => '',
'DeliveryAddress' => '',
'DeliveryAddress1' => '',
'DeliveryAddress2' => '',
'DeliveryAddress3' => '',
'DeliveryAddress4' => '',
'DeliveryAddress5' => '',
'DeliveryAddress6' => '',
'DeliveryAddress7' => '',
'DeliveryAddress8' => '',
'Id' => '',
'SuperAdministrativeArea' => '',
'AdministrativeArea' => '',
'SubAdministrativeArea' => '',
'Locality' => '',
'DependentLocality' => '',
'DoubleDependentLocality' => '',
'Thoroughfare' => '',
'DependentThoroughfare' => '',
'Building' => '',
'Premise' => '',
'SubBuilding' => '',
'SubBuildingFloor' => '',
'PostalCode' => '',
'Organization' => '',
'PostBox' => '',
'Country' => '',
'Contact' => '',
'Function' => '',
'Department' => '',
'Forename' => '',
'Surname' => '',
'MiddleName' => '',
'FullName' => ''
]
],
'Options' => [
'ServerOptions' => [
'ActiveCassLibrary' => '',
'AddressLineSeparator' => '<br>',
'AliasPreference' => '',
'CassAvcEnable' => 'NO',
'CassCityAbbreviation' => 'NO',
'CassPreserveAlias' => 'NO',
'CassUrbFirst' => 'NO',
'CassZipFields' => 'NO',
'CertifiedCountryList' => '',
'CombinedSearchMethods' => 'YES',
'CombinedVerifyMethods' => 'YES',
'ConfidenceThreshold' => '90',
'ConformToReference' => 'NO',
'CountryFields' => 'Country',
'DefaultCountry' => '',
'DuplicateHandlingMask' => '',
'EnhancedCountryTool' => 'OFF',
'FieldNameWeight' => '',
'FieldStatus' => 'False',
'ForceCountry' => '',
'GeocodeCountryList' => '',
'GeocodeMatchRules' => '',
'IgnoreUnmatched' => 'NO',
'MaxResults' => '',
'MatchScoreAbsoluteThreshold' => '60',
'MatchScoreThresholdFactor' => '95',
'MaximumGeoDistance' => '-1',
'MinimumGeoAccuracyLevel' => '0',
'MinimumMatchscore' => '0',
'MinimumPostcode' => '0',
'MinimumSimilarity' => '70',
'MinimumVerificationLevel' => '0',
'OutputAddressFormat' => 'NO',
'OutputCasing' => 'Title',
'OutputFields' => '',
'OutputScript' => 'Latn',
'OutputSortType' => 'AVC',
'PreferPrimaryValidAlias' => 'NO',
'QueryClause' => '<string>',
'QueryString' => '',
'RangeDecompose' => 'Match',
'RangefieldPreference' => '<string>',
'ReferenceDatasetCacheSize' => '5',
'ReturnVerifiedFieldsOnly' => 'No',
'SerpWesternStyle' => 'NO',
'SimpleParse' => 'YES',
'StrictReferenceMatch' => 'NO',
'StrictRefMatchCountryList' => '',
'SuppressAdditionFields' => '',
'SuppressAddressFields' => '',
'SuppressFields' => '',
'SuppressUnmatched' => 'OFF',
'SuppressMatchFields' => '',
'Table' => '',
'TransliterationIgnoreFields' => 'ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC',
'ToolInfo' => 'NO',
'UseSymbolicTransliteration' => 'YES',
'VerifyCountryList' => '',
'VerifyMatchRules' => ''
],
'Version' => false,
'Certify' => false,
'Enhance' => false,
'Deceased' => false,
'Goneaways' => false,
'Process' => 'Verify'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key="
payload := strings.NewReader("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"GeoCode\": false,\n \"Addresses\": [\n {\n \"Latitude\": \"\",\n \"Longitude\": \"\",\n \"Address\": \"\",\n \"Address1\": \"\",\n \"Address2\": \"\",\n \"Address3\": \"\",\n \"Address4\": \"\",\n \"Address5\": \"\",\n \"Address6\": \"\",\n \"Address7\": \"\",\n \"Address8\": \"\",\n \"DeliveryAddress\": \"\",\n \"DeliveryAddress1\": \"\",\n \"DeliveryAddress2\": \"\",\n \"DeliveryAddress3\": \"\",\n \"DeliveryAddress4\": \"\",\n \"DeliveryAddress5\": \"\",\n \"DeliveryAddress6\": \"\",\n \"DeliveryAddress7\": \"\",\n \"DeliveryAddress8\": \"\",\n \"Id\": \"\",\n \"SuperAdministrativeArea\": \"\",\n \"AdministrativeArea\": \"\",\n \"SubAdministrativeArea\": \"\",\n \"Locality\": \"\",\n \"DependentLocality\": \"\",\n \"DoubleDependentLocality\": \"\",\n \"Thoroughfare\": \"\",\n \"DependentThoroughfare\": \"\",\n \"Building\": \"\",\n \"Premise\": \"\",\n \"SubBuilding\": \"\",\n \"SubBuildingFloor\": \"\",\n \"PostalCode\": \"\",\n \"Organization\": \"\",\n \"PostBox\": \"\",\n \"Country\": \"\",\n \"Contact\": \"\",\n \"Function\": \"\",\n \"Department\": \"\",\n \"Forename\": \"\",\n \"Surname\": \"\",\n \"MiddleName\": \"\",\n \"FullName\": \"\"\n }\n ],\n \"Options\": {\n \"ServerOptions\": {\n \"ActiveCassLibrary\": \"\",\n \"AddressLineSeparator\": \"<br>\",\n \"AliasPreference\": \"\",\n \"CassAvcEnable\": \"NO\",\n \"CassCityAbbreviation\": \"NO\",\n \"CassPreserveAlias\": \"NO\",\n \"CassUrbFirst\": \"NO\",\n \"CassZipFields\": \"NO\",\n \"CertifiedCountryList\": \"\",\n \"CombinedSearchMethods\": \"YES\",\n \"CombinedVerifyMethods\": \"YES\",\n \"ConfidenceThreshold\": \"90\",\n \"ConformToReference\": \"NO\",\n \"CountryFields\": \"Country\",\n \"DefaultCountry\": \"\",\n \"DuplicateHandlingMask\": \"\",\n \"EnhancedCountryTool\": \"OFF\",\n \"FieldNameWeight\": \"\",\n \"FieldStatus\": \"False\",\n \"ForceCountry\": \"\",\n \"GeocodeCountryList\": \"\",\n \"GeocodeMatchRules\": \"\",\n \"IgnoreUnmatched\": \"NO\",\n \"MaxResults\": \"\",\n \"MatchScoreAbsoluteThreshold\": \"60\",\n \"MatchScoreThresholdFactor\": \"95\",\n \"MaximumGeoDistance\": \"-1\",\n \"MinimumGeoAccuracyLevel\": \"0\",\n \"MinimumMatchscore\": \"0\",\n \"MinimumPostcode\": \"0\",\n \"MinimumSimilarity\": \"70\",\n \"MinimumVerificationLevel\": \"0\",\n \"OutputAddressFormat\": \"NO\",\n \"OutputCasing\": \"Title\",\n \"OutputFields\": \"\",\n \"OutputScript\": \"Latn\",\n \"OutputSortType\": \"AVC\",\n \"PreferPrimaryValidAlias\": \"NO\",\n \"QueryClause\": \"<string>\",\n \"QueryString\": \"\",\n \"RangeDecompose\": \"Match\",\n \"RangefieldPreference\": \"<string>\",\n \"ReferenceDatasetCacheSize\": \"5\",\n \"ReturnVerifiedFieldsOnly\": \"No\",\n \"SerpWesternStyle\": \"NO\",\n \"SimpleParse\": \"YES\",\n \"StrictReferenceMatch\": \"NO\",\n \"StrictRefMatchCountryList\": \"\",\n \"SuppressAdditionFields\": \"\",\n \"SuppressAddressFields\": \"\",\n \"SuppressFields\": \"\",\n \"SuppressUnmatched\": \"OFF\",\n \"SuppressMatchFields\": \"\",\n \"Table\": \"\",\n \"TransliterationIgnoreFields\": \"ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC\",\n \"ToolInfo\": \"NO\",\n \"UseSymbolicTransliteration\": \"YES\",\n \"VerifyCountryList\": \"\",\n \"VerifyMatchRules\": \"\"\n },\n \"Version\": false,\n \"Certify\": false,\n \"Enhance\": false,\n \"Deceased\": false,\n \"Goneaways\": false,\n \"Process\": \"Verify\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=")
.header("Content-Type", "application/json")
.body("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"GeoCode\": false,\n \"Addresses\": [\n {\n \"Latitude\": \"\",\n \"Longitude\": \"\",\n \"Address\": \"\",\n \"Address1\": \"\",\n \"Address2\": \"\",\n \"Address3\": \"\",\n \"Address4\": \"\",\n \"Address5\": \"\",\n \"Address6\": \"\",\n \"Address7\": \"\",\n \"Address8\": \"\",\n \"DeliveryAddress\": \"\",\n \"DeliveryAddress1\": \"\",\n \"DeliveryAddress2\": \"\",\n \"DeliveryAddress3\": \"\",\n \"DeliveryAddress4\": \"\",\n \"DeliveryAddress5\": \"\",\n \"DeliveryAddress6\": \"\",\n \"DeliveryAddress7\": \"\",\n \"DeliveryAddress8\": \"\",\n \"Id\": \"\",\n \"SuperAdministrativeArea\": \"\",\n \"AdministrativeArea\": \"\",\n \"SubAdministrativeArea\": \"\",\n \"Locality\": \"\",\n \"DependentLocality\": \"\",\n \"DoubleDependentLocality\": \"\",\n \"Thoroughfare\": \"\",\n \"DependentThoroughfare\": \"\",\n \"Building\": \"\",\n \"Premise\": \"\",\n \"SubBuilding\": \"\",\n \"SubBuildingFloor\": \"\",\n \"PostalCode\": \"\",\n \"Organization\": \"\",\n \"PostBox\": \"\",\n \"Country\": \"\",\n \"Contact\": \"\",\n \"Function\": \"\",\n \"Department\": \"\",\n \"Forename\": \"\",\n \"Surname\": \"\",\n \"MiddleName\": \"\",\n \"FullName\": \"\"\n }\n ],\n \"Options\": {\n \"ServerOptions\": {\n \"ActiveCassLibrary\": \"\",\n \"AddressLineSeparator\": \"<br>\",\n \"AliasPreference\": \"\",\n \"CassAvcEnable\": \"NO\",\n \"CassCityAbbreviation\": \"NO\",\n \"CassPreserveAlias\": \"NO\",\n \"CassUrbFirst\": \"NO\",\n \"CassZipFields\": \"NO\",\n \"CertifiedCountryList\": \"\",\n \"CombinedSearchMethods\": \"YES\",\n \"CombinedVerifyMethods\": \"YES\",\n \"ConfidenceThreshold\": \"90\",\n \"ConformToReference\": \"NO\",\n \"CountryFields\": \"Country\",\n \"DefaultCountry\": \"\",\n \"DuplicateHandlingMask\": \"\",\n \"EnhancedCountryTool\": \"OFF\",\n \"FieldNameWeight\": \"\",\n \"FieldStatus\": \"False\",\n \"ForceCountry\": \"\",\n \"GeocodeCountryList\": \"\",\n \"GeocodeMatchRules\": \"\",\n \"IgnoreUnmatched\": \"NO\",\n \"MaxResults\": \"\",\n \"MatchScoreAbsoluteThreshold\": \"60\",\n \"MatchScoreThresholdFactor\": \"95\",\n \"MaximumGeoDistance\": \"-1\",\n \"MinimumGeoAccuracyLevel\": \"0\",\n \"MinimumMatchscore\": \"0\",\n \"MinimumPostcode\": \"0\",\n \"MinimumSimilarity\": \"70\",\n \"MinimumVerificationLevel\": \"0\",\n \"OutputAddressFormat\": \"NO\",\n \"OutputCasing\": \"Title\",\n \"OutputFields\": \"\",\n \"OutputScript\": \"Latn\",\n \"OutputSortType\": \"AVC\",\n \"PreferPrimaryValidAlias\": \"NO\",\n \"QueryClause\": \"<string>\",\n \"QueryString\": \"\",\n \"RangeDecompose\": \"Match\",\n \"RangefieldPreference\": \"<string>\",\n \"ReferenceDatasetCacheSize\": \"5\",\n \"ReturnVerifiedFieldsOnly\": \"No\",\n \"SerpWesternStyle\": \"NO\",\n \"SimpleParse\": \"YES\",\n \"StrictReferenceMatch\": \"NO\",\n \"StrictRefMatchCountryList\": \"\",\n \"SuppressAdditionFields\": \"\",\n \"SuppressAddressFields\": \"\",\n \"SuppressFields\": \"\",\n \"SuppressUnmatched\": \"OFF\",\n \"SuppressMatchFields\": \"\",\n \"Table\": \"\",\n \"TransliterationIgnoreFields\": \"ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC\",\n \"ToolInfo\": \"NO\",\n \"UseSymbolicTransliteration\": \"YES\",\n \"VerifyCountryList\": \"\",\n \"VerifyMatchRules\": \"\"\n },\n \"Version\": false,\n \"Certify\": false,\n \"Enhance\": false,\n \"Deceased\": false,\n \"Goneaways\": false,\n \"Process\": \"Verify\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"GeoCode\": false,\n \"Addresses\": [\n {\n \"Latitude\": \"\",\n \"Longitude\": \"\",\n \"Address\": \"\",\n \"Address1\": \"\",\n \"Address2\": \"\",\n \"Address3\": \"\",\n \"Address4\": \"\",\n \"Address5\": \"\",\n \"Address6\": \"\",\n \"Address7\": \"\",\n \"Address8\": \"\",\n \"DeliveryAddress\": \"\",\n \"DeliveryAddress1\": \"\",\n \"DeliveryAddress2\": \"\",\n \"DeliveryAddress3\": \"\",\n \"DeliveryAddress4\": \"\",\n \"DeliveryAddress5\": \"\",\n \"DeliveryAddress6\": \"\",\n \"DeliveryAddress7\": \"\",\n \"DeliveryAddress8\": \"\",\n \"Id\": \"\",\n \"SuperAdministrativeArea\": \"\",\n \"AdministrativeArea\": \"\",\n \"SubAdministrativeArea\": \"\",\n \"Locality\": \"\",\n \"DependentLocality\": \"\",\n \"DoubleDependentLocality\": \"\",\n \"Thoroughfare\": \"\",\n \"DependentThoroughfare\": \"\",\n \"Building\": \"\",\n \"Premise\": \"\",\n \"SubBuilding\": \"\",\n \"SubBuildingFloor\": \"\",\n \"PostalCode\": \"\",\n \"Organization\": \"\",\n \"PostBox\": \"\",\n \"Country\": \"\",\n \"Contact\": \"\",\n \"Function\": \"\",\n \"Department\": \"\",\n \"Forename\": \"\",\n \"Surname\": \"\",\n \"MiddleName\": \"\",\n \"FullName\": \"\"\n }\n ],\n \"Options\": {\n \"ServerOptions\": {\n \"ActiveCassLibrary\": \"\",\n \"AddressLineSeparator\": \"<br>\",\n \"AliasPreference\": \"\",\n \"CassAvcEnable\": \"NO\",\n \"CassCityAbbreviation\": \"NO\",\n \"CassPreserveAlias\": \"NO\",\n \"CassUrbFirst\": \"NO\",\n \"CassZipFields\": \"NO\",\n \"CertifiedCountryList\": \"\",\n \"CombinedSearchMethods\": \"YES\",\n \"CombinedVerifyMethods\": \"YES\",\n \"ConfidenceThreshold\": \"90\",\n \"ConformToReference\": \"NO\",\n \"CountryFields\": \"Country\",\n \"DefaultCountry\": \"\",\n \"DuplicateHandlingMask\": \"\",\n \"EnhancedCountryTool\": \"OFF\",\n \"FieldNameWeight\": \"\",\n \"FieldStatus\": \"False\",\n \"ForceCountry\": \"\",\n \"GeocodeCountryList\": \"\",\n \"GeocodeMatchRules\": \"\",\n \"IgnoreUnmatched\": \"NO\",\n \"MaxResults\": \"\",\n \"MatchScoreAbsoluteThreshold\": \"60\",\n \"MatchScoreThresholdFactor\": \"95\",\n \"MaximumGeoDistance\": \"-1\",\n \"MinimumGeoAccuracyLevel\": \"0\",\n \"MinimumMatchscore\": \"0\",\n \"MinimumPostcode\": \"0\",\n \"MinimumSimilarity\": \"70\",\n \"MinimumVerificationLevel\": \"0\",\n \"OutputAddressFormat\": \"NO\",\n \"OutputCasing\": \"Title\",\n \"OutputFields\": \"\",\n \"OutputScript\": \"Latn\",\n \"OutputSortType\": \"AVC\",\n \"PreferPrimaryValidAlias\": \"NO\",\n \"QueryClause\": \"<string>\",\n \"QueryString\": \"\",\n \"RangeDecompose\": \"Match\",\n \"RangefieldPreference\": \"<string>\",\n \"ReferenceDatasetCacheSize\": \"5\",\n \"ReturnVerifiedFieldsOnly\": \"No\",\n \"SerpWesternStyle\": \"NO\",\n \"SimpleParse\": \"YES\",\n \"StrictReferenceMatch\": \"NO\",\n \"StrictRefMatchCountryList\": \"\",\n \"SuppressAdditionFields\": \"\",\n \"SuppressAddressFields\": \"\",\n \"SuppressFields\": \"\",\n \"SuppressUnmatched\": \"OFF\",\n \"SuppressMatchFields\": \"\",\n \"Table\": \"\",\n \"TransliterationIgnoreFields\": \"ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC\",\n \"ToolInfo\": \"NO\",\n \"UseSymbolicTransliteration\": \"YES\",\n \"VerifyCountryList\": \"\",\n \"VerifyMatchRules\": \"\"\n },\n \"Version\": false,\n \"Certify\": false,\n \"Enhance\": false,\n \"Deceased\": false,\n \"Goneaways\": false,\n \"Process\": \"Verify\"\n }\n}"
response = http.request(request)
puts response.read_bodyInternational Batch Cleanse
Validate global addresses individually or in batches up to 100 records. Returns verified addresses with standardization and quality indicators.
curl --request POST \
--url 'https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=' \
--header 'Content-Type: application/json' \
--data '
{
"Key": "AA11-AA11-AA11-AA11",
"GeoCode": false,
"Addresses": [
{
"Latitude": "",
"Longitude": "",
"Address": "",
"Address1": "",
"Address2": "",
"Address3": "",
"Address4": "",
"Address5": "",
"Address6": "",
"Address7": "",
"Address8": "",
"DeliveryAddress": "",
"DeliveryAddress1": "",
"DeliveryAddress2": "",
"DeliveryAddress3": "",
"DeliveryAddress4": "",
"DeliveryAddress5": "",
"DeliveryAddress6": "",
"DeliveryAddress7": "",
"DeliveryAddress8": "",
"Id": "",
"SuperAdministrativeArea": "",
"AdministrativeArea": "",
"SubAdministrativeArea": "",
"Locality": "",
"DependentLocality": "",
"DoubleDependentLocality": "",
"Thoroughfare": "",
"DependentThoroughfare": "",
"Building": "",
"Premise": "",
"SubBuilding": "",
"SubBuildingFloor": "",
"PostalCode": "",
"Organization": "",
"PostBox": "",
"Country": "",
"Contact": "",
"Function": "",
"Department": "",
"Forename": "",
"Surname": "",
"MiddleName": "",
"FullName": ""
}
],
"Options": {
"ServerOptions": {
"ActiveCassLibrary": "",
"AddressLineSeparator": "<br>",
"AliasPreference": "",
"CassAvcEnable": "NO",
"CassCityAbbreviation": "NO",
"CassPreserveAlias": "NO",
"CassUrbFirst": "NO",
"CassZipFields": "NO",
"CertifiedCountryList": "",
"CombinedSearchMethods": "YES",
"CombinedVerifyMethods": "YES",
"ConfidenceThreshold": "90",
"ConformToReference": "NO",
"CountryFields": "Country",
"DefaultCountry": "",
"DuplicateHandlingMask": "",
"EnhancedCountryTool": "OFF",
"FieldNameWeight": "",
"FieldStatus": "False",
"ForceCountry": "",
"GeocodeCountryList": "",
"GeocodeMatchRules": "",
"IgnoreUnmatched": "NO",
"MaxResults": "",
"MatchScoreAbsoluteThreshold": "60",
"MatchScoreThresholdFactor": "95",
"MaximumGeoDistance": "-1",
"MinimumGeoAccuracyLevel": "0",
"MinimumMatchscore": "0",
"MinimumPostcode": "0",
"MinimumSimilarity": "70",
"MinimumVerificationLevel": "0",
"OutputAddressFormat": "NO",
"OutputCasing": "Title",
"OutputFields": "",
"OutputScript": "Latn",
"OutputSortType": "AVC",
"PreferPrimaryValidAlias": "NO",
"QueryClause": "<string>",
"QueryString": "",
"RangeDecompose": "Match",
"RangefieldPreference": "<string>",
"ReferenceDatasetCacheSize": "5",
"ReturnVerifiedFieldsOnly": "No",
"SerpWesternStyle": "NO",
"SimpleParse": "YES",
"StrictReferenceMatch": "NO",
"StrictRefMatchCountryList": "",
"SuppressAdditionFields": "",
"SuppressAddressFields": "",
"SuppressFields": "",
"SuppressUnmatched": "OFF",
"SuppressMatchFields": "",
"Table": "",
"TransliterationIgnoreFields": "ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC",
"ToolInfo": "NO",
"UseSymbolicTransliteration": "YES",
"VerifyCountryList": "",
"VerifyMatchRules": ""
},
"Version": false,
"Certify": false,
"Enhance": false,
"Deceased": false,
"Goneaways": false,
"Process": "Verify"
}
}
'import requests
url = "https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key="
payload = {
"Key": "AA11-AA11-AA11-AA11",
"GeoCode": False,
"Addresses": [
{
"Latitude": "",
"Longitude": "",
"Address": "",
"Address1": "",
"Address2": "",
"Address3": "",
"Address4": "",
"Address5": "",
"Address6": "",
"Address7": "",
"Address8": "",
"DeliveryAddress": "",
"DeliveryAddress1": "",
"DeliveryAddress2": "",
"DeliveryAddress3": "",
"DeliveryAddress4": "",
"DeliveryAddress5": "",
"DeliveryAddress6": "",
"DeliveryAddress7": "",
"DeliveryAddress8": "",
"Id": "",
"SuperAdministrativeArea": "",
"AdministrativeArea": "",
"SubAdministrativeArea": "",
"Locality": "",
"DependentLocality": "",
"DoubleDependentLocality": "",
"Thoroughfare": "",
"DependentThoroughfare": "",
"Building": "",
"Premise": "",
"SubBuilding": "",
"SubBuildingFloor": "",
"PostalCode": "",
"Organization": "",
"PostBox": "",
"Country": "",
"Contact": "",
"Function": "",
"Department": "",
"Forename": "",
"Surname": "",
"MiddleName": "",
"FullName": ""
}
],
"Options": {
"ServerOptions": {
"ActiveCassLibrary": "",
"AddressLineSeparator": "<br>",
"AliasPreference": "",
"CassAvcEnable": "NO",
"CassCityAbbreviation": "NO",
"CassPreserveAlias": "NO",
"CassUrbFirst": "NO",
"CassZipFields": "NO",
"CertifiedCountryList": "",
"CombinedSearchMethods": "YES",
"CombinedVerifyMethods": "YES",
"ConfidenceThreshold": "90",
"ConformToReference": "NO",
"CountryFields": "Country",
"DefaultCountry": "",
"DuplicateHandlingMask": "",
"EnhancedCountryTool": "OFF",
"FieldNameWeight": "",
"FieldStatus": "False",
"ForceCountry": "",
"GeocodeCountryList": "",
"GeocodeMatchRules": "",
"IgnoreUnmatched": "NO",
"MaxResults": "",
"MatchScoreAbsoluteThreshold": "60",
"MatchScoreThresholdFactor": "95",
"MaximumGeoDistance": "-1",
"MinimumGeoAccuracyLevel": "0",
"MinimumMatchscore": "0",
"MinimumPostcode": "0",
"MinimumSimilarity": "70",
"MinimumVerificationLevel": "0",
"OutputAddressFormat": "NO",
"OutputCasing": "Title",
"OutputFields": "",
"OutputScript": "Latn",
"OutputSortType": "AVC",
"PreferPrimaryValidAlias": "NO",
"QueryClause": "<string>",
"QueryString": "",
"RangeDecompose": "Match",
"RangefieldPreference": "<string>",
"ReferenceDatasetCacheSize": "5",
"ReturnVerifiedFieldsOnly": "No",
"SerpWesternStyle": "NO",
"SimpleParse": "YES",
"StrictReferenceMatch": "NO",
"StrictRefMatchCountryList": "",
"SuppressAdditionFields": "",
"SuppressAddressFields": "",
"SuppressFields": "",
"SuppressUnmatched": "OFF",
"SuppressMatchFields": "",
"Table": "",
"TransliterationIgnoreFields": "ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC",
"ToolInfo": "NO",
"UseSymbolicTransliteration": "YES",
"VerifyCountryList": "",
"VerifyMatchRules": ""
},
"Version": False,
"Certify": False,
"Enhance": False,
"Deceased": False,
"Goneaways": False,
"Process": "Verify"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Key: 'AA11-AA11-AA11-AA11',
GeoCode: false,
Addresses: [
{
Latitude: '',
Longitude: '',
Address: '',
Address1: '',
Address2: '',
Address3: '',
Address4: '',
Address5: '',
Address6: '',
Address7: '',
Address8: '',
DeliveryAddress: '',
DeliveryAddress1: '',
DeliveryAddress2: '',
DeliveryAddress3: '',
DeliveryAddress4: '',
DeliveryAddress5: '',
DeliveryAddress6: '',
DeliveryAddress7: '',
DeliveryAddress8: '',
Id: '',
SuperAdministrativeArea: '',
AdministrativeArea: '',
SubAdministrativeArea: '',
Locality: '',
DependentLocality: '',
DoubleDependentLocality: '',
Thoroughfare: '',
DependentThoroughfare: '',
Building: '',
Premise: '',
SubBuilding: '',
SubBuildingFloor: '',
PostalCode: '',
Organization: '',
PostBox: '',
Country: '',
Contact: '',
Function: '',
Department: '',
Forename: '',
Surname: '',
MiddleName: '',
FullName: ''
}
],
Options: {
ServerOptions: {
ActiveCassLibrary: '',
AddressLineSeparator: '<br>',
AliasPreference: '',
CassAvcEnable: 'NO',
CassCityAbbreviation: 'NO',
CassPreserveAlias: 'NO',
CassUrbFirst: 'NO',
CassZipFields: 'NO',
CertifiedCountryList: '',
CombinedSearchMethods: 'YES',
CombinedVerifyMethods: 'YES',
ConfidenceThreshold: '90',
ConformToReference: 'NO',
CountryFields: 'Country',
DefaultCountry: '',
DuplicateHandlingMask: '',
EnhancedCountryTool: 'OFF',
FieldNameWeight: '',
FieldStatus: 'False',
ForceCountry: '',
GeocodeCountryList: '',
GeocodeMatchRules: '',
IgnoreUnmatched: 'NO',
MaxResults: '',
MatchScoreAbsoluteThreshold: '60',
MatchScoreThresholdFactor: '95',
MaximumGeoDistance: '-1',
MinimumGeoAccuracyLevel: '0',
MinimumMatchscore: '0',
MinimumPostcode: '0',
MinimumSimilarity: '70',
MinimumVerificationLevel: '0',
OutputAddressFormat: 'NO',
OutputCasing: 'Title',
OutputFields: '',
OutputScript: 'Latn',
OutputSortType: 'AVC',
PreferPrimaryValidAlias: 'NO',
QueryClause: '<string>',
QueryString: '',
RangeDecompose: 'Match',
RangefieldPreference: '<string>',
ReferenceDatasetCacheSize: '5',
ReturnVerifiedFieldsOnly: 'No',
SerpWesternStyle: 'NO',
SimpleParse: 'YES',
StrictReferenceMatch: 'NO',
StrictRefMatchCountryList: '',
SuppressAdditionFields: '',
SuppressAddressFields: '',
SuppressFields: '',
SuppressUnmatched: 'OFF',
SuppressMatchFields: '',
Table: '',
TransliterationIgnoreFields: 'ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC',
ToolInfo: 'NO',
UseSymbolicTransliteration: 'YES',
VerifyCountryList: '',
VerifyMatchRules: ''
},
Version: false,
Certify: false,
Enhance: false,
Deceased: false,
Goneaways: false,
Process: 'Verify'
}
})
};
fetch('https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Key' => 'AA11-AA11-AA11-AA11',
'GeoCode' => false,
'Addresses' => [
[
'Latitude' => '',
'Longitude' => '',
'Address' => '',
'Address1' => '',
'Address2' => '',
'Address3' => '',
'Address4' => '',
'Address5' => '',
'Address6' => '',
'Address7' => '',
'Address8' => '',
'DeliveryAddress' => '',
'DeliveryAddress1' => '',
'DeliveryAddress2' => '',
'DeliveryAddress3' => '',
'DeliveryAddress4' => '',
'DeliveryAddress5' => '',
'DeliveryAddress6' => '',
'DeliveryAddress7' => '',
'DeliveryAddress8' => '',
'Id' => '',
'SuperAdministrativeArea' => '',
'AdministrativeArea' => '',
'SubAdministrativeArea' => '',
'Locality' => '',
'DependentLocality' => '',
'DoubleDependentLocality' => '',
'Thoroughfare' => '',
'DependentThoroughfare' => '',
'Building' => '',
'Premise' => '',
'SubBuilding' => '',
'SubBuildingFloor' => '',
'PostalCode' => '',
'Organization' => '',
'PostBox' => '',
'Country' => '',
'Contact' => '',
'Function' => '',
'Department' => '',
'Forename' => '',
'Surname' => '',
'MiddleName' => '',
'FullName' => ''
]
],
'Options' => [
'ServerOptions' => [
'ActiveCassLibrary' => '',
'AddressLineSeparator' => '<br>',
'AliasPreference' => '',
'CassAvcEnable' => 'NO',
'CassCityAbbreviation' => 'NO',
'CassPreserveAlias' => 'NO',
'CassUrbFirst' => 'NO',
'CassZipFields' => 'NO',
'CertifiedCountryList' => '',
'CombinedSearchMethods' => 'YES',
'CombinedVerifyMethods' => 'YES',
'ConfidenceThreshold' => '90',
'ConformToReference' => 'NO',
'CountryFields' => 'Country',
'DefaultCountry' => '',
'DuplicateHandlingMask' => '',
'EnhancedCountryTool' => 'OFF',
'FieldNameWeight' => '',
'FieldStatus' => 'False',
'ForceCountry' => '',
'GeocodeCountryList' => '',
'GeocodeMatchRules' => '',
'IgnoreUnmatched' => 'NO',
'MaxResults' => '',
'MatchScoreAbsoluteThreshold' => '60',
'MatchScoreThresholdFactor' => '95',
'MaximumGeoDistance' => '-1',
'MinimumGeoAccuracyLevel' => '0',
'MinimumMatchscore' => '0',
'MinimumPostcode' => '0',
'MinimumSimilarity' => '70',
'MinimumVerificationLevel' => '0',
'OutputAddressFormat' => 'NO',
'OutputCasing' => 'Title',
'OutputFields' => '',
'OutputScript' => 'Latn',
'OutputSortType' => 'AVC',
'PreferPrimaryValidAlias' => 'NO',
'QueryClause' => '<string>',
'QueryString' => '',
'RangeDecompose' => 'Match',
'RangefieldPreference' => '<string>',
'ReferenceDatasetCacheSize' => '5',
'ReturnVerifiedFieldsOnly' => 'No',
'SerpWesternStyle' => 'NO',
'SimpleParse' => 'YES',
'StrictReferenceMatch' => 'NO',
'StrictRefMatchCountryList' => '',
'SuppressAdditionFields' => '',
'SuppressAddressFields' => '',
'SuppressFields' => '',
'SuppressUnmatched' => 'OFF',
'SuppressMatchFields' => '',
'Table' => '',
'TransliterationIgnoreFields' => 'ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC',
'ToolInfo' => 'NO',
'UseSymbolicTransliteration' => 'YES',
'VerifyCountryList' => '',
'VerifyMatchRules' => ''
],
'Version' => false,
'Certify' => false,
'Enhance' => false,
'Deceased' => false,
'Goneaways' => false,
'Process' => 'Verify'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key="
payload := strings.NewReader("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"GeoCode\": false,\n \"Addresses\": [\n {\n \"Latitude\": \"\",\n \"Longitude\": \"\",\n \"Address\": \"\",\n \"Address1\": \"\",\n \"Address2\": \"\",\n \"Address3\": \"\",\n \"Address4\": \"\",\n \"Address5\": \"\",\n \"Address6\": \"\",\n \"Address7\": \"\",\n \"Address8\": \"\",\n \"DeliveryAddress\": \"\",\n \"DeliveryAddress1\": \"\",\n \"DeliveryAddress2\": \"\",\n \"DeliveryAddress3\": \"\",\n \"DeliveryAddress4\": \"\",\n \"DeliveryAddress5\": \"\",\n \"DeliveryAddress6\": \"\",\n \"DeliveryAddress7\": \"\",\n \"DeliveryAddress8\": \"\",\n \"Id\": \"\",\n \"SuperAdministrativeArea\": \"\",\n \"AdministrativeArea\": \"\",\n \"SubAdministrativeArea\": \"\",\n \"Locality\": \"\",\n \"DependentLocality\": \"\",\n \"DoubleDependentLocality\": \"\",\n \"Thoroughfare\": \"\",\n \"DependentThoroughfare\": \"\",\n \"Building\": \"\",\n \"Premise\": \"\",\n \"SubBuilding\": \"\",\n \"SubBuildingFloor\": \"\",\n \"PostalCode\": \"\",\n \"Organization\": \"\",\n \"PostBox\": \"\",\n \"Country\": \"\",\n \"Contact\": \"\",\n \"Function\": \"\",\n \"Department\": \"\",\n \"Forename\": \"\",\n \"Surname\": \"\",\n \"MiddleName\": \"\",\n \"FullName\": \"\"\n }\n ],\n \"Options\": {\n \"ServerOptions\": {\n \"ActiveCassLibrary\": \"\",\n \"AddressLineSeparator\": \"<br>\",\n \"AliasPreference\": \"\",\n \"CassAvcEnable\": \"NO\",\n \"CassCityAbbreviation\": \"NO\",\n \"CassPreserveAlias\": \"NO\",\n \"CassUrbFirst\": \"NO\",\n \"CassZipFields\": \"NO\",\n \"CertifiedCountryList\": \"\",\n \"CombinedSearchMethods\": \"YES\",\n \"CombinedVerifyMethods\": \"YES\",\n \"ConfidenceThreshold\": \"90\",\n \"ConformToReference\": \"NO\",\n \"CountryFields\": \"Country\",\n \"DefaultCountry\": \"\",\n \"DuplicateHandlingMask\": \"\",\n \"EnhancedCountryTool\": \"OFF\",\n \"FieldNameWeight\": \"\",\n \"FieldStatus\": \"False\",\n \"ForceCountry\": \"\",\n \"GeocodeCountryList\": \"\",\n \"GeocodeMatchRules\": \"\",\n \"IgnoreUnmatched\": \"NO\",\n \"MaxResults\": \"\",\n \"MatchScoreAbsoluteThreshold\": \"60\",\n \"MatchScoreThresholdFactor\": \"95\",\n \"MaximumGeoDistance\": \"-1\",\n \"MinimumGeoAccuracyLevel\": \"0\",\n \"MinimumMatchscore\": \"0\",\n \"MinimumPostcode\": \"0\",\n \"MinimumSimilarity\": \"70\",\n \"MinimumVerificationLevel\": \"0\",\n \"OutputAddressFormat\": \"NO\",\n \"OutputCasing\": \"Title\",\n \"OutputFields\": \"\",\n \"OutputScript\": \"Latn\",\n \"OutputSortType\": \"AVC\",\n \"PreferPrimaryValidAlias\": \"NO\",\n \"QueryClause\": \"<string>\",\n \"QueryString\": \"\",\n \"RangeDecompose\": \"Match\",\n \"RangefieldPreference\": \"<string>\",\n \"ReferenceDatasetCacheSize\": \"5\",\n \"ReturnVerifiedFieldsOnly\": \"No\",\n \"SerpWesternStyle\": \"NO\",\n \"SimpleParse\": \"YES\",\n \"StrictReferenceMatch\": \"NO\",\n \"StrictRefMatchCountryList\": \"\",\n \"SuppressAdditionFields\": \"\",\n \"SuppressAddressFields\": \"\",\n \"SuppressFields\": \"\",\n \"SuppressUnmatched\": \"OFF\",\n \"SuppressMatchFields\": \"\",\n \"Table\": \"\",\n \"TransliterationIgnoreFields\": \"ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC\",\n \"ToolInfo\": \"NO\",\n \"UseSymbolicTransliteration\": \"YES\",\n \"VerifyCountryList\": \"\",\n \"VerifyMatchRules\": \"\"\n },\n \"Version\": false,\n \"Certify\": false,\n \"Enhance\": false,\n \"Deceased\": false,\n \"Goneaways\": false,\n \"Process\": \"Verify\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=")
.header("Content-Type", "application/json")
.body("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"GeoCode\": false,\n \"Addresses\": [\n {\n \"Latitude\": \"\",\n \"Longitude\": \"\",\n \"Address\": \"\",\n \"Address1\": \"\",\n \"Address2\": \"\",\n \"Address3\": \"\",\n \"Address4\": \"\",\n \"Address5\": \"\",\n \"Address6\": \"\",\n \"Address7\": \"\",\n \"Address8\": \"\",\n \"DeliveryAddress\": \"\",\n \"DeliveryAddress1\": \"\",\n \"DeliveryAddress2\": \"\",\n \"DeliveryAddress3\": \"\",\n \"DeliveryAddress4\": \"\",\n \"DeliveryAddress5\": \"\",\n \"DeliveryAddress6\": \"\",\n \"DeliveryAddress7\": \"\",\n \"DeliveryAddress8\": \"\",\n \"Id\": \"\",\n \"SuperAdministrativeArea\": \"\",\n \"AdministrativeArea\": \"\",\n \"SubAdministrativeArea\": \"\",\n \"Locality\": \"\",\n \"DependentLocality\": \"\",\n \"DoubleDependentLocality\": \"\",\n \"Thoroughfare\": \"\",\n \"DependentThoroughfare\": \"\",\n \"Building\": \"\",\n \"Premise\": \"\",\n \"SubBuilding\": \"\",\n \"SubBuildingFloor\": \"\",\n \"PostalCode\": \"\",\n \"Organization\": \"\",\n \"PostBox\": \"\",\n \"Country\": \"\",\n \"Contact\": \"\",\n \"Function\": \"\",\n \"Department\": \"\",\n \"Forename\": \"\",\n \"Surname\": \"\",\n \"MiddleName\": \"\",\n \"FullName\": \"\"\n }\n ],\n \"Options\": {\n \"ServerOptions\": {\n \"ActiveCassLibrary\": \"\",\n \"AddressLineSeparator\": \"<br>\",\n \"AliasPreference\": \"\",\n \"CassAvcEnable\": \"NO\",\n \"CassCityAbbreviation\": \"NO\",\n \"CassPreserveAlias\": \"NO\",\n \"CassUrbFirst\": \"NO\",\n \"CassZipFields\": \"NO\",\n \"CertifiedCountryList\": \"\",\n \"CombinedSearchMethods\": \"YES\",\n \"CombinedVerifyMethods\": \"YES\",\n \"ConfidenceThreshold\": \"90\",\n \"ConformToReference\": \"NO\",\n \"CountryFields\": \"Country\",\n \"DefaultCountry\": \"\",\n \"DuplicateHandlingMask\": \"\",\n \"EnhancedCountryTool\": \"OFF\",\n \"FieldNameWeight\": \"\",\n \"FieldStatus\": \"False\",\n \"ForceCountry\": \"\",\n \"GeocodeCountryList\": \"\",\n \"GeocodeMatchRules\": \"\",\n \"IgnoreUnmatched\": \"NO\",\n \"MaxResults\": \"\",\n \"MatchScoreAbsoluteThreshold\": \"60\",\n \"MatchScoreThresholdFactor\": \"95\",\n \"MaximumGeoDistance\": \"-1\",\n \"MinimumGeoAccuracyLevel\": \"0\",\n \"MinimumMatchscore\": \"0\",\n \"MinimumPostcode\": \"0\",\n \"MinimumSimilarity\": \"70\",\n \"MinimumVerificationLevel\": \"0\",\n \"OutputAddressFormat\": \"NO\",\n \"OutputCasing\": \"Title\",\n \"OutputFields\": \"\",\n \"OutputScript\": \"Latn\",\n \"OutputSortType\": \"AVC\",\n \"PreferPrimaryValidAlias\": \"NO\",\n \"QueryClause\": \"<string>\",\n \"QueryString\": \"\",\n \"RangeDecompose\": \"Match\",\n \"RangefieldPreference\": \"<string>\",\n \"ReferenceDatasetCacheSize\": \"5\",\n \"ReturnVerifiedFieldsOnly\": \"No\",\n \"SerpWesternStyle\": \"NO\",\n \"SimpleParse\": \"YES\",\n \"StrictReferenceMatch\": \"NO\",\n \"StrictRefMatchCountryList\": \"\",\n \"SuppressAdditionFields\": \"\",\n \"SuppressAddressFields\": \"\",\n \"SuppressFields\": \"\",\n \"SuppressUnmatched\": \"OFF\",\n \"SuppressMatchFields\": \"\",\n \"Table\": \"\",\n \"TransliterationIgnoreFields\": \"ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC\",\n \"ToolInfo\": \"NO\",\n \"UseSymbolicTransliteration\": \"YES\",\n \"VerifyCountryList\": \"\",\n \"VerifyMatchRules\": \"\"\n },\n \"Version\": false,\n \"Certify\": false,\n \"Enhance\": false,\n \"Deceased\": false,\n \"Goneaways\": false,\n \"Process\": \"Verify\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.addressy.com/Cleansing/International/Batch/v1.20/json6.ws?Key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"GeoCode\": false,\n \"Addresses\": [\n {\n \"Latitude\": \"\",\n \"Longitude\": \"\",\n \"Address\": \"\",\n \"Address1\": \"\",\n \"Address2\": \"\",\n \"Address3\": \"\",\n \"Address4\": \"\",\n \"Address5\": \"\",\n \"Address6\": \"\",\n \"Address7\": \"\",\n \"Address8\": \"\",\n \"DeliveryAddress\": \"\",\n \"DeliveryAddress1\": \"\",\n \"DeliveryAddress2\": \"\",\n \"DeliveryAddress3\": \"\",\n \"DeliveryAddress4\": \"\",\n \"DeliveryAddress5\": \"\",\n \"DeliveryAddress6\": \"\",\n \"DeliveryAddress7\": \"\",\n \"DeliveryAddress8\": \"\",\n \"Id\": \"\",\n \"SuperAdministrativeArea\": \"\",\n \"AdministrativeArea\": \"\",\n \"SubAdministrativeArea\": \"\",\n \"Locality\": \"\",\n \"DependentLocality\": \"\",\n \"DoubleDependentLocality\": \"\",\n \"Thoroughfare\": \"\",\n \"DependentThoroughfare\": \"\",\n \"Building\": \"\",\n \"Premise\": \"\",\n \"SubBuilding\": \"\",\n \"SubBuildingFloor\": \"\",\n \"PostalCode\": \"\",\n \"Organization\": \"\",\n \"PostBox\": \"\",\n \"Country\": \"\",\n \"Contact\": \"\",\n \"Function\": \"\",\n \"Department\": \"\",\n \"Forename\": \"\",\n \"Surname\": \"\",\n \"MiddleName\": \"\",\n \"FullName\": \"\"\n }\n ],\n \"Options\": {\n \"ServerOptions\": {\n \"ActiveCassLibrary\": \"\",\n \"AddressLineSeparator\": \"<br>\",\n \"AliasPreference\": \"\",\n \"CassAvcEnable\": \"NO\",\n \"CassCityAbbreviation\": \"NO\",\n \"CassPreserveAlias\": \"NO\",\n \"CassUrbFirst\": \"NO\",\n \"CassZipFields\": \"NO\",\n \"CertifiedCountryList\": \"\",\n \"CombinedSearchMethods\": \"YES\",\n \"CombinedVerifyMethods\": \"YES\",\n \"ConfidenceThreshold\": \"90\",\n \"ConformToReference\": \"NO\",\n \"CountryFields\": \"Country\",\n \"DefaultCountry\": \"\",\n \"DuplicateHandlingMask\": \"\",\n \"EnhancedCountryTool\": \"OFF\",\n \"FieldNameWeight\": \"\",\n \"FieldStatus\": \"False\",\n \"ForceCountry\": \"\",\n \"GeocodeCountryList\": \"\",\n \"GeocodeMatchRules\": \"\",\n \"IgnoreUnmatched\": \"NO\",\n \"MaxResults\": \"\",\n \"MatchScoreAbsoluteThreshold\": \"60\",\n \"MatchScoreThresholdFactor\": \"95\",\n \"MaximumGeoDistance\": \"-1\",\n \"MinimumGeoAccuracyLevel\": \"0\",\n \"MinimumMatchscore\": \"0\",\n \"MinimumPostcode\": \"0\",\n \"MinimumSimilarity\": \"70\",\n \"MinimumVerificationLevel\": \"0\",\n \"OutputAddressFormat\": \"NO\",\n \"OutputCasing\": \"Title\",\n \"OutputFields\": \"\",\n \"OutputScript\": \"Latn\",\n \"OutputSortType\": \"AVC\",\n \"PreferPrimaryValidAlias\": \"NO\",\n \"QueryClause\": \"<string>\",\n \"QueryString\": \"\",\n \"RangeDecompose\": \"Match\",\n \"RangefieldPreference\": \"<string>\",\n \"ReferenceDatasetCacheSize\": \"5\",\n \"ReturnVerifiedFieldsOnly\": \"No\",\n \"SerpWesternStyle\": \"NO\",\n \"SimpleParse\": \"YES\",\n \"StrictReferenceMatch\": \"NO\",\n \"StrictRefMatchCountryList\": \"\",\n \"SuppressAdditionFields\": \"\",\n \"SuppressAddressFields\": \"\",\n \"SuppressFields\": \"\",\n \"SuppressUnmatched\": \"OFF\",\n \"SuppressMatchFields\": \"\",\n \"Table\": \"\",\n \"TransliterationIgnoreFields\": \"ID,ISO3166-2,ISO3166-3,_L,Latitude,Longitude,GeoAccuracy,GeoDistance,AVC\",\n \"ToolInfo\": \"NO\",\n \"UseSymbolicTransliteration\": \"YES\",\n \"VerifyCountryList\": \"\",\n \"VerifyMatchRules\": \"\"\n },\n \"Version\": false,\n \"Certify\": false,\n \"Enhance\": false,\n \"Deceased\": false,\n \"Goneaways\": false,\n \"Process\": \"Verify\"\n }\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
The key you want to use to authenticate with the service (you can request we create one for you or create one in your account section).
Whether you want geo-coordinates to be appended to your results (if available). There is an additional cost associated with enabling this option.
An array of addresses that you want to verify. The country field must contain a valid ISO2 or ISO3 country code. We recommend that you use the structured fields (i.e. building/thoroughfare etc) over the address line input fields if the data you are cleansing is already structured. The list of available input address fields are the 'Primary Address Fields'.
Show child attributes
Show child attributes
Used to specify various options and override processes.
Show child attributes
Show child attributes
Was this page helpful?

