ip-info-rest-api

command module
v0.0.0-...-159a6e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: MIT Imports: 8 Imported by: 0

README

IP Information REST API

Simple REST API server for get IP information

build Go Report Card docker License maxmind

Guide

For see available options

docker run --rm ghcr.io/aasaam/ip-info-rest-api:latest run -h

Usage

$ curl -s http://127.0.0.1:4000/info/8.8.8.8 | jq
{
  "IP": "8.8.8.8",
  "IsValid": true,
  "AutonomousSystemNumber": 15169,
  "AutonomousSystemOrganization": "GOOGLE",
  "City": "",
  "CityGeoNameID": 0,
  "Country": "US",
  "LocationLatitude": 37.751,
  "LocationLongitude": -97.822
}

Need more accurate data

aasaam software development group
aasaam software development group

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL