{"id":13613816,"url":"https://github.com/osamingo/go-kenall","last_synced_at":"2025-07-26T16:05:37.192Z","repository":{"id":41951468,"uuid":"337000750","full_name":"osamingo/go-kenall","owner":"osamingo","description":"Unofficially kenall (ケンオール) client written by Go","archived":false,"fork":false,"pushed_at":"2025-03-22T15:14:33.000Z","size":104,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T02:11:01.648Z","etag":null,"topics":["client","go","kenall","postalcode"],"latest_commit_sha":null,"homepage":"https://kenall.jp","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osamingo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"osamingo","custom":"https://paypal.me/osamingo"}},"created_at":"2021-02-08T08:01:08.000Z","updated_at":"2025-03-22T13:13:32.000Z","dependencies_parsed_at":"2025-05-12T13:42:02.370Z","dependency_job_id":"28243ec9-9094-4307-9f2c-a93d633c4a98","html_url":"https://github.com/osamingo/go-kenall","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/osamingo/go-kenall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osamingo%2Fgo-kenall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osamingo%2Fgo-kenall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osamingo%2Fgo-kenall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osamingo%2Fgo-kenall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osamingo","download_url":"https://codeload.github.com/osamingo/go-kenall/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osamingo%2Fgo-kenall/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267191036,"owners_count":24050318,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["client","go","kenall","postalcode"],"created_at":"2024-08-01T20:00:53.921Z","updated_at":"2025-07-26T16:05:37.152Z","avatar_url":"https://github.com/osamingo.png","language":"Go","funding_links":["https://github.com/sponsors/osamingo","https://paypal.me/osamingo"],"categories":["Go"],"sub_categories":[],"readme":"# go-kenall\n\n[![CI](https://github.com/osamingo/go-kenall/workflows/CI/badge.svg)](https://github.com/osamingo/go-kenall/actions?query=workflow%3ACI)\n[![codecov](https://codecov.io/gh/osamingo/go-kenall/branch/main/graph/badge.svg?token=gUDT8ydUMm)](https://codecov.io/gh/osamingo/go-kenall)\n[![Go Report Card](https://goreportcard.com/badge/github.com/osamingo/go-kenall/v2)](https://goreportcard.com/report/github.com/osamingo/go-kenall/v2)\n[![Go Reference](https://pkg.go.dev/badge/github.com/osamingo/go-kenall.svg)](https://pkg.go.dev/github.com/osamingo/go-kenall/v2)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/osamingo/go-kenall/blob/main/LICENSE)\n\n## About\n\nUnofficially [kenall](https://kenall.jp/) (ケンオール) client written by Go.\n\n## Install\n\n```shell\n$ go get github.com/osamingo/go-kenall/v2@latest\n```\n\n## APIs supported by this library\n\n- [郵便番号検索API](https://kenall.jp/docs/api-introduction/#%E9%83%B5%E4%BE%BF%E7%95%AA%E5%8F%B7%E6%A4%9C%E7%B4%A2api)\n- [住所正規化API](https://kenall.jp/docs/API/postalcode/#%E4%BD%8F%E6%89%80%E6%AD%A3%E8%A6%8F%E5%8C%96%E6%A9%9F%E8%83%BD)\n- [市区町村API](https://kenall.jp/docs/api-introduction/#%E5%B8%82%E5%8C%BA%E7%94%BA%E6%9D%91api)\n- [日本の祝日API](https://kenall.jp/docs/API/holidays/)\n- [法定休日確認API](https://kenall.jp/docs/API/businessday/)\n- [自己IPアドレス確認API](https://kenall.jp/docs/API/whoami/#get-whoami)\n- [法人番号検索API](https://kenall.jp/docs/api-introduction/#%E6%B3%95%E4%BA%BA%E7%95%AA%E5%8F%B7%E6%A4%9C%E7%B4%A2api)\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/osamingo/go-kenall/v2\"\n)\n\nfunc main() {\n\tcli, err := kenall.NewClient(os.Getenv(\"KENALL_AUTHORIZATION_TOKEN\"))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tresAddr, err := cli.GetAddress(context.Background(), \"1000001\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\taddr := resAddr.Addresses[0]\n\tfmt.Println(addr.Prefecture, addr.City, addr.Town)\n\t// Output: 東京都 千代田区 千代田\n\n\tresCity, err := cli.GetCity(context.Background(), \"13\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tcity := resCity.Cities[0]\n\tfmt.Println(city.Prefecture, city.City)\n\t// Output: 東京都 千代田区\n\n\tres, err := cli.GetCorporation(context.Background(), \"7000012050002\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tcorp := res.Corporation\n\tfmt.Println(corp.PrefectureName, corp.CityName) \n\t// Output: 東京都 千代田区\n}\n```\n\n## Articles\n\n- [ケンオール通信第1号](https://blog.kenall.jp/entry/kenall-newsletter-vol1)\n  - This library has been featured on the official blog 🎉\n\n## License\n\nReleased under the [MIT License](https://github.com/osamingo/go-kenall/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosamingo%2Fgo-kenall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosamingo%2Fgo-kenall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosamingo%2Fgo-kenall/lists"}