observabilitystack / geoip-api

A JSON REST API for Maxmind GeoIP databases
https://observabilitystack.org
Apache License 2.0
36 stars 12 forks source link

[Feature Request] add additional info #73

Open the-hotmann opened 2 years ago

the-hotmann commented 2 years ago

I dont know if that even would be possible with free DBs but maybe it is.

When I go to https://ipinfo.io/ and search for an IP I see this: screencapture-ipinfo-io-2021-12-27-20_01_24

 ip: "95.153.31.78"
 hostname: "mail4.mamaya.us"                                              (missing in geoIP API)
 city: "Tallinn"
 region: "Harjumaa"                                                       (missing in geoIP API)
 country: "EE"
 loc: "59.4585,24.8740"
 org: "AS206804 EstNOC OY"
 postal: "12014"
 timezone: "Europe/Tallinn"
 asn: Object 
     asn: "AS206804"
     name: "EstNOC OY"                                                     (missing in geoIP API)
     domain: "estnoc.ee"                                                   (missing in geoIP API)
     route: "95.153.31.0/24"                                               (missing in geoIP API)
     type: "isp"                                                           (missing in geoIP API)
 company: Object
     name: "EstNOC OY"                                                     (missing in geoIP API)
     domain: "estnoc.ee"                                                   (missing in geoIP API)
     type: "business"                                                      (missing in geoIP API)
 privacy: Object
     vpn: true                                                             (missing in geoIP API)
     proxy: false                                                          (missing in geoIP API)
     tor: false                                                            (missing in geoIP API)
     relay: false                                                          (missing in geoIP API)
     hosting: false                                                        (missing in geoIP API)
     service: "Private Internet Access"                                    (missing in geoIP API)
 abuse: Object
     address: "Estonia, Parnumaa, Tori vald, Muti kyla, 86811"             (missing in geoIP API)
     country: "EE"
     email: "abuse@estnoc.ee"                                              (missing in geoIP API)
     name: "Abuse contact role object"                                     (missing in geoIP API)
     network: "95.153.31.0/24"                                             (DOUBLE)
     phone: "+46 8 5626 40 08"                                             (missing in geoIP API)
 domains: Object
     total: 0                                                              (missing in geoIP API) (not needed!)
     domains: Array                                                        (missing in geoIP API) (not needed!)

The ones I would really like to have are these:

 asn: Object 
     asn: "AS206804"                                                       (missing in geoIP API)
     name: "EstNOC OY"                                                     (missing in geoIP API)
     domain: "estnoc.ee"                                                   (missing in geoIP API)
     route: "95.153.31.0/24"                                               (missing in geoIP API)
     type: "isp"                                                           (missing in geoIP API)
 privacy: Object
     vpn: true                                                             (missing in geoIP API)
     proxy: false                                                          (missing in geoIP API)
     tor: false                                                            (missing in geoIP API)
     relay: false                                                          (missing in geoIP API)
     hosting: false                                                        (missing in geoIP API)
     service: "Private Internet Access"                                    (missing in geoIP API)
 abuse: Object
     address: "Estonia, Parnumaa, Tori vald, Muti kyla, 86811"             (missing in geoIP API)
     email: "abuse@estnoc.ee"                                              (missing in geoIP API)
     name: "Abuse contact role object"                                     (missing in geoIP API)
     phone: "+46 8 5626 40 08"                                             (missing in geoIP API)
tboeghk commented 2 years ago

Hi @MartinHotmann! Thanks for raising this interesting issue.

Currently we rely on the underlying MaxMind GeoIp2 database and it's data. The data you pointed out above originates in different locations. We could indeed gather this data (on demand) and enrich the geoip-api answer with additional information (if requested).

The implementation of #76 and #75 would be a huge next step for this project, volunteers welcome :-)