| 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.
|
Your IP Address: 38.103.63.61
UNITED STATES IP found in 0.0012 seconds Is this wrong? Make a correction 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.http://api.hostip.info/country.php US http://api.hostip.info/get_html.php?ip=12.215.42.19 Country: UNITED STATES (US) City: Sugar Grove, IL http://api.hostip.info/get_html.php?ip=12.215.42.19&position=true Country: UNITED STATES (US) City: Sugar Grove, IL Latitude: 41.7696 Longitude: -88.4588 http://api.hostip.info/?ip=12.215.42.19 [use the URL above for an example - XML too long to paste below] 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> Quality outside resource to check out (also using this technology): Movie Reviews - Thousands Of Quality Movie Reviews<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" Commercial GeodatabaseMaxMind - If you're looking for a commercial option, this database maintains a great level of accuracy. Some related sitesIf you need some examples, here are some sites that use us (or have at some point).Online Encyclopedia - Updated Crystal Reference Encyclopedia |
|