GET /api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US HTTP/1.1
Content-Type: application/json
Host: api.print.io

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.print.io/api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US",
  "method": "GET",
  "headers": {
    "content-type": "application/json"
  }
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
fetch("https://api.print.io/api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US", {
  "method": "GET",
  "headers": {
    "content-type": "application/json"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.log(err);
});
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.print.io/api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US");
xhr.setRequestHeader("content-type", "application/json");

xhr.send(data);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.print.io/api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
<?php

$request = new HttpRequest();
$request->setUrl('https://api.print.io/api/v/5/source/api/addressvalidation/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'recipeid' => 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6',
  'line1' => '12 west 29th street',
  'line2' => '',
  'city' => 'New York',
  'state' => 'NY',
  'postalCode' => '10001',
  'countryCode' => 'US'
));

$request->setHeaders(array(
  'content-type' => 'application/json'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.print.io/api/v/5/source/api/addressvalidation/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'recipeid' => 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6',
  'line1' => '12 west 29th street',
  'line2' => '',
  'city' => 'New York',
  'state' => 'NY',
  'postalCode' => '10001',
  'countryCode' => 'US'
)));

$request->setHeaders(array(
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("api.print.io")

headers = { 'content-type': "application/json" }

conn.request("GET", "/api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "https://api.print.io/api/v/5/source/api/addressvalidation/"

querystring = {"recipeid":"f255af6f-9614-4fe2-aa8b-1b77b936d9d6","line1":"12 west 29th street","line2":"","city":"New York","state":"NY","postalCode":"10001","countryCode":"US"}

headers = {'content-type': 'application/json'}

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)
curl --request GET \
  --url 'https://api.print.io/api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US' \
  --header 'content-type: application/json'
http GET 'https://api.print.io/api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US' \
  content-type:application/json
wget --quiet \
  --method GET \
  --header 'content-type: application/json' \
  --output-document \
  - 'https://api.print.io/api/v/5/source/api/addressvalidation/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6&line1=12%20west%2029th%20street&line2=&city=New%20York&state=NY&postalCode=10001&countryCode=US'