{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"8b8e6257-84d3-4474-8ce9-4bf3a34c7328","catalogType":"api","categories":["search-research","data"],"dataPlatform":"books","dataPlatformLogoUrl":"https://api.sh/logos/books.png","dataPlatformTranslations":{},"dataProduct":"book-reference","description":"Get Open Library Subjects data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, subject, and retrieve structured data including resolved subject name, source-reported subject work count, work identifier, work title, and related catalogue metadata for reading catalogue, and record matching.","descriptionTranslations":{"ar":"تصفح موضوعاً في Open Library عبر OpenAny REST باسم الموضوع، مع مرشح للكتب الإلكترونية وصفحات وبيانات المؤلفين والناشرين والموضوعات المرتبطة. استخدم السجلات الببليوغرافية لإثراء فهرس قراءة أو ربط المؤلفين والأعمال والطبعات، ثم اتبع روابط المصدر لمزيد من القراءة.","ja":"OpenAny REST で主題名から Open Library の書籍を閲覧し、電子書籍の絞り込み、ページ取得、関連著者・出版社・主題を確認できます。 返された書誌情報で読書カタログを充実させ、著者・作品・版を結び付けて、出典リンクから詳しい情報を確認できます。","zh":"通过 OpenAny REST 按主题名浏览 Open Library 书目，支持电子书筛选、分页及相关作者、出版商和主题信息。 可利用书目记录补充阅读目录，关联作者、作品与版本，并通过来源链接继续阅读。"},"effectContentHtml":"","executionMode":"sync","id":"b6f59e6c-0e83-44e7-a82e-cbbd4d5eac3c","includedContentHtml":"","inputs":[{"description":"Subject, e.g. science_fiction, love, history, cooking.","location":"query","name":"subject","nullable":false,"required":true,"type":"string"},{"description":"`true`: only books with an e-book.","location":"query","name":"ebooks","nullable":false,"required":false,"type":"boolean"},{"description":"Per page (default 20, max 100).","location":"query","name":"limit","nullable":false,"required":false,"type":"integer"},{"description":"Page (default 1).","location":"query","name":"page","nullable":false,"required":false,"type":"integer"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"Native CSV/NDJSON record selector; it has no effect on this JSON-only product.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/books.png","method":"GET","name":"Books subject catalogue API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eOpen Library Subjects API\u003c/h2\u003e\n\u003cp\u003esubject selects a category such as science_fiction, history or cooking. ebooks=true restricts to books with an e-book; it does not change the underlying access terms. The response lists work-level records and related catalogue facets. limit defaults to 20, maximum 100, and page defaults to 1.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired: subject. Optional: ebooks, limit, page. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Books subject catalogue API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eReading catalogue\u003c/strong\u003e: Retain the returned source IDs and bibliographic links when adding entries to a reading catalogue.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eRecord matching\u003c/strong\u003e: Use resource identity and related author or edition records to match catalogue entries.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esubject\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eResolved subject name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ework_count\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource-reported subject work count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].work_id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eWork identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].title\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eWork title\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003erelated\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRelated catalogue metadata\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext subject page\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/books/v1/subject \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode output=json \\\n  --data-urlencode subject=science_fiction\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/b6f59e6c-0e83-44e7-a82e-cbbd4d5eac3c\"\u003ePublished Open Library Subjects API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eHow do I identify the subject?\u003c/h3\u003e\n\u003cp\u003ePass a subject name such as science_fiction, love, history or cooking.\u003c/p\u003e\n\u003ch3\u003eDoes ebooks=true mean all copies are freely readable?\u003c/h3\u003e\n\u003cp\u003eNo. It filters e-book availability; check the source’s access conditions.\u003c/p\u003e\n\u003ch3\u003eAre results works or editions?\u003c/h3\u003e\n\u003cp\u003eThey are work-level entries; inspect a work for editions.\u003c/p\u003e\n\u003ch3\u003eHow do I continue the list?\u003c/h3\u003e\n\u003cp\u003ePass next_page as page; limit defaults to 20 and permits up to 100.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/books/books-author-profile-api\"\u003eBooks author profile API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/books/books-works-by-author-api\"\u003eBooks works by author API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/books/books-edition-details-api\"\u003eBooks edition details API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/books/books-subject-catalogue-api?offering=b6f59e6c-0e83-44e7-a82e-cbbd4d5eac3c","providerId":"apish","publicPath":"/v1/agent-apis/apish/books/v1/subject","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"output":"json","subject":"science_fiction"}},"response_body":{"attribution":"Source: Open Library (openlibrary.org), Internet Archive","cached":false,"count":20,"credits_used":1,"items":[{"authors":[{"id":"OL22098A","name":"Lewis Carroll"}],"cover":"https://covers.openlibrary.org/b/id/10527843-M.jpg","edition_count":3548,"first_publish_year":1865,"has_fulltext":true,"title":"Alice's Adventures in Wonderland","url":"https://openlibrary.org/works/OL138052W","work_id":"OL138052W"},{"authors":[{"id":"OL25342A","name":"Mary Shelley"}],"cover":"https://covers.openlibrary.org/b/id/12356249-M.jpg","edition_count":2187,"first_publish_year":1818,"has_fulltext":true,"title":"Frankenstein; or, The Modern Prometheus","url":"https://openlibrary.org/works/OL450063W","work_id":"OL450063W"},"… 18 more"],"next_page":2,"page":1,"related":{"authors":[{"count":236,"name":"Isaac Asimov"},{"count":164,"name":"Martin H. Greenberg"},"… 18 more"],"publishers":[{"count":643,"name":"Orion Publishing Group, Limited"},{"count":589,"name":"Tandem Library"},"… 18 more"],"subjects":[{"count":9136,"name":"Fiction"},{"count":7315,"name":"Children's fiction"},"… 18 more"]},"subject":"science fiction","work_count":21250}}],"seoDescription":"Get Open Library Subjects data via REST or MCP powered by Apish. Pay per call, no subscription. Get resolved subject name and work identifier in JSON.","updatedAt":"2026-12-03T02:44:38.402Z","usageInstructionsHtml":""}}