How to Get all information about visiter address, contury, city, state, and more . let’s do it..
- Hear we use telize API for finding client information it’s free service to give information about clinet ip.
- find geolocation ip and trace ip address usign geolocation API
- We can find given field from the particular ip address.
- ip (Visitor IP address, or IP address specified as parameter)
- country_code (Two-letter ISO 3166-1 alpha-2 country code)
- country_code3 (Three-letter ISO 3166-1 alpha-3 country code)
- country (Name of the country)
- region_code (Two-letter ISO-3166-2 state / region code)
- region (Name of the region)
- city (Name of the city)
- postal_code (Postal code)
- continent_code (continent code)
- latitude (Perfect Latitude)
- longitude Perfect Longitude)
- dma_code (DMA)
- area_code (Area Code)
- asn (Autonomous System Number)
- isp (Internet service provider)
- timezone (Time Zone)
- It’s Send HTTP Request to server and Return the Result In Json Format.
- I Have One Example for easily understand this post.
-
Example:-
<script type="application/javascript"> function getgeoip(json){ document.write("IP address : ", json.ip + ", <br>"); document.write("Latitude : ", json.latitude + ", <br>"); document.write("Longitude : ", json.longitude + ", <br>"); document.write("Country : ", json.country + ", <br>"); document.write("Country Code: ", json.country_code + ", <br>"); document.write("City : ", json.city + ", <br>"); document.write("area Code : ", json.area_code + ", <br>"); document.write("Postal Code:", json.postal_code + ", <br>"); document.write("ISP:", json.isp + ", <br>"); document.write("Time Zone:", json.timezone + ", <br>"); } </script> <script type="application/javascript" src="http://www.telize.com/geoip?callback=getgeoip"></script>
-
Output:-
[button color=”orange” size=”big” link=”http://amzn.to/2adKHlf” target=”blank” ]Live Demo[/button]
[button color=”blue” size=”big” link=”https://drive.google.com/file/d/0B_G75fR-vi_tWHJXS0V1SDVTM0E/view?usp=sharing” target=”blank” ]Download[/button]