in

Fast, Accurate Geolocation Data with IPWHOIS.io

Fast, Accurate Geolocation Data with IPWHOIS.io

In the world of marketing and content targeting, having accurate geolocation data can be the difference between a thriving enterprise and a floundering business. Accurate data is everything, especially in the targeted marketing. When you need trustworthy geolocation data, IPWHOIS.io is a great source: fast, reliable, and accurate!

Quick Hits

  • Start for free, very competitive pricing
  • Provides information about location, currency, language, and more
  • Helpful documentation and code samples
  • Fast and secure payload delivery
  • Provides data in CSV, JSON, and XML formats

To use IPWHOIS, make a request to their API with the desired return format and user IP address as part of the URL:

curl http://ipwhois.app/json/8.8.4.4

Your payload will look like:

“ip”:”8.8.4.4″, “success”:true, “type”:”IPv4″, “continent”:”North America”, “continent_code”:”NA”, “country”:”United States”, “country_code”:”US”, “country_flag”:”https://cdn.ipwhois.io/flags/us.svg”, “country_capital”:”Washington”, “country_phone”:”+1″, “country_neighbours”:”CA,MX,CU”, “region”:”California”, “city”:”Mountain View”, “latitude”:37.3860517, “longitude”:-122.0838511, “asn”:”AS15169″, “org”:”Google LLC”, “isp”:”Google LLC”, “timezone”:”America/Los_Angeles”, “timezone_name”:”Pacific Standard Time”, “timezone_dstOffset”:0, “timezone_gmtOffset”:-28800, “timezone_gmt”:”GMT -8:00″, “currency”:”US Dollar”, “currency_code”:”USD”, “currency_symbol”:”$”, “currency_rates”:1, “currency_plural”:”US dollars”, “completed_requests”:3

The XML endpoint provides a brilliant XML payload:



   8.8.4.4
   1
   IPv4
   North America
   NA
   United States
   US
   https://cdn.ipwhois.io/flags/us.svg
   Washington
   +1
   CA,MX,CU
   California
   Mountain View
   37.3860517
   -122.0838511
   AS15169
   Google LLC
   Google LLC
   America/Los_Angeles
   Pacific Standard Time
   0
   -28800
   GMT -8:00
   US Dollar
   USD
   $
   1
   US dollars
   8

You can also specify a select collection of fields you want in the payload:

// http://ipwhois.app/json/8.8.4.4?objects=country,city,timezone

  "country": "United States",
  "city": "Mountain View",
  "timezone": "America/Los_Angeles"

Using the lang parameter, you can get localized location information:

http://ipwhois.app/json/8.8.4.4?lang=es

Another awesome bonus is the ability to use JSONP:

$.ajax(
	method: 'GET',
	contentType: 'application/json',
	url: 'http://ipwhois.app/json/' + ip,
	dataType: 'json',
	success: function(json) 
	    // Country code output, field "country_code"
	    console.log(json.country_code);
	
);

IPWHOIS.io is a super simple, useful service that can help you to customize your advertising and content to the user’s location, which in turn can greatly improve your chances of conversion and user satisfaction. Give IPWHOIS.io a look when you need accurate, fast geolocation information!



Source link

What do you think?

Written by Wirandle Editor

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

one × 2 =

Loading…

0
Exploratory Data Analysis in JavaScript

Exploratory Data Analysis in JavaScript | Codementor

expensive gaming chair

Expensive Gaming Chair – Choose The Best One