{"id":16406581,"url":"https://github.com/odino/iploc","last_synced_at":"2025-06-13T09:37:32.271Z","repository":{"id":138005687,"uuid":"140064185","full_name":"odino/iploc","owner":"odino","description":"Reverse geocoding of IP addresses -- find where that IP comes from!","archived":false,"fork":false,"pushed_at":"2020-08-16T08:52:35.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T21:53:09.837Z","etag":null,"topics":["golang","ip","ip-address","ip-address-geolocation","reverse-geocoding"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/odino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-07T07:52:29.000Z","updated_at":"2024-01-24T20:58:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"d580f5cc-6b7c-463e-a937-b99dadf95299","html_url":"https://github.com/odino/iploc","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odino%2Fiploc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odino%2Fiploc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odino%2Fiploc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odino%2Fiploc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odino","download_url":"https://codeload.github.com/odino/iploc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238375274,"owners_count":19461575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","ip","ip-address","ip-address-geolocation","reverse-geocoding"],"created_at":"2024-10-11T06:10:20.848Z","updated_at":"2025-02-11T21:31:48.212Z","avatar_url":"https://github.com/odino.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iploc\n\nReverse geocoding of IP addresses -- find where that IP comes from!\n\n## Usage\n\n`iploc` is a very straightforward utility: give it an IP address and will return\nas many information as possible regarding its geographical location:\n\n```\niploc 12.34.56.78\n{\"as\":\"AS7018 AT\\u0026T Services, Inc.\",\"city\":\"Columbus\",\"country\":\"United States\",\"countryCode\":\"US\",\"isp\":\"AT\\u0026T Services\",\"lat\":39.9653,\"lon\":-83.0235,\"org\":\"AT\\u0026T Services\",\"query\":\"12.34.56.78\",\"region\":\"OH\",\"regionName\":\"Ohio\",\"status\":\"success\",\"timezone\":\"America/New_York\",\"zip\":\"43215\"}\n```\n\nIt provides a very simple *pretty-print* option:\n\n```\niploc 12.34.56.78 -p\n{\n    \"as\": \"AS7018 AT\\u0026T Services, Inc.\",\n    \"city\": \"Columbus\",\n    \"country\": \"United States\",\n    \"countryCode\": \"US\",\n    \"isp\": \"AT\\u0026T Services\",\n    \"lat\": 39.9653,\n    \"lon\": -83.0235,\n    \"org\": \"AT\\u0026T Services\",\n    \"query\": \"12.34.56.78\",\n    \"region\": \"OH\",\n    \"regionName\": \"Ohio\",\n    \"status\": \"success\",\n    \"timezone\": \"America/New_York\",\n    \"zip\": \"43215\"\n}\n```\n\n...but you're much better off with `jq`:\n\n```\niploc 12.34.56.78 | jq -r .city\nColumbus\n```\n\nNeed help?\n\n```\nA simple utility to find geographical informations\nabout an IP address: given an IP as an input, it will return\nas many geographical info as possible.\n\nUsage:\n  iploc [flags]\n  iploc [command]\n\nExamples:\niploc 127.0.0.1\niploc - (own IP address)\n\nAvailable Commands:\n  help        Help about any command\n  version     Print the version number of iploc\n\nFlags:\n  -h, --help     help for iploc\n  -p, --pretty   pretty print json\n\nUse \"iploc [command] --help\" for more information about a command.\n```\n\nNeed version info?\n\n```\niploc version\nv1.0.0\n```\n\n## Installation\n\nGrab a binary for the [release](https://github.com/odino/iploc/releases) page. That's it.\n\nIf you fancy building things from scratch, clone this repo and run a `go build`\nfor yourself!\n\nNote: `iploc` is built on top of [ipinfo.io](http://ipinfo.io) -- they do the hard work!\n\n## Tests\n\n![lol](https://raw.githubusercontent.com/odino/docsql/master/images/tommy.png)\n\n## Development\n\nFor development with Go, I usually use a local docker container -- here's what I do:\n\n* `make build` creates the container\n* `make` gets in the container\n* `go run main.go` and have fun with the app\n\nOnce you're done, you can test binaries with `make release`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodino%2Fiploc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodino%2Fiploc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodino%2Fiploc/lists"}