IP Location API

A Flask based IP location and details API.

: python

Concepts Used

  • REST API
  • NoSQL
  • Web Framework

Features

  • 3 Modes
  • Website and API

Code Link


Introduction

Once I thought my site got hacked as there was an unauthorised login, and in the logs it showed the IP Address.

I needed a service to find the addresses on a map for an IP address.

Features

The API sends back a JSON file with various details for the IP Address such as:

  • AS (BGP Autonomous System Number)
  • ISP (Internet Service Provider)
  • Lattitude/Longitude
  • City
  • Region
  • Country
  • Time Zone
  • ZIP

You can check the details on the site itself, if not using the API as seen below for the IP for google.com:


Conclusion

This site and the API can be used freely by anyone.