Hide
Bored? Check out the Recent Activity on Siafoo Join Siafoo Now or Learn More

Awesome APIs Atom Feed 0

Quick ways to get data on the internet.

IP Address

You can get your current IP, or the IP of your client (in javascript), using jsonip on App Engine. From http://stackoverflow.com/questions/102605/can-i-lookup-the-ip-address-of-a-hostname-from-javascript:

# 's
1<script type="application/javascript">
2function getip(json){
3 alert(json.ip); // alerts the ip address
4}
5</script>
6
7<script type="application/javascript" src="http://jsonip.appspot.com/?callback=getip"> </script>

This will return something like:

getip({"ip": "1.2.3.4", "address":"1.2.3.4"});

GeoIP

Pidgets.com uses MaxMind's GeoIP database to provide free GeoIP location services. You can see a human readable version with http://geoip.pidgets.com/?ip=74.125.225.20 or a machine readable version with http://geoip.pidgets.com/?ip=74.125.225.20&format=json (or xml).

There are of course others like google and yahoo, but they're not simple REST calls. See http://wiki.bcmoney-mobiletv.com/index.php?title=Geo-targeting