{"id":25411708,"url":"https://github.com/koho/geonet","last_synced_at":"2025-04-14T08:29:22.604Z","repository":{"id":107982918,"uuid":"539373534","full_name":"koho/geonet","owner":"koho","description":"Geolocation Networking Data","archived":false,"fork":false,"pushed_at":"2025-04-11T01:10:59.000Z","size":187,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T02:27:34.241Z","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/koho.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,"zenodo":null}},"created_at":"2022-09-21T08:02:53.000Z","updated_at":"2022-09-21T08:05:22.000Z","dependencies_parsed_at":"2023-12-08T01:33:36.005Z","dependency_job_id":"c1ef2cb1-518d-4483-88bf-ede57cd61614","html_url":"https://github.com/koho/geonet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koho%2Fgeonet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koho%2Fgeonet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koho%2Fgeonet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koho%2Fgeonet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koho","download_url":"https://codeload.github.com/koho/geonet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248845382,"owners_count":21170756,"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":"2025-02-16T10:19:19.793Z","updated_at":"2025-04-14T08:29:22.571Z","avatar_url":"https://github.com/koho.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geolocation Networking Data\n\n## Data source\n\n| Item    | Source                                                                               |\n|---------|--------------------------------------------------------------------------------------|\n| geoip   | https://github.com/v2fly/geoip/releases/latest/download/geoip.dat                    |\n| geosite | https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat |\n\n## Common query parameters\n\n| Query   | Type   | Description    |\n|---------|--------|----------------|\n| country | string | IP Geolocation |\n| format  | string | Output format  |\n\n## Formatters\n\n### `text` formatter\n\nNo other options\n\n### `shell` formatter\n\n| Query  | Type   | Description               |\n|--------|--------|---------------------------|\n| opt    | string | Options for shell command |\n\n### `bind` formatter\n\n| Query   | Type   | Description                   |\n|---------|--------|-------------------------------|\n| include | string | File path of the zone options |\n\n### `dnsmasq` formatter\n\n| Query | Type   | Description        |\n|-------|--------|--------------------|\n| dns   | string | DNS server address |\n\n### `ros` formatter\n\n| Query | Type   | Description     |\n|-------|--------|-----------------|\n| gw    | string | Gateway address |\n| table | string | Routing table   |\n\n## API\n\n### geoip\n\n| Query | Type | Description                |\n|-------|------|----------------------------|\n| type  | int  | `4` for IPv4; `6` for IPv6 |\n\nSupported formatters:\n\n- `text`\n- `shell`\n- `ros`\n\n```shell\ncurl http://127.0.0.1:8080/geoip?country=CN\u0026type=4\u0026format=shell\u0026opt=dev%20pppoe-wan\n```\n\n### geosite\n\nSupported formatters:\n\n- `bind`\n- `dnsmasq`\n\n```shell\ncurl http://127.0.0.1:8080/geosite?country=CN\u0026format=bind\u0026include=/etc/bind/named.china.zones\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoho%2Fgeonet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoho%2Fgeonet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoho%2Fgeonet/lists"}