GeoJS

Highly available REST/JSON/JSONP IP Geolocation lookup API
Add to Slack

Packed full of features

  • HTTPS only
  • Multiple formats
  • Highly available and geo routed
  • IPv4 and IPv6
  • No rate limits (yet)
  • Cross-origin resource sharing (CORS)

And most importantly, ChatOps integration. Lookup IPs from the comfort of chat.

Getting started is easy!

Checkout the text below, its generated on the fly by GeoJS itself.

Hello . The IP you're behind has a country code of .

All that from this little snippet:

Hello <span id="user_ip"><span class="icon"><i class="loader"></i></span></span>. The IP you're behind has a country code of <span id="user_countrycode"><span class="icon"><i class="loader"></i></span></span>.

<script type="application/javascript">
    function geoip(json){
        var userip      = document.getElementById("user_ip");
        var countrycode = document.getElementById("user_countrycode");
        userip.textContent      = json.ip;
        countrycode.textContent = json.country_code;
    }
</script>
<script async src="https://get.geojs.io/v1/ip/geo.js"></script>

Documentation

Sponsors

GeoJS is powered by the DigitalOcean cloud and wouldn't be possible without them. Use our referral link to get $10 free credit upon signup. We'd also like to thank DNS Spy who continually monitor our DNS infrastructure to ensure that users can reach GeoJS.

Notes & Acknowledgements

I'd like to thank Telize for inspiring me to create this and MaxMind, as all GeoIP data is sourced from their GeoLite database, available at maxmind.com.

GeoJS is made with by jloh. I can be foud online at my blog, Twitter, GitHub and Keybase.