Feature Request: Add 国立国会図書館 (NDL) Search API as a Japanese metadata source #609
Replies: 2 comments
-
🔗 Related PRs#85 - fix(metadata): fix metadata fetching relying for filename "first" instead of better fields like ISBN in Goodreads/Bookdrop [merged] 📝 Issue PlannerCheck the box below or use the
🧪 Issue enrichment is currently in open beta.You can configure auto-planning by selecting labels in the issue_enrichment configuration. To disable automatic issue enrichment, add the following to your issue_enrichment:
auto_enrich:
enabled: false💬 Have feedback or questions? Drop into our discord! |
Beta Was this translation helpful? Give feedback.
-
|
I'm a Japanese user who relies on Grimmory to manage a large personal book collection. I don't have a programming background and cannot implement this myself, but I believe I can contribute by doing the research legwork — testing the API directly and documenting exactly what an implementer would need to know. I hope this saves whoever takes on this feature some time. I've tested the NDL Search API hands-on from my own server and want to share what I found. API Endpoints https://ndlsearch.ndl.go.jp/api/opensearch?isbn={isbn13} Keyword search: https://ndlsearch.ndl.go.jp/api/opensearch?title={title}&creator={author}&cnt={count} No authentication required No cover image field exists in the NDL API response. This is a known limitation I mentioned in the original issue. Data Cleaning Notes Birth/death years are often appended: 谷川, 流, 1970- → strip trailing , 1970- Hyphens are present: 4-04-429201-9 → strip hyphens before storing 307p → extract 307 Multiple elements can appear: primary publisher + distributor Well-indexed books return 1 result cleanly (confirmed with 9784044292010) Keep: 図書 (book / printed matter) NDL Detail Page URL Pattern https://ndlsearch.ndl.go.jp/books/R100000002-I{NDLBibID} I'm happy to run additional API tests or answer any questions if it would help move this forward. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What's Your Idea?
Add the 国立国会図書館 (National Diet Library / NDL) Search API as a metadata provider for Japanese books.
NDL provides a free, public API that supports both ISBN-based and keyword-based lookups:
https://ndlsearch.ndl.go.jp/help/api
Why Would This Be Helpful?
Amazon metadata is currently broken for Japanese users due to anti-scraping measures that return 503 errors regardless of cookie configuration (see #343). Google Books and Goodreads have very poor coverage of Japanese titles.
NDL is Japan's legal deposit library — all publishers are required by law to submit every publication they release. This means NDL's coverage of Japanese books is comprehensive and reliable.
Unlike Amazon, NDL's API is free, stable, and requires no authentication, making it a low-maintenance addition that would significantly improve the experience for Japanese users.
Anything Else? (Optional)
NDL API endpoint example (ISBN lookup):
https://ndlsearch.ndl.go.jp/api/opensearch?isbn=9784488725006
NDL API endpoint example (keyword search):
https://ndlsearch.ndl.go.jp/api/opensearch?title=銀河英雄伝説&creator=田中芳樹
The response is Dublin Core XML, which is straightforward to parse.
Note: NDL metadata quality is lower than Amazon — cover images may be missing or low quality, and descriptions are sometimes absent. However, basic fields (title, author, publisher, ISBN, publication date) are consistently available.
Want to Help Out?
Yes! I'd love to help implement this
Have You Considered Any Alternatives? (Optional)
Amazon (broken due to 503, see #343) and Google Books (poor Japanese coverage) are the only current options. OpenBD, another Japanese book API, shut down in 2023 and is no longer available.
Before Submitting
Beta Was this translation helpful? Give feedback.
All reactions