Skip to content

mhanbali/ipgeo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple api that allows you to query an ip address for geo data. It uses httprouter, and the data source is from IPinfo.io (links below, and in the source code).

Since you should be using the MMDB file I'm using oschwald's reader.

This may be useful for things like web analytics software or broadly in cyber security (ip allow/deny).

Source for the IP database: https://github.com/abdullahdevrel/kaggle_data_source https://www.kaggle.com/datasets/ipinfo/ipinfo-country-asn

Here is an example output after running a query on http://localhost:8080/query/39.213.149.53

OUTPUT:

{"as_domain":"telkomsel.com","as_name":"PT. Telekomunikasi Selular","asn":"AS23693","continent":"AS","continent_name":"Asia","country":"ID","country_name":"Indonesia"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages