International Street Address API

International Street Address API

  • Category: Geocoding


Introduction

In today's world, we heavily rely on digital communication and the internet. Thus, it becomes crucial for companies to keep their data up-to-date, for example, their address database. One of the most challenging aspects of maintaining an updated address database includes dealing with international addresses.

That's why we have APIs like SmartStreet's International Street API. In this blog post, we will discuss the basics of the International Street API and provide examples of how to use it using JavaScript.

SmartStreet's International Street API

The International Street API enables you to validate, standardize, and enrich international addresses. With its extensive coverage of international addresses, the API is a comprehensive solution for businesses operating globally. It supports over 200 countries and territories worldwide.

Authentication

To use the International Street API, you need an API key provided by SmartStreet. You can visit their website to get started.

Basic Usage

Now, let's explore some basic examples of using the International Street API.

Validate an International Address

const API_KEY = "YOUR_API_KEY";
const URL = `https://us-street.api.smartystreets.com/verify-international?auth-id=${API_KEY}&`;
const address = "2 rue Léon Blum, 92800 Puteaux, France";
const urlEncodedAddress = encodeURIComponent(address);
const requestURL = `${URL}address=${urlEncodedAddress}`;

fetch(requestURL)
  .then((response) => response.json())
  .then((data) => {
    console.log(data);
  });

In this example, we first define the API Key provided by SmartStreet. Using this key, we construct the request URL by adding the auth-id parameter to the endpoint https://us-street.api.smartystreets.com/verify-international?. We then encode the address using encodeURIComponent and append it to the URL. Finally, we make a fetch request and print the response to the console.

Find Suggestions for an Incomplete Address

const API_KEY = "YOUR_API_KEY";
const URL = `https://us-street.api.smartystreets.com/autocomplete?auth-id=${API_KEY}&`;
const address = "2 rue";
const urlEncodedAddress = encodeURIComponent(address);
const requestURL = `${URL}prefix=${urlEncodedAddress}`;

fetch(requestURL)
  .then((response) => response.json())
  .then((data) => {
    console.log(data);
  });

In this example, we use the autocomplete endpoint to find suggestions for an incomplete address. We construct the request URL in the same way as before, but this time we use the prefix parameter to pass the partial address. Again, we make a fetch request and print the response to the console.

Conclusion

In this blog post, we explored the basics of the International Street API and provided examples in JavaScript. You can use these examples as a starting point to integrate the International Street API into your application. With the API's comprehensive coverage and easy-to-use interface, it becomes straightforward to standardize and validate international addresses.

Visit to International Street Address API website

Similar APIs of Geocoding

Walk Score

Walk Score

Geocoding

Calculates travel times between an origin and a set of destinations. Visualize travel times on a map and supports walking, public transit, driving, and biking times. Calls to the Travel Time HTTP API must be made from a server-side script.

distancetransitmap

IPGeolocation API

IPGeolocation API

Geocoding

ipgeolocation.io API provides IP to Location information such as country, city, state, province, latitude and longitude, company detail, ISP lookup, threat intelligence information, tor, VPN and proxy data. It also provides user agent lookup information, sun rise, sun set and moon set, moon rise timings. All APIs support REST JSON and XML formats.

IPGeoIPIP

Abstract Geolocation API

Abstract Geolocation API

Geocoding

Abstract IP geolocation API provides developers from small startups to big technology companies with a fast and robust API to get the location of any IP worldwide. With Abstract, you can get the city, region and country of any IP. In addition, Abstract IP Geolocation API provides you with timezone and coordinates data so you can build the most delightful experience for your developers. Whether it's for content personalisation, fraud detection or GDPR compliance, Abstract covers a variety of use cases thanks to its extensive and robust platform currently used by 100,000 developers worldwide in companies like Google or Shopify. Freelancers and indiehackers can enjoy an extensive free plan serving up to 20,000 calls per month.

ipgeolocationip

Geocodify

Geocodify

Geocoding

Worldwide geocoding, geoparsing and autocomplete for addresses.

geocodingaddressapi

ArcGIS World Geocoding Services

ArcGIS World Geocoding Services

Geocoding

The World Geocoding Service finds addresses and places from a single endpoint.

geocodingmappingarcgis

Geolake

Geolake

Geocoding

Easy to use geocoding API with best-in-class accuracy. Provides both API based geocoding as well as via CSV batch upload. Can return ZIP+4 values for US addresses, geocode IP addresses and phone numbers based on the data that is available. Data returned may include the top level domain for a country, currency and time zone for the location.

geocodegeocodergeolake

IP Geolocation API

IP Geolocation API

Geocoding

Free IP Geolocation and IP Address Lookup Location API.

ipgeocodingapi

Maps Me

Maps Me

Geocoding

API is designed to allow integrating the offline maps with your iOS or Android app. The best part is that MAPS.ME code is completely open, and you can hack it to your needs!

ipgeocodingapi

IP Api

IP Api

Geocoding

Find location with ip address

ipgeocodingapi

IP Geolocation

IP Geolocation

Geocoding

Free IP API provides country, city, state, province, local currency, latitude and longitude, company detail, ISP lookup, language, zip code, country calling code, time zone, current time, sunset and sunrise time, moonset and moonrise time from any IPv4 and IPv6 address in REST, JSON and XML format over HTTPS.

ipgeolocationcity