{"id":13582139,"url":"https://github.com/likexian/whois","last_synced_at":"2025-04-06T13:32:53.583Z","repository":{"id":19687852,"uuid":"22942186","full_name":"likexian/whois","owner":"likexian","description":"Whois client for domain and ip whois information query in Go(Golang).","archived":false,"fork":false,"pushed_at":"2025-02-21T01:53:23.000Z","size":121,"stargazers_count":420,"open_issues_count":7,"forks_count":79,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-21T02:35:38.954Z","etag":null,"topics":["domain","golang","ip","query","whois"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/likexian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2014-08-14T05:23:49.000Z","updated_at":"2025-02-21T01:53:28.000Z","dependencies_parsed_at":"2025-02-21T02:35:43.284Z","dependency_job_id":"17e74470-4c5f-4f9e-b03f-dc2404f890e9","html_url":"https://github.com/likexian/whois","commit_stats":null,"previous_names":["likexian/whois-go"],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likexian%2Fwhois","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likexian%2Fwhois/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likexian%2Fwhois/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likexian%2Fwhois/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/likexian","download_url":"https://codeload.github.com/likexian/whois/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247488859,"owners_count":20947015,"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":["domain","golang","ip","query","whois"],"created_at":"2024-08-01T15:02:26.961Z","updated_at":"2025-04-06T13:32:53.257Z","avatar_url":"https://github.com/likexian.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Whois\n\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)\n[![GoDoc](https://pkg.go.dev/badge/github.com/likexian/whois.svg)](https://pkg.go.dev/github.com/likexian/whois)\n[![Go Report Card](https://goreportcard.com/badge/github.com/likexian/whois)](https://goreportcard.com/report/github.com/likexian/whois)\n[![Build Status](https://github.com/likexian/whois/actions/workflows/gotest.yaml/badge.svg)](https://github.com/likexian/whois/actions/workflows/gotest.yaml)\n[![Code Cover](https://release.likexian.com/whois/coverage.svg)](https://github.com/likexian/whois/actions/workflows/gotest.yaml)\n\nWhois is a simple Go module for domain and ip whois information query.\n\n## Overview\n\nAll of domain, IP include IPv4 and IPv6, ASN are supported.\n\nYou can directly using the binary distributions whois, follow [whois release tool](cmd/whois).\n\nOr you can do development by using this golang module as below.\n\n## Installation\n\n```shell\ngo get -u github.com/likexian/whois\n```\n\n## Importing\n\n```go\nimport (\n    \"github.com/likexian/whois\"\n)\n```\n\n## Documentation\n\nVisit the docs on [GoDoc](https://pkg.go.dev/github.com/likexian/whois)\n\n## Example\n\n### whois query for domain\n\n```go\nresult, err := whois.Whois(\"likexian.com\")\nif err == nil {\n    fmt.Println(result)\n}\n```\n\n### whois query for IPv6\n\n```go\nresult, err := whois.Whois(\"2001:dc7::1\")\nif err == nil {\n    fmt.Println(result)\n}\n```\n\n### whois query for IPv4\n\n```go\nresult, err := whois.Whois(\"1.1.1.1\")\nif err == nil {\n    fmt.Println(result)\n}\n```\n\n### whois query for ASN\n\n```go\n// or whois.Whois(\"AS60614\")\nresult, err := whois.Whois(\"60614\")\nif err == nil {\n    fmt.Println(result)\n}\n```\n\n## Whois information parsing\n\nPlease refer to [whois-parser](https://github.com/likexian/whois-parser)\n\n## License\n\nCopyright 2014-2024 [Li Kexian](https://www.likexian.com/)\n\nLicensed under the Apache License 2.0\n\n## Donation\n\nIf this project is helpful, please share it with friends.\n\nIf you want to thank me, you can [give me a cup of coffee](https://www.likexian.com/donate/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikexian%2Fwhois","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikexian%2Fwhois","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikexian%2Fwhois/lists"}