On this planet of selling and content material concentrating on, having correct geolocation knowledge could be the distinction between a thriving enterprise and a floundering enterprise. Correct knowledge is the whole lot, particularly within the focused advertising and marketing. Once you want reliable geolocation knowledge, IPWHOIS.io is a superb supply: quick, dependable, and correct!
Fast Hits
- Begin at no cost, very aggressive pricing
- Supplies details about location, forex, language, and extra
- Useful documentation and code samples
- Quick and safe payload supply
- Supplies knowledge in CSV, JSON, and XML codecs
To make use of IPWHOIS, make a request to their API with the specified return format and person IP tackle as a part of the URL:
curl http://ipwhois.app/json/8.8.4.4
Your payload will seem like:
{ “ip”:”8.8.4.4″, “success”:true, “kind”:”IPv4″, “continent”:”North America”, “continent_code”:”NA”, “nation”:”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”, “area”:”California”, “metropolis”:”Mountain View”, “latitude”:37.3860517, “longitude”:-122.0838511, “asn”:”AS15169″, “org”:”Google LLC”, “isp”:”Google LLC”, “timezone”:”America/Los_Angeles”, “timezone_name”:”Pacific Normal Time”, “timezone_dstOffset”:0, “timezone_gmtOffset”:-28800, “timezone_gmt”:”GMT -8:00″, “forex”:”US Greenback”, “currency_code”:”USD”, “currency_symbol”:”$”, “currency_rates”:1, “currency_plural”:”US {dollars}”, “completed_requests”:3 }The XML endpoint offers a superb XML payload:
<?xml model="1.0" encoding="UTF-8"?> <question> <ip>8.8.4.4</ip> <success>1</success> <kind>IPv4</kind> <continent>North America</continent> <continent_code>NA</continent_code> <nation>United States</nation> <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> <area>California</area> <metropolis>Mountain View</metropolis> <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 Normal Time</timezone_name> <timezone_dstOffset>0</timezone_dstOffset> <timezone_gmtOffset>-28800</timezone_gmtOffset> <timezone_gmt>GMT -8:00</timezone_gmt> <forex>US Greenback</forex> <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> </question>
You may as well specify a choose assortment of fields you need within the payload:
// http://ipwhois.app/json/8.8.4.4?objects=nation,metropolis,timezone { "nation": "United States", "metropolis": "Mountain View", "timezone": "America/Los_Angeles" }
Utilizing the lang
parameter, you will get localized location info:
One other superior bonus is the flexibility to make use of JSONP:
$.ajax({ methodology: 'GET', contentType: 'utility/json', url: 'http://ipwhois.app/json/' + ip, dataType: 'json', success: perform(json) { // Nation code output, discipline "country_code" console.log(json.country_code); } });
IPWHOIS.io is a brilliant easy, helpful service that may assist you to customise your promoting and content material to the person’s location, which in flip can significantly enhance your probabilities of conversion and person satisfaction. Give IPWHOIS.io a glance while you want correct, quick geolocation info!
Source link