{"api":{"id":"api_9ad8146cc2dfce1e4bfa8471","slug":"open-library-subjects","name":"Books by Subject API","description":"Books filed under any Open Library subject, such as science fiction or cooking: work id, title, authors, first publish year, edition count, cover, full-text availability and the work's own subject tags, ranked by edition count, newest, oldest, rating or reading lists, with an optional publish-year range.","kind":"ready_made","visibility":"public","domain":"openlibrary.org","source_url":"https://openlibrary.org/subjects","category":"media","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":18,"created_at":"2026-12-06T03:33:09.242Z","updated_at":"2026-12-06T03:33:09.242Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"subject","type":"string","description":"The subject the book was listed under, as Open Library's key, such as science_fiction.","required":true,"coverage":1,"example":"science_fiction"},{"name":"subject_name","type":"string","description":"Open Library's name of that subject, such as science fiction.","required":false,"coverage":1,"example":"science fiction"},{"name":"subject_work_count","type":"integer","description":"How many works Open Library files under the subject with the chosen filters.","required":false,"coverage":1,"example":14601},{"name":"rank","type":"integer","description":"Position of the book in the subject list in the chosen order; 1 is the first.","required":false,"coverage":1,"example":1},{"name":"work_key","type":"string","description":"Open Library's work id, such as OL138052W: one id for all editions of a book.","required":true,"coverage":1,"example":"OL138052W"},{"name":"url","type":"url","description":"The book's page on Open Library.","required":false,"coverage":1,"example":"https://openlibrary.org/works/OL138052W"},{"name":"title","type":"string","description":"Title of the work.","required":false,"coverage":1,"example":"Alice's Adventures in Wonderland"},{"name":"authors","type":"array","description":"Author names, as Open Library lists them.","required":false,"coverage":1,"example":["Lewis Carroll"]},{"name":"author_keys","type":"array","description":"Open Library ids of those authors, such as OL22098A, in the same order.","required":false,"coverage":1,"example":["OL22098A"]},{"name":"first_publish_year","type":"integer","description":"The year the work first came out, as Open Library records it.","required":false,"coverage":1,"example":1865},{"name":"edition_count","type":"integer","description":"Number of editions Open Library lists for the work (printings, translations, formats).","required":false,"coverage":1,"example":3549},{"name":"cover_id","type":"integer","description":"Open Library's id of the work's cover image.","required":false,"coverage":1,"example":10527843},{"name":"cover_url","type":"image","description":"The cover image, large size, from covers.openlibrary.org.","required":false,"coverage":1,"example":"https://covers.openlibrary.org/b/id/10527843-L.jpg"},{"name":"cover_edition_key","type":"string","description":"Open Library id of the edition the cover comes from, such as OL31754751M.","required":false,"coverage":0.8,"example":"OL31754751M"},{"name":"has_fulltext","type":"boolean","description":"True when Open Library holds a scanned copy of some edition (free to read, to borrow or for print-disabled readers).","required":false,"coverage":1,"example":true},{"name":"is_public_scan","type":"boolean","description":"True when a scanned copy is free for anyone to read (public domain).","required":false,"coverage":1,"example":true},{"name":"availability","type":"string","description":"Reading access on Open Library: open (free to read), borrow_available, borrow_unavailable (waitlist) or private (print-disabled readers only); empty when there is no scan.","required":false,"coverage":1,"example":"open"},{"name":"tags","type":"array","description":"The work's own subject headings on Open Library, up to 30, such as Fantasy & Magic.","required":false,"coverage":1,"example":["Alice (fictitious character : carroll), fiction","British and irish fiction (fictional works by one author)"]}],"inputs":[{"name":"subjects","type":"array","description":"Subjects to list books for, such as [\"science_fiction\", \"cooking\"]. Plain words work too (Science Fiction), as do place:, person: and time: subjects such as place:london.","example":["science_fiction"],"required":true},{"name":"published_from","type":"integer","description":"Keep only works with an edition published in or after this year, such as 2000.","example":2000},{"name":"published_to","type":"integer","description":"Keep only works with an edition published in or before this year, such as 2020.","example":2020},{"name":"sort","type":"string","description":"Order of the books: editions (most editions first, Open Library's own default), new (newest first), old (oldest first), rating (best rated first) or want_to_read (most on readers' lists first).","default":"editions","example":"editions","enum":["editions","new","old","rating","want_to_read"]},{"name":"only_full_text","type":"boolean","description":"true keeps only works Open Library holds a scanned copy of (free to read, to borrow or for print-disabled readers).","default":false,"example":false},{"name":"max_results","type":"integer","description":"Books per subject, from 1 to 5,000, in the chosen order.","default":100,"example":200}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"author_keys":{"description":"Open Library ids of those authors, such as OL22098A, in the same order.","type":"array"},"authors":{"description":"Author names, as Open Library lists them.","type":"array"},"availability":{"description":"Reading access on Open Library: open (free to read), borrow_available, borrow_unavailable (waitlist) or private (print-disabled readers only); empty when there is no scan.","type":"string"},"cover_edition_key":{"description":"Open Library id of the edition the cover comes from, such as OL31754751M.","type":"string"},"cover_id":{"description":"Open Library's id of the work's cover image.","type":"integer"},"cover_url":{"description":"The cover image, large size, from covers.openlibrary.org.","format":"uri","type":"string"},"edition_count":{"description":"Number of editions Open Library lists for the work (printings, translations, formats).","type":"integer"},"first_publish_year":{"description":"The year the work first came out, as Open Library records it.","type":"integer"},"has_fulltext":{"description":"True when Open Library holds a scanned copy of some edition (free to read, to borrow or for print-disabled readers).","type":"boolean"},"is_public_scan":{"description":"True when a scanned copy is free for anyone to read (public domain).","type":"boolean"},"rank":{"description":"Position of the book in the subject list in the chosen order; 1 is the first.","type":"integer"},"subject":{"description":"The subject the book was listed under, as Open Library's key, such as science_fiction.","type":"string"},"subject_name":{"description":"Open Library's name of that subject, such as science fiction.","type":"string"},"subject_work_count":{"description":"How many works Open Library files under the subject with the chosen filters.","type":"integer"},"tags":{"description":"The work's own subject headings on Open Library, up to 30, such as Fantasy & Magic.","type":"array"},"title":{"description":"Title of the work.","type":"string"},"url":{"description":"The book's page on Open Library.","format":"uri","type":"string"},"work_key":{"description":"Open Library's work id, such as OL138052W: one id for all editions of a book.","type":"string"}},"required":["subject","work_key"],"title":"Books by Subject API","type":"object"},"samples":[{"subject":"science_fiction","subject_name":"science fiction","subject_work_count":14601,"rank":1,"work_key":"OL138052W","url":"https://openlibrary.org/works/OL138052W","title":"Alice's Adventures in Wonderland","authors":["Lewis Carroll"],"author_keys":["OL22098A"],"first_publish_year":1865,"edition_count":3549,"cover_id":10527843,"cover_url":"https://covers.openlibrary.org/b/id/10527843-L.jpg","cover_edition_key":"OL31754751M","has_fulltext":true,"is_public_scan":true,"availability":"open","tags":["Alice (fictitious character : carroll), fiction","British and irish fiction (fictional works by one author)","Fiction, fantasy, general","JUVENILE FICTION"]},{"subject":"science_fiction","subject_name":"science fiction","subject_work_count":14601,"rank":2,"work_key":"OL450063W","url":"https://openlibrary.org/works/OL450063W","title":"Frankenstein; or, The Modern Prometheus","authors":["Mary Shelley"],"author_keys":["OL25342A"],"first_publish_year":1818,"edition_count":2187,"cover_id":12356249,"cover_url":"https://covers.openlibrary.org/b/id/12356249-L.jpg","cover_edition_key":"OL35649409M","has_fulltext":true,"is_public_scan":true,"availability":"open","tags":["Frankenstein (Fictitious character)","Frankenstein's monster (Fictitious character)","Fiction","Victor Frankenstein (Fictitious character)"]},{"subject":"love__romance","subject_name":"love romance","subject_work_count":597,"rank":1,"work_key":"OL5720023W","url":"https://openlibrary.org/works/OL5720023W","title":"Twilight","authors":["Stephenie Meyer"],"author_keys":["OL1391085A"],"first_publish_year":2005,"edition_count":133,"cover_id":12641977,"cover_url":"https://covers.openlibrary.org/b/id/12641977-L.jpg","cover_edition_key":"OL25418289M","has_fulltext":true,"is_public_scan":false,"availability":"borrow_available","tags":["series:Luz_e_Escuridão","series:Twilight","New York Times bestseller","nyt:series_books=2008-03-15"]}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"author_keys":1,"authors":1,"availability":1,"cover_edition_key":1,"cover_id":1,"cover_url":1,"edition_count":1,"first_publish_year":1,"has_fulltext":1,"is_public_scan":1,"rank":1,"subject":1,"subject_name":1,"subject_work_count":1,"tags":1,"title":1,"url":1,"work_key":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_9ad8146cc2dfce1e4bfa8471/run","openapi":"https://pullrow.dev/v1/apis/api_9ad8146cc2dfce1e4bfa8471/openapi.json","contract":"https://pullrow.dev/v1/apis/api_9ad8146cc2dfce1e4bfa8471/contract.json","page":"https://pullrow.dev/catalog/open-library-subjects"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Subjects are Open Library's own subject keys, such as science_fiction, cooking, place:london or time:19th_century. Plain words become keys the way Open Library makes them (Love & Romance becomes love__romance); a subject Open Library does not use returns no books.","The year range keeps works with at least one edition published in those years, so a classic reprinted since then still counts. It does not filter on the year a work first came out.","Open Library's catalog is built by libraries and volunteers: coverage is broad but uneven, and first_publish_year is sometimes missing or wrong on old records (a year of 0 comes back empty).","Up to 5,000 books per run. Requests are spaced about a second apart to keep the load on Open Library low, so 1,000 books take about 30 seconds.","sort old puts works with no known first publish year first; rating and want_to_read follow Open Library readers' own ratings and reading lists.","Open Library data is open (mostly CC0 or public domain): credit Open Library (openlibrary.org) when you publish it. Cover images carry their own rights."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"subject","label":"Subject","description":"The subject the book was listed under, as Open Library's key, such as science_fiction.","group":"Basics","shown":true,"written":false},{"name":"subject_name","label":"Subject name","description":"Open Library's name of that subject, such as science fiction.","group":"Basics","shown":true,"written":false},{"name":"subject_work_count","label":"Subject work count","description":"How many works Open Library files under the subject with the chosen filters.","group":"Basics","shown":true,"written":false},{"name":"rank","label":"Rank","description":"Position of the book in the subject list in the chosen order; 1 is the first.","group":"Basics","shown":true,"written":false},{"name":"work_key","label":"Work key","description":"Open Library's work id, such as OL138052W: one id for all editions of a book.","group":"Basics","shown":true,"written":false},{"name":"url","label":"Link","description":"The book's page on Open Library.","group":"Links","shown":true,"written":false},{"name":"title","label":"Title","description":"Title of the work.","group":"Basics","shown":true,"written":false},{"name":"authors","label":"Authors","description":"Author names, as Open Library lists them.","group":"Basics","shown":true,"written":false},{"name":"author_keys","label":"Author keys","description":"Open Library ids of those authors, such as OL22098A, in the same order.","group":"Basics","shown":true,"written":false},{"name":"first_publish_year","label":"First publish year","description":"The year the work first came out, as Open Library records it.","group":"Dates","shown":true,"written":false},{"name":"edition_count","label":"Edition count","description":"Number of editions Open Library lists for the work (printings, translations, formats).","group":"Basics","shown":true,"written":false},{"name":"cover_id","label":"Cover ID","description":"Open Library's id of the work's cover image.","group":"Technical","shown":false,"written":false},{"name":"cover_url","label":"Cover","description":"The cover image, large size, from covers.openlibrary.org.","group":"Media","shown":true,"written":false},{"name":"cover_edition_key","label":"Cover edition key","description":"Open Library id of the edition the cover comes from, such as OL31754751M.","group":"Media","shown":true,"written":false},{"name":"has_fulltext","label":"Has fulltext","description":"Yes when Open Library holds a scanned copy of some edition (free to read, to borrow or for print-disabled readers).","group":"Basics","shown":true,"written":false},{"name":"is_public_scan","label":"Public scan","description":"Yes when a scanned copy is free for anyone to read (public domain).","group":"Basics","shown":true,"written":false},{"name":"availability","label":"Availability","description":"Reading access on Open Library: open (free to read), borrow_available, borrow_unavailable (waitlist) or private (print-disabled readers only); empty when there is no scan.","group":"Basics","shown":true,"written":false},{"name":"tags","label":"Tags","description":"The work's own subject headings on Open Library, up to 30, such as Fantasy & Magic.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"subjects","label":"Subjects","help":"Subjects to list books for, such as [\"science_fiction\", \"cooking\"]. Plain words work too (Science Fiction), as do place:, person: and time: subjects such as place:london.","example":"science_fiction","written":false},{"name":"published_from","label":"Published from","help":"Keep only works with an edition published in or after this year, such as 2000.","example":"2000","written":false},{"name":"published_to","label":"Published to","help":"Keep only works with an edition published in or before this year, such as 2020.","example":"2020","written":false},{"name":"sort","label":"Sort","help":"Order of the books: editions (most editions first, Open Library's own default), new (newest first), old (oldest first), rating (best rated first) or want_to_read (most on readers' lists first).","example":"editions","written":false},{"name":"only_full_text","label":"Only full text","help":"true keeps only works Open Library holds a scanned copy of (free to read, to borrow or for print-disabled readers).","example":"false","written":false},{"name":"max_results","label":"Maximum results","help":"Books per subject, from 1 to 5,000, in the chosen order.","example":"200","written":false}]}},"incidents":[]}