{"id":34146670,"url":"https://github.com/goark/books-data","last_synced_at":"2026-03-09T22:02:57.410Z","repository":{"id":43075241,"uuid":"197772113","full_name":"goark/books-data","owner":"goark","description":"Search for Books Data","archived":false,"fork":false,"pushed_at":"2023-02-23T09:33:57.000Z","size":1374,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T13:17:23.803Z","etag":null,"topics":["amazon-product-advertising","aozora-bunko","golang","golang-application","openbd"],"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/goark.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":"2019-07-19T12:50:48.000Z","updated_at":"2022-03-20T08:18:48.000Z","dependencies_parsed_at":"2024-06-21T02:09:20.869Z","dependency_job_id":"2278ba8d-d02e-4cd4-a27f-e57b416214af","html_url":"https://github.com/goark/books-data","commit_stats":null,"previous_names":["spiegel-im-spiegel/books-data"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/goark/books-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fbooks-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fbooks-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fbooks-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fbooks-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goark","download_url":"https://codeload.github.com/goark/books-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fbooks-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30314401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["amazon-product-advertising","aozora-bunko","golang","golang-application","openbd"],"created_at":"2025-12-15T04:08:01.535Z","updated_at":"2026-03-09T22:02:57.405Z","avatar_url":"https://github.com/goark.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [books-data] -- Search for Books Data\n\n[![check vulns](https://github.com/goark/books-data/workflows/vulns/badge.svg)](https://github.com/goark/books-data/actions)\n[![lint status](https://github.com/goark/books-data/workflows/lint/badge.svg)](https://github.com/goark/books-data/actions)\n[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/goark/books-data/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/goark/books-data.svg)](https://github.com/goark/books-data/releases/latest)\n\nThis package is required Go 1.16 or later.\n\n**Migrated repository to [github.com/goark/books-data][books-data]**\n\n## Build and Install\n\n```\n$ go install github.com/goark/books-data@latest\n```\n\n### Binaries\n\nSee [latest release](https://github.com/goark/books-data/releases/latest).\n\n## Usage\n\n```\n$ books-data -h\nSearch for books data\n\nUsage:\n  books-data [flags]\n  books-data [command]\n\nAvailable Commands:\n  help        Help about any command\n  history     Lookup review data from history log\n  review      Make review data\n  search      Search for books data\n  version     Print the version number\n\nFlags:\n      --access-key string      Config: PA-API Access Key ID\n  -c, --aozora-card string     Aozora-bunko card no.\n  -a, --asin string            Amazon ASIN code\n      --associate-tag string   Config: PA-API Associate Tag\n      --config string          Config file (default /home/username/.config/books-data/config.yaml)\n      --debug                  for debug\n  -h, --help                   help for books-data\n  -i, --isbn string            ISBN code\n      --marketplace string     Config: PA-API Marketplace (default \"www.amazon.co.jp\")\n  -l, --review-log string      Config: Review log file (JSON format)\n      --secret-key string      Config: PA-API Secret Access Key\n  -t, --template-file string   Template file for formatted output\n\nUse \"books-data [command] --help\" for more information about a command.\n```\n\n### Config file\n\n```text\n$ cat ~/.config/books-data/config.yaml\nmarketplace: www.amazon.co.jp\nassociate-tag: mytag-20\naccess-key: AKIAIOSFODNN7EXAMPLE\nsecret-key: 1234567890\nreview-log: /home/username/review-log.json\n```\n\n### Search for books data\n\n```\n$ books-data search -h\nSearch for books data\n\nUsage:\n  books-data search [flags]\n\nFlags:\n  -h, --help   help for search\n      --raw    Output raw data from API\n\nGlobal Flags:\n      --access-key string      Config: PA-API Access Key ID\n  -c, --aozora-card string     Aozora-bunko card no.\n  -a, --asin string            Amazon ASIN code\n      --associate-tag string   Config: PA-API Associate Tag\n      --config string          Config file (default /home/username/.config/books-data/config.yaml)\n      --debug                  for debug\n  -i, --isbn string            ISBN code\n      --marketplace string     Config: PA-API Marketplace (default \"www.amazon.co.jp\")\n  -l, --review-log string      Config: Review log file (JSON format)\n      --secret-key string      Config: PA-API Secret Access Key\n  -t, --template-file string   Template file for formatted output\n\n$ books-data search -a 427406932X | jq .\n{\n  \"Type\": \"paapi\",\n  \"ID\": \"427406932X\",\n  \"Title\": \"リーン開発の現場 カンバンによる大規模プロジェクトの運営\",\n  \"URL\": \"https://www.amazon.co.jp/dp/427406932X?tag=mytag-22\u0026linkCode=ogi\u0026th=1\u0026psc=1\",\n  \"Image\": {\n    \"URL\": \"https://m.media-amazon.com/images/I/51llL1uygcL._SL160_.jpg\",\n    \"Height\": 160,\n    \"Width\": 116\n  },\n  \"ProductType\": \"単行本（ソフトカバー）\",\n  \"Creators\": [\n    {\n      \"Name\": \"Henrik Kniberg\",\n      \"Role\": \"著\"\n    },\n    {\n      \"Name\": \"角谷 信太郎\",\n      \"Role\": \"翻訳\"\n    },\n    {\n      \"Name\": \"市谷 聡啓\",\n      \"Role\": \"翻訳\"\n    },\n    {\n      \"Name\": \"藤原 大\",\n      \"Role\": \"翻訳\"\n    }\n  ],\n  \"Publisher\": \"オーム社\",\n  \"Codes\": [\n    {\n      \"Name\": \"ASIN\",\n      \"Value\": \"427406932X\"\n    },\n    {\n      \"Name\": \"EAN\",\n      \"Value\": \"9784274069321\"\n    },\n    {\n      \"Name\": \"ISBN\",\n      \"Value\": \"427406932X\"\n    }\n  ],\n  \"PublicationDate\": \"2013-10-26\",\n  \"LastRelease\": \"\",\n  \"Service\": {\n    \"Name\": \"PA-APIv5\",\n    \"URL\": \"https://affiliate.amazon.co.jp/assoc_credentials/home\"\n  }\n}\n```\n\n### Make review data\n\n```text\n$ books-data review -h\nMake review data\n\nUsage:\n  books-data review [flags] [description]\n\nFlags:\n      --bookpage-url string   URL of book page\n  -h, --help                  help for review\n      --image-url string      URL of book cover image\n      --pipe                  Import description from Stdin\n  -r, --rating int            Rating of product\n      --review-date string    Date of review\n\nGlobal Flags:\n      --access-key string      Config: PA-API Access Key ID\n  -c, --aozora-card string     Aozora-bunko card no.\n  -a, --asin string            Amazon ASIN code\n      --associate-tag string   Config: PA-API Associate Tag\n      --config string          Config file (default /home/username/.config/books-data/config.yaml)\n      --debug                  for debug\n  -i, --isbn string            ISBN code\n      --marketplace string     Config: PA-API Marketplace (default \"www.amazon.co.jp\")\n  -l, --review-log string      Config: Review log file (JSON format)\n      --secret-key string      Config: PA-API Secret Access Key\n  -t, --template-file string   Template file for formatted output\n\n$ books-data review -i 427406932X -r 5 \"This book is Interesting.\" | jq .\n{\n  \"Book\": {\n    \"Type\": \"openbd\",\n    \"ID\": \"9784274069321\",\n    \"Title\": \"リーン開発の現場 : カンバンによる大規模プロジェクトの運営\",\n    \"Image\": {\n      \"URL\": \"https://cover.openbd.jp/9784274069321.jpg\"\n    },\n    \"ProductType\": \"Book\",\n    \"Creators\": [\n      {\n        \"Name\": \"Kniberg, Henrik\"\n      },\n      {\n        \"Name\": \"オーム社\"\n      },\n      {\n        \"Name\": \"オーム社開発局\"\n      },\n      {\n        \"Name\": \"市谷 聡啓\"\n      },\n      {\n        \"Name\": \"藤原 大\"\n      },\n      {\n        \"Name\": \"角谷 信太郎\"\n      },\n      {\n        \"Name\": \"クニバーグ ヘンリック\"\n      }\n    ],\n    \"Publisher\": \"オーム社\",\n    \"Codes\": [\n      {\n        \"Name\": \"ISBN\",\n        \"Value\": \"9784274069321\"\n      }\n    ],\n    \"PublicationDate\": \"2013-10-01\",\n    \"LastRelease\": \"\",\n    \"Service\": {\n      \"Name\": \"openBD\",\n      \"URL\": \"https://openbd.jp/\"\n    }\n  },\n  \"Date\": \"2019-10-05\",\n  \"Rating\": 5,\n  \"Star\": [\n    true,\n    true,\n    true,\n    true,\n    true\n  ],\n  \"Description\": \"This book is Interesting.\"\n}\n\n$ cat ~/review-log.json\n[\n  {\n    \"Book\": {\n      \"Type\": \"openbd\",\n      \"ID\": \"9784274069321\",\n      \"Title\": \"リーン開発の現場 : カンバンによる大規模プロジェクトの運営\",\n      \"Image\": {\n        \"URL\": \"https://cover.openbd.jp/9784274069321.jpg\"\n      },\n      \"ProductType\": \"Book\",\n      \"Creators\": [\n        {\n          \"Name\": \"Kniberg, Henrik\"\n        },\n        {\n          \"Name\": \"オーム社\"\n        },\n        {\n          \"Name\": \"オーム社開発局\"\n        },\n        {\n          \"Name\": \"市谷 聡啓\"\n        },\n        {\n          \"Name\": \"藤原 大\"\n        },\n        {\n          \"Name\": \"角谷 信太郎\"\n        },\n        {\n          \"Name\": \"クニバーグ ヘンリック\"\n        }\n      ],\n      \"Publisher\": \"オーム社\",\n      \"Codes\": [\n        {\n          \"Name\": \"ISBN\",\n          \"Value\": \"9784274069321\"\n        }\n      ],\n      \"PublicationDate\": \"2013-10-01\",\n      \"LastRelease\": \"\",\n      \"Service\": {\n        \"Name\": \"openBD\",\n        \"URL\": \"https://openbd.jp/\"\n      }\n    },\n    \"Date\": \"2019-10-05\",\n    \"Rating\": 5,\n    \"Star\": [\n      true,\n      true,\n      true,\n      true,\n      true\n    ],\n    \"Description\": \"This book is Interesting.\"\n  }\n]\n```\n\n### Lookup review data from history\n\n```text\n$ books-data history -h\nLookup review data from history log\n\nUsage:\n  books-data history [flags]\n\nFlags:\n  -h, --help   help for history\n\nGlobal Flags:\n      --access-key string      Config: PA-API Access Key ID\n  -c, --aozora-card string     Aozora-bunko card no.\n  -a, --asin string            Amazon ASIN code\n      --associate-tag string   Config: PA-API Associate Tag\n      --config string          Config file (default /home/username/.config/books-data/config.yaml)\n      --debug                  for debug\n  -i, --isbn string            ISBN code\n      --marketplace string     Config: PA-API Marketplace (default \"www.amazon.co.jp\")\n  -l, --review-log string      Config: Review log file (JSON format)\n      --secret-key string      Config: PA-API Secret Access Key\n  -t, --template-file string   Template file for formatted output\n\n$ books-data history -i 9784274069321 | jq .\n{\n  \"Book\": {\n    \"Type\": \"openbd\",\n    \"ID\": \"9784274069321\",\n    \"Title\": \"リーン開発の現場 : カンバンによる大規模プロジェクトの運営\",\n    \"Image\": {\n      \"URL\": \"https://cover.openbd.jp/9784274069321.jpg\"\n    },\n    \"ProductType\": \"Book\",\n    \"Creators\": [\n      {\n        \"Name\": \"Kniberg, Henrik\"\n      },\n      {\n        \"Name\": \"オーム社\"\n      },\n      {\n        \"Name\": \"オーム社開発局\"\n      },\n      {\n        \"Name\": \"市谷 聡啓\"\n      },\n      {\n        \"Name\": \"藤原 大\"\n      },\n      {\n        \"Name\": \"角谷 信太郎\"\n      },\n      {\n        \"Name\": \"クニバーグ ヘンリック\"\n      }\n    ],\n    \"Publisher\": \"オーム社\",\n    \"Codes\": [\n      {\n        \"Name\": \"ISBN\",\n        \"Value\": \"9784274069321\"\n      }\n    ],\n    \"PublicationDate\": \"2013-10-01\",\n    \"LastRelease\": \"\",\n    \"Service\": {\n      \"Name\": \"openBD\",\n      \"URL\": \"https://openbd.jp/\"\n    }\n  },\n  \"Date\": \"2019-10-05\",\n  \"Rating\": 5,\n  \"Star\": [\n    true,\n    true,\n    true,\n    true,\n    true\n  ],\n  \"Description\": \"This book is Interesting.\"\n}\n```\n\n### Formatted output by template file\n\n```text\n$ books-data search -a 427406932X -t testdata/book-template/template.bib.txt\n@BOOK{Book:427406932X,\n    TITLE = \"リーン開発の現場 カンバンによる大規模プロジェクトの運営\",\n    AUTHOR = \"Henrik Kniberg (著) and 角谷 信太郎 (翻訳) and 市谷 聡啓 (翻訳) and 藤原 大 (翻訳)\",\n    PUBLISHER = {オーム社},\n    YEAR = 2013\n}\n\n$ books-data history -i 9784274069321 -t testdata/review-template/template.html\n\u003cdiv class=\"hreview\"\u003e\n  \u003cdiv class=\"photo\"\u003e\u003cimg src=\"https://cover.openbd.jp/9784274069321.jpg\" alt=\"photo\"\u003e\u003c/div\u003e\n  \u003cdl class=\"fn\"\u003e\n    \u003cdt\u003eリーン開発の現場 : カンバンによる大規模プロジェクトの運営\u003c/dt\u003e\n    \u003cdd\u003eKniberg, Henrik, オーム社, オーム社開発局, 市谷 聡啓, 藤原 大, 角谷 信太郎, クニバーグ ヘンリック\u003c/dd\u003e\n    \u003cdd\u003eオーム社 2013-10-01\u003c/dd\u003e\n    \u003cdd\u003eBook\u003c/dd\u003e\n    \u003cdd\u003e9784274069321 (ISBN)\u003c/dd\u003e\n    \u003cdd\u003eRating\u003cabbr class=\"rating fa-sm\" title=\"5\"\u003e\u0026nbsp;\u003ci class=\"fas fa-star\"\u003e\u003c/i\u003e\u0026nbsp;\u003ci class=\"fas fa-star\"\u003e\u003c/i\u003e\u0026nbsp;\u003ci class=\"fas fa-star\"\u003e\u003c/i\u003e\u0026nbsp;\u003ci class=\"fas fa-star\"\u003e\u003c/i\u003e\u0026nbsp;\u003ci class=\"fas fa-star\"\u003e\u003c/i\u003e\u003c/abbr\u003e\u003c/dd\u003e\n  \u003c/dl\u003e\n  \u003cp class=\"description\"\u003eThis book is Interesting.\u003c/p\u003e\n  \u003cp class=\"powered-by\" \u003ereviewed by \u003ca href='#maker' class='reviewer'\u003eSpiegel\u003c/a\u003e on \u003cabbr class=\"dtreviewed\" title=\"2019-10-05\"\u003e2019-10-05\u003c/abbr\u003e (powered by \u003ca href=\"https://openbd.jp/\" \u003eopenBD\u003c/a\u003e)\u003c/p\u003e\n\u003c/div\u003e\n```\n\n## Modules Requirement Graph\n\n[![dependency.png](./dependency.png)](./dependency.png)\n\n## Reference\n\n- [DDRBoxman/go-amazon-product-api: Wrapper for the Amazon Product Advertising API](https://github.com/DDRBoxman/go-amazon-product-api)\n- [seihmd/openbd: openBD API written by Go](https://github.com/seihmd/openbd)\n    - [openBDのAPIライブラリをGoでつくりました - Qiita](https://qiita.com/seihmd/items/d1f8b3b54cbc93346d78)\n- [goark/aozora-api: APIs for Aozora-bunko RESTful Service by Golang](https://github.com/goark/aozora-api)\n\n[books-data]: https://github.com/goark/books-data \"goark/books-data: Search for Books Data\"\n[openBD]: https://openbd.jp/\n[PA-API]: https://affiliate.amazon.co.jp/assoc_credentials/home\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoark%2Fbooks-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoark%2Fbooks-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoark%2Fbooks-data/lists"}