GeoJS

Highly available REST/JSON/JSONP IP Geolocation lookup API

Designed with for developers

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"><i class="fa fa-cog fa-spin"></i></span>. The IP you're behind has a country code of <span id="user_countrycode"><i class="fa fa-cog fa-spin"></i></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

General

Information that applied to the whole service

ChatOps

ChatOps setup and usage

Endpoints

Current endpoints that can be used

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.