Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1023 Bytes

README.md

File metadata and controls

41 lines (25 loc) · 1023 Bytes

Intro

Hi, there!

Here is a ready to deploy ip geo location server, It works for both ip v4 and ip v6, However the underlying database is not that huge, It makes use of the OpenGeoFeed database found here,

How to use

Here's a command to run using docker ->

docker run -p 8080:8080 ghcr.io/realchandan/ip-geo-api

Request

curl localhost:8080/getIpInfo?addr=140.82.114.3

Response

{ "ok": true, "country": "US", "ip_addr": "140.82.114.3", "ip_v6": false }

License

The database is licensed under CC0,

It means -

CC0 doesn't legally require users of the data to cite the source!

But feel free to attribute the ip database provider! <3

The code in this repository is licensed under the MIT License!

Thanks!