Looks up bibliographic records and digitized volumes in HathiTrust's 17M+ collection by ISBN, OCLC, LCCN, ISSN, or HathiTrust ID. Useful for checking digitization status, library holdings, or cross-referencing identifiers from other catalogs.
Ships in hathitrust-catalog. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Look up records and digitized volumes in HathiTrust's collection of 17M+ volumes from major research libraries.
HathiTrust's Bibliographic API retrieves records by known identifiers only. There is no keyword or title search. You must have an ISBN, OCLC number, LCCN, ISSN, or HathiTrust ID.
WORKS: https://catalog.hathitrust.org/api/volumes/brief/isbn/0140449264.json
NOT POSSIBLE: https://catalog.hathitrust.org/api/volumes/brief/search?q=hamlet
If you only have a title/author, search another catalog first (LibraryCloud, Library of Congress) to get an ISBN or OCLC number, then look it up here.
| Endpoint | Returns | Use when |
|---|---|---|
/api/volumes/brief/ | Metadata + items (no MARC) | You just need titles, ISBNs, holdings, digital access links |
/api/volumes/full/ | Same + complete MARC-XML | You need full cataloging data |
When no record matches, the API returns {"records": {}, "items": []} with HTTP 200 — not a 404. Always check if records is empty.
Use the multi-ID endpoint to batch lookups:
/api/volumes/brief/json/isbn:0140449264|oclc:228668653
Pipe-separated as type:value. Max 20 per request.
| Type | Example | Notes |
|---|---|---|
isbn | 0140449264 or 9780140449266 | ISBN-10 or ISBN-13, digits only (+ trailing X) |
oclc | 228668653 | OCLC number, digits only |
lccn | 72081773 | URL-encode spaces; do not encode / (404) |
issn | 03785955 | Digits only |
htid | mdp.39015058510069 | HathiTrust volume ID |
recordnumber | 000578050 | 9-digit HathiTrust record number |
{
"records": {
"009058846": {
"recordURL": "https://catalog.hathitrust.org/Record/009058846",
"titles": ["The Odyssey / Homer ; translated by Robert Fagles."],
"isbns": ["0140268863", "9780140268867"],
"oclcs": ["34228839"],
"lccns": ["96017900"],
"publishDates": ["1997"]
}
},
"items": [
{
"orig": "University of Michigan",
"htid": "mdp.39015042182054",
"itemURL": "https://babel.hathitrust.org/cgi/pt?id=mdp.39015042182054",
"rightsCode": "ic",
"usRightsString": "Limited (search-only)",
"lastUpdate": "20240115",
"enumcron": false
}
]
}
Key fields:
rightsCode: the HathiTrust rights code. Open (full view) in the US: pd, pdus, ic-world, und-world, and all cc-* codes. pdus = public domain in the US only; readers outside the US cannot read it in full. Search only: ic, op, orph, orphcand, und, umall, nobody, pd-pvt, supp, and icus (in copyright in the US; open outside the US). Many pre-1929 Chinese books are pdus.usRightsString: "Full view" (lowercase v in the live API) or "Limited (search-only)". It is for US readers. Compare it case-insensitively.itemURL: Direct link to the HathiTrust page-turner viewerenumcron: Volume/issue info (e.g., "vol. 3") or falseUse scripts/hathitrust_api.py for programmatic access (zero dependencies):
from scripts.hathitrust_api import HathiTrustAPI
ht = HathiTrustAPI()
# Single lookup
record = ht.lookup_isbn("0140449264")
# Multiple identifiers at once
results = ht.batch_lookup([
("isbn", "0140449264"),
("oclc", "228668653"),
("lccn", "96017900"),
])
# Get full MARC-XML
record = ht.lookup_isbn("0140449264", full=True)
marc = ht.get_marc_xml(record)
# Check if digitized and readable in full
for item in ht.get_items(record):
print(f"{item['orig']}: {item['rightsCode']} {item['usRightsString']} — {item['itemURL']}")
ht.has_full_view(record) # True if any volume is full view for US readers
ht.get_full_view_url(record) # link to the first full-view volume, or None
ht.has_full_view(record, us=False) # for readers outside the US (pdus = no, icus = yes)
# Title in the original script (Chinese, Japanese, ...). The `titles` field is
# romanized only; the original script is in MARC field 880, so use full=True.
full = ht.lookup_oclc("34674216", full=True)
ht.get_original_title(full) # '欽定四庫全書總目 : 二〇〇卷, 卷首四卷'
# Summarize
print(ht.summarize(record))
This example uses two skills. Both scripts folders must be on the Python path, for example (adjust the paths to where the skills are installed):
import sys
sys.path.insert(0, "path/to/harvard-library-catalog/scripts")
sys.path.insert(0, "path/to/hathitrust-catalog/scripts")
# 1. Search Harvard for a title
from harvard_api import HarvardLibraryAPI
harvard = HarvardLibraryAPI()
results = harvard.search(title="dream of the red chamber")
isbn = harvard.get_identifiers(results[0]).get("isbn")
# 2. Check HathiTrust for digital version
from hathitrust_api import HathiTrustAPI
ht = HathiTrustAPI()
record = ht.lookup_isbn(isbn)
if record and ht.has_full_view(record):
print("Full text available:", ht.get_full_view_url(record))
access-control-allow-origin: *)references/api_reference.md — Complete API spec with all identifier types and response fieldsscripts/hathitrust_api.py — Python client with batch lookups, MARC extraction, and access checkingReport a problem. This skill is part of the public repository kltng/humanities-skills. If it fails (an API changed, a script errors, or these instructions are wrong), report it as a GitHub issue:
gh issue list --repo kltng/humanities-skills --state all --search "hathitrust-catalog"gh issue create --repo kltng/humanities-skills --label bug --title "[hathitrust-catalog] <short summary>" --body "<details>". Without gh, give the user this link: https://github.com/kltng/humanities-skills/issues/new?template=skill-problem.ymlCredit the source. The records come from HathiTrust (https://www.hathitrust.org), a library partnership hosted at the University of Michigan. Its metadata sharing and use policy shares the bibliographic metadata it owns under CC0 and asks for attribution as a courtesy when this is possible. Say "data from HathiTrust" and give the record or volume URL. The Bibliographic API is meant for a small number of items at a time; for bulk work HathiTrust points to its Hathifiles and OAI feed. The scanned volumes have their own rights (rightsCode), and many also credit the library that digitized them; keep that credit when you quote or reproduce pages.
Cite. If this skill helped work that is published, please cite it, together with the source credited above:
Tang, Kwok-leong. humanities-skills: hathitrust-catalog (version ). GitHub, . https://github.com/kltng/humanities-skills
When you help a user write up results that relied on this skill, remind them once about this citation and the credit above.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/hathitrust-catalog:hathitrust-catalogfrom hathitrust-catalog
npx claudepluginhub kltng/humanities-skills --plugin hathitrust-catalogOther plugins' skills for the same job