echoip icon indicating copy to clipboard operation
echoip copied to clipboard

UK is eu True

Open ragyabraham opened this issue 4 years ago • 1 comments

IP addresses from united kingdom are returning country_eu: true although UK has exited the EU. Can you please update. Thanks

ragyabraham avatar Feb 25 '21 03:02 ragyabraham

The database provider addressed this recently. Websites using Maxmind will reflect this change once they update their copy of the database. It is not something echoip has direct influence over. Once the new database version is pulled the issue will disappear.

You can see it is gone in the new version of the database:

English IPv4 address, no longer has EU flag present:

curl -s -u "ACCOUNTID:APIKEY" "https://geolite.info/geoip/v2.1/country/108.61.196.101?pretty" | jq

  "country": {
    "iso_code": "GB",
    "geoname_id": 2635167,
    "names": {
      "es": "Reino Unido",
      "fr": "Royaume-Uni",
      "ja": "イギリス",
      "pt-BR": "Reino Unido",
      "ru": "Великобритания",
      "zh-CN": "英国",
      "de": "Vereinigtes Königreich",
      "en": "United Kingdom"
    }


Compare with German IPv4 address that will show the EU flag present:

curl -s -u "ACCOUNTID:APIKEY" "https://geolite.info/geoip/v2.1/country/108.61.210.117?pretty" | jq


  "country": {
    "is_in_european_union": true,
    "iso_code": "DE",
    "geoname_id": 2921044,
    "names": {
      "ja": "ドイツ連邦共和国",
      "pt-BR": "Alemanha",
      "ru": "Германия",
      "zh-CN": "德国",
      "de": "Deutschland",
      "en": "Germany",
      "es": "Alemania",
      "fr": "Allemagne"
    }


mfld-pub avatar May 18 '21 14:05 mfld-pub