{"id":41844590,"url":"https://github.com/molizz/goip","last_synced_at":"2026-01-25T09:42:51.480Z","repository":{"id":79979529,"uuid":"132451052","full_name":"molizz/goip","owner":"molizz","description":"golang编写的获取用户ip地址（国家，省份，城市等）数据的库","archived":false,"fork":false,"pushed_at":"2021-01-13T04:21:06.000Z","size":2075,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T17:57:32.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/molizz.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-05-07T11:30:05.000Z","updated_at":"2025-07-19T05:29:18.000Z","dependencies_parsed_at":"2023-06-19T07:10:47.926Z","dependency_job_id":null,"html_url":"https://github.com/molizz/goip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/molizz/goip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molizz%2Fgoip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molizz%2Fgoip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molizz%2Fgoip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molizz%2Fgoip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/molizz","download_url":"https://codeload.github.com/molizz/goip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molizz%2Fgoip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28750900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T09:00:19.176Z","status":"ssl_error","status_checked_at":"2026-01-25T09:00:04.131Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-25T09:42:50.900Z","updated_at":"2026-01-25T09:42:51.476Z","avatar_url":"https://github.com/molizz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## goip\n\n将各大ip提供商进行了一定的封装，直接使用.\n\n也支持本地数据库接口(AddLocal())\n\n**推荐使用IPIP(每个IP限制每秒5次,比较稳定)**\n\n\n### 注意\n\n高德（amap）只支持国内ip\n\n### 使用方式\n\n\n`go get github.com/molizz/goip`\n\n```golang\n\nimport \"github.com/molizz/goip\"\n\naddress, err := goip.AddTaobao().AddTencent(\"key\").GetLocation(\"35.185.191.24\")\nfmt.Println(address.City)\n\n```\n\n上面添加了2个平台，当淘宝的无法使用时，将自动使用腾讯的。\n\n因为大部分平台都是有并发限制的。\n\n所以建议获取ip时操作时，请异步处理（如果你的并发比较高的话）\n\n### 有的平台需要Key\n\n有的平台是需要申请key的\n\n- 腾讯地图api： http://lbs.qq.com/webservice_v1/guide-ip.html\n- 高德地图api： http://lbs.amap.com/api/webservice/guide/api/ipconfig\n\n请自行申请","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolizz%2Fgoip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmolizz%2Fgoip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolizz%2Fgoip/lists"}