In the world of content marketing and targeting, accurate geographic location data can make the difference between a thriving business and a thriving business. Accurate data is everything, especially in targeted marketing. When you need reliable geographic location data, IPWHOIS.io Is a great source: fast, reliable and accurate!
Fast hits
- Start for free, very competitive pricing
- Provides information on location, currency, language and more
- Helpful documentation and code examples
- Fast and secure delivery
- Provides data in CSV, JSON and XML formats
To use IPWHOIS, submit a request to their API with the desired return format and the user’s IP address as part of the URL:
curl http://ipwhois.app/json/8.8.4.4
Your luggage will look like this:
{“ip”: “8.8.4.4”, “success”: true, “type”: “IPv4”, “continent”: “North America”, “continent_code”: “NA”, “country”: “United States” , “country_code”: “USA”, “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 “,” Width “: 37.3860517,” Length “: – 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 Dollar”, “completed_requests”: 3}XML endpoint provides brilliant XML load:
<?xml version="1.0" encoding="UTF-8"?> <query> <ip>8.8.4.4</ip> <success>1</success> <type>IPv4</type> <continent>North America</continent> <continent_code>NA</continent_code> <country>United States</country> <country_code>US</country_code> <country_flag>https://cdn.ipwhois.io/flags/us.svg</country_flag> <country_capital>Washington</country_capital> <country_phone>+1</country_phone> <country_neighbours>CA,MX,CU</country_neighbours> <region>California</region> <city>Mountain View</city> <latitude>37.3860517</latitude> <longitude>-122.0838511</longitude> <asn>AS15169</asn> <org>Google LLC</org> <isp>Google LLC</isp> <timezone>America/Los_Angeles</timezone> <timezone_name>Pacific Standard Time</timezone_name> <timezone_dstOffset>0</timezone_dstOffset> <timezone_gmtOffset>-28800</timezone_gmtOffset> <timezone_gmt>GMT -8:00</timezone_gmt> <currency>US Dollar</currency> <currency_code>USD</currency_code> <currency_symbol>$</currency_symbol> <currency_rates>1</currency_rates> <currency_plural>US dollars</currency_plural> <completed_requests>8</completed_requests> </query>
You can also specify a selected collection of fields you want in the loader:
// http://ipwhois.app/json/8.8.4.4?objects=country,city,timezone { "country": "United States", "city": "Mountain View", "timezone": "America/Los_Angeles" }
Uses b lang
Parameter, you can get local location information:
Another amazing 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 and useful service that can help you customize your advertising and content to the user’s location, which in turn can greatly improve the chances of conversion and user satisfaction. Give IPWHOIS.io Look when you need accurate and fast geographic information!
Source