Validate an address

We currently can only validate UK & US addresses.
https://dash.stannp.com/api/v1/addresses/validate

Parameters

company string Company name
address1 string Address line 1
address2 string Address line 2
address3 string Address line 3
city string Address city
zipcode string Address postal code
country string ISO 3166-1 Alpha 2 Country Code (GB,US,FR...)
Request
$ curl https://us.stannp.com/api/v1/addresses/validate \
-u {API_KEY}: \
-d "company=Stannp" \ 
-d "address1=1000 N west street" \ 
-d "address2=Suite 1200 #1939" \ 
-d "city=Wilmington" \ 
-d "zipcode=19801" \ 
-d "country=US"
define("API_KEY", "YOUR API KEY");
$postdata = http_build_query(
    array(
        'company' => "Stannp"
        'address1' => "1000 N west street"
        'address2' => "Suite 1200 #1939"
        'city' => "Wilmington"
        'zipcode' => "19801"
        'country' => "US"
    )
);
$opts = array(
    'http' => array(
        'method'  => 'POST',
        'header'  => 'Content-type: application/x-www-form-urlencoded',
        'content' => $postdata
    )
);
$context  = stream_context_create($opts);
$result = file_get_contents("https://us.stannp.com/api/v1/addresses/validate?api_key=" . API_KEY, false, $context);
$response = json_decode($result, true);

print_r($response);
import requests

data = {
    'company': 'Stannp',
    'address1': '1000 N west street',
    'address2': 'Suite 1200 #1939',
    'city': 'Wilmington',
    'zipcode': '19801',
    'country': 'US',
}

response = requests.post('https://us.stannp.com/api/v1/addresses/validate?api_key={API_KEY}', data=data)
print(response.text)
var client = new RestClient("https://us.stannp.com/api/v1/addresses/validate?api_key={API_KEY}");

var request = new RestRequest(Method.POST);

request.AddParameter("company", "Stannp");
request.AddParameter("address1", "1000 N west street");
request.AddParameter("address2", "Suite 1200 #1939");
request.AddParameter("city", "Wilmington");
request.AddParameter("zipcode", "19801");
request.AddParameter("country", "US");

IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content)
Response
{
    "success":true,
    "data":{
        "is_valid":true
    }
}