| IP Address Lookup | API | Data | Contribute | Forum | FAQ | About | Ecommerce |
Using the IP Addresses database - IP Address Lookup
If you're going to be doing a lot of Geotargeting or IP Address Lookups, please take a feed instead which will preserve both our bandwidth and your bandwidth.
Alternatively, you can support us and Download a High-Accuracy Version. |
Your IP Address: 192.99.32.115
... actually we haven't a clue. IP found in 0.0004 seconds Is this wrong? Make a correction or Download a High-Accuracy Version Are you a host? Netblock upload |
Simple GETThat said, there is an easy HTTP oriented API to locate IP addresses and Geocode them. If you don't supply the "?ip=aa.bb.cc.dd" bit, then the ip address lookup of the calling machine will be located instead (here, the aa,bb,cc,dd are decimal digits). If you add &position=true to the end of the URL then latitude and longitude will be returned also. Both HTML and XML formats are supplied for your convenience.
Country FlagPaste the following code into your HTML to get a country flag of the ip address. The database is significantly more accurate (it ought to be 100%) for countries than for cities. It would be nice if y'all would make the flag a link to the www.hostip.info home page (http://www.hostip.info/) so they can come by if they're interested - it'll only benefit you in the long run. After all, the results get more accurate as more visitors submit their IP addresses!Flag of visitor's location: Flag of any IP address:<A HREF="http://www.hostip.info"> <IMG SRC="http://api.hostip.info/flag.php" BORDER="0" ALT="IP Address Lookup"> </A> <A HREF="http://www.hostip.info"> <IMG SRC="http://api.hostip.info/flag.php?ip=12.215.42.19" ALT="IP Address Lookup"> </A> *NIX Shell ScriptYou can use the following shell script to call in your favorite *NIX environment.#!/bin/tcsh -f lynx -dump "http://api.hostip.info/get_html.php?ip=$1" Testing your API callsIf you're looking to test your API calls through various, worldwide IP addresses you can try a proxy service like wonderproxy.com. Simply configure your browser to use the proxy and your IP address will appear as the proxy's instead of your own.Commercial GeodatabaseMaxMind - If you're looking for a commercial option, this database maintains a great level of accuracy. |
|