skills/43-wentorai-research-plugins/skills/literature/search/open-library-api/SKILL.md
Search and access book metadata via the Open Library API
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research open-library-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Open Library (by the Internet Archive) catalogs every book ever published — 40M+ editions, 20M+ unique works. The API provides book search, ISBN/OCLC lookup, cover images, and reading access for 2M+ borrowable ebooks. Particularly useful for monograph discovery, edition tracking, and bibliographic verification. Free, no authentication required.
# Full-text search
curl "https://openlibrary.org/search.json?q=machine+learning&limit=20"
# Search by title
curl "https://openlibrary.org/search.json?title=deep+learning&limit=10"
# Search by author
curl "https://openlibrary.org/search.json?author=goodfellow&title=deep+learning"
# Filter by subject
curl "https://openlibrary.org/search.json?q=statistics&subject=data+analysis"
# Filter by publication year
curl "https://openlibrary.org/search.json?q=artificial+intelligence&first_publish_year=2020"
# Sort by edition count
curl "https://openlibrary.org/search.json?q=calculus&sort=editions"
# Get work (canonical book entity)
curl "https://openlibrary.org/works/OL45804W.json"
# Get edition
curl "https://openlibrary.org/books/OL7353617M.json"
# Get by ISBN
curl "https://openlibrary.org/isbn/9780262035613.json"
# Bibliographic data via Books API
curl "https://openlibrary.org/api/books?bibkeys=ISBN:9780262035613&format=json&jscmd=data"
# By ISBN (S/M/L sizes)
https://covers.openlibrary.org/b/isbn/9780262035613-M.jpg
# By OLID
https://covers.openlibrary.org/b/olid/OL7353617M-L.jpg
# Get author
curl "https://openlibrary.org/authors/OL34184A.json"
# Search authors
curl "https://openlibrary.org/search/authors.json?q=hinton"
# Author's works
curl "https://openlibrary.org/authors/OL34184A/works.json?limit=20"
| Parameter | Description | Example |
|-----------|-------------|---------|
| q | General search | q=neural+networks |
| title | Title search | title=deep+learning |
| author | Author search | author=bengio |
| subject | Subject filter | subject=computer+science |
| isbn | ISBN lookup | isbn=9780262035613 |
| first_publish_year | Publication year | first_publish_year=2020 |
| limit | Results (max 100) | limit=50 |
| offset | Pagination | offset=50 |
| sort | Sort order | new, editions, old |
| fields | Return fields | key,title,author_name |
{
"numFound": 1250,
"docs": [
{
"key": "/works/OL45804W",
"title": "Deep Learning",
"author_name": ["Ian Goodfellow", "Yoshua Bengio", "Aaron Courville"],
"first_publish_year": 2016,
"isbn": ["9780262035613"],
"publisher": ["MIT Press"],
"subject": ["Machine learning", "Neural networks"],
"edition_count": 8,
"cover_i": 8739161,
"ebook_access": "borrowable"
}
]
}
import requests
BASE_URL = "https://openlibrary.org"
def search_books(query: str, limit: int = 20,
subject: str = None) -> list:
"""Search Open Library for books."""
params = {"q": query, "limit": limit}
if subject:
params["subject"] = subject
resp = requests.get(f"{BASE_URL}/search.json", params=params)
resp.raise_for_status()
data = resp.json()
results = []
for doc in data.get("docs", []):
results.append({
"key": doc.get("key"),
"title": doc.get("title"),
"authors": doc.get("author_name", []),
"year": doc.get("first_publish_year"),
"publisher": doc.get("publisher", [None])[0],
"isbn": doc.get("isbn", [None])[0],
"editions": doc.get("edition_count", 0),
"subjects": doc.get("subject", [])[:5],
"ebook": doc.get("ebook_access"),
})
return results
def get_by_isbn(isbn: str) -> dict:
"""Look up a book by ISBN."""
resp = requests.get(
f"{BASE_URL}/api/books",
params={
"bibkeys": f"ISBN:{isbn}",
"format": "json",
"jscmd": "data",
},
)
resp.raise_for_status()
data = resp.json()
return data.get(f"ISBN:{isbn}", {})
def get_author_works(author_key: str, limit: int = 20) -> list:
"""Get works by an author."""
resp = requests.get(
f"{BASE_URL}/authors/{author_key}/works.json",
params={"limit": limit},
)
resp.raise_for_status()
return resp.json().get("entries", [])
# Example: search CS textbooks
books = search_books("algorithms data structures",
subject="computer science")
for b in books[:5]:
print(f"[{b['year']}] {b['title']} — {', '.join(b['authors'][:2])}")
print(f" Publisher: {b['publisher']} | Editions: {b['editions']}")
# Example: ISBN lookup
info = get_by_isbn("9780262035613")
print(f"Title: {info.get('title')}")
print(f"URL: {info.get('url')}")
tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.