- A simple and fast IP Information API written in Go
- There is a public deployment of this API available at ip.ddos.studio (Unavailable)
- You must have GeoLite2 databases
- Install all dependencies
- Install Go
go get github.com/oschwald/maxminddb-golang
- You can run it via the following commands:
go build httpserver.go && ./httpserver
ORgo run httpserver.go
- Now open your browser and go to http://localhost:3600/v1
- For other deployments, replace localhost with your server IP address
-
lookup
- Returns information about the provided IP address
- Example response available here
-
ip
- Returns information about the client's IP address
- Same response as
lookup
- Go
- GeoLite2 Databases
- github.com/oschwald/maxminddb-golang
- What is a bogon?
- I use the term bogon to mean an IP address that is unregistered, invalid, or out of use.