{"id":18649737,"url":"https://github.com/ashwanthkumar/ip-lookup","last_synced_at":"2025-11-05T10:30:30.204Z","repository":{"id":255031069,"uuid":"848309685","full_name":"ashwanthkumar/ip-lookup","owner":"ashwanthkumar","description":"IP Lookup Service powered by free IPInfo dataset easy to build and self host","archived":false,"fork":false,"pushed_at":"2024-08-28T08:18:12.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T12:44:49.464Z","etag":null,"topics":[],"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/ashwanthkumar.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":"2024-08-27T14:26:01.000Z","updated_at":"2024-09-10T21:10:28.000Z","dependencies_parsed_at":"2024-11-07T06:40:27.286Z","dependency_job_id":"4563139b-c6a5-4ed4-9cdc-5d011b4f3b57","html_url":"https://github.com/ashwanthkumar/ip-lookup","commit_stats":null,"previous_names":["ashwanthkumar/ip-lookup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fip-lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fip-lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fip-lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fip-lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwanthkumar","download_url":"https://codeload.github.com/ashwanthkumar/ip-lookup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239456405,"owners_count":19641843,"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":[],"created_at":"2024-11-07T06:40:18.706Z","updated_at":"2025-11-05T10:30:30.171Z","avatar_url":"https://github.com/ashwanthkumar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ip-lookup\n\nCode to download the IpInfo free jsonl dataset and setup a lookup endpoint using sqlite as the backing store.\n\nIt supports indexing both ipv4 and ipv6 IPs and provide an endpoint:\n\n```\nGET /lookup/\u003cip_address\u003e\n```\n\nExample response:\n\n```\n{\n  \"ip\": \"35.154.199.208\",\n  \"country_name\": \"India\",\n  \"continent_name\": \"Asia\"\n}\n```\n\n## Usage\n\nBuild the binary locally using\n\n```\ngo mod download\ngo build .\n```\n\nRun it via Docker.\n\n```\ndocker run --restart=always -p 8080:8080 -v $(pwd):/app/data -e IP_DATA_URL=\"https://ipinfo.io/data/free/country.json.gz?token=your_actual_token\" ashwanthkumar/ip-lookup:latest\n```\n\n1. Update `your_actual_token` with the actual token from the IP Info Dashboard.\n2. Feel free to change the port where the app runs as required.\n3. Make sure you mount a local folder into `/app/data` directory.\n\n## Execution\n\nUpdate the `token` from your dashboard from https://ipinfo.io/account/data-downloads. We download and\nhost the \"Free IP to Country\" dataset.\n\n```\nIP_DATA_URL=\"https://ipinfo.io/data/free/country.json.gz?token=...\" ./ip-lookup\n```\n\n## License\nMIT\n\n\n## Credits\nThanks to Claude for generating most of the code in this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwanthkumar%2Fip-lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwanthkumar%2Fip-lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwanthkumar%2Fip-lookup/lists"}