# Open Library Books, Authors & ISBN Scraper | 2Space (`2space/openlibrary-books-isbn-scraper`) Actor

Zero-browser Open Library books and ISBN scraper. Extract book titles, authors, ISBN-10/ISBN-13, publishers, publish years, page counts, subjects, ratings, and cover URLs via the public Open Library API.

- **URL**: https://apify.com/2space/openlibrary-books-isbn-scraper.md
- **Developed by:** [2Space Group](https://apify.com/2space) (community)
- **Categories:** AI, MCP servers, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 books scraped

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Open Library Books, Authors & ISBN Scraper | 2Space

> **Built by 2Space** · Zero-browser **Open Library scraper**, **ISBN book metadata API**, and **book catalog extractor** engineered for AI agents, MCP clients, publishing research, and reading catalog workflows.

[![Apify Actor](https://img.shields.io/badge/Apify-openlibrary--books--isbn--scraper-00C853?style=flat-square)](https://apify.com/2space/openlibrary-books-isbn-scraper)
[![MCP Ready](https://img.shields.io/badge/MCP-Ready-2563EB?style=flat-square)](https://mcp.apify.com?tools=2space/openlibrary-books-isbn-scraper)
[![Zero Browser](https://img.shields.io/badge/Runtime-Pure%20HTTP-7C3AED?style=flat-square)](https://apify.com/2space/openlibrary-books-isbn-scraper)

Whether you need an **Open Library book scraper** for bibliographic discovery, a structured **ISBN-10 / ISBN-13 lookup API** for AI agents, or a fast **book metadata extractor** covering authors, publishers, page counts, ratings, subjects, and high-resolution cover URLs, this Actor delivers clean JSON and CSV records in seconds with zero API keys and zero browser overhead.

***

### Why Choose This Scraper?

- **Pure HTTP Speed:** Queries Open Library's public `/search.json` and `/isbn/{isbn}.json` endpoints directly over HTTP with bounded concurrency, completing default runs in seconds.
- **Dual Mode (Keyword Search + Direct ISBN Lookup):** Search by topic, book title, or author, or pass exact `isbns` (`ISBN-10` or `ISBN-13`) to pull edition-level publishers, physical formats, and page counts.
- **Rich, Flat Bibliographic Records:** Outputs clean fields (`workKey`, `title`, `subtitle`, `authors`, `firstPublishYear`, `editionCount`, `isbn13`, `isbn10`, `publishers`, `publishDate`, `physicalFormat`, `numberOfPages`, `subjects`, `ratingsAverage`, `coverUrl`, `openLibraryUrl`) ready for LLMs, SQL tables, and spreadsheets.
- **Empty `{}` Input Ready:** Works immediately with zero configuration—running `{}` searches `"artificial intelligence"` and returns up to `5` enriched book records.
- **No Data, No Charge (Pay-Per-Event):** Uses the single `book-scraped` event (`count: 1`), charged **only after** a validated book record is pushed to the dataset, protected by `maxItems` and `maxCostUsd` caps.

***

### Popular Use Cases

- **AI Research & Knowledge Bases:** Retrieve authoritative textbook citations, ISBNs, subjects, and edition histories directly inside Claude, ChatGPT, or Cursor.
- **E-Commerce & Book Catalog Enrichment:** Enrich ISBN spreadsheets with clean titles, publishers, page counts, and Open Library cover URLs (`covers.openlibrary.org`).
- **Reading Lists & EdTech Platforms:** Build curated syllabi or topic bibliographies filtered by ISO 639-2 language codes (`eng`, `spa`, `fre`).

***

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `query` | `string` | `"artificial intelligence"` | Book title, author, or topic search query on Open Library. |
| `isbns` | `string[]` | `[]` | Optional list of ISBN-10 or ISBN-13 identifiers for direct edition lookup. |
| `enrichFirstIsbn` | `boolean` | `false` | Fetch `/isbn/{isbn}.json` for each search hit's primary ISBN to extract edition format and page count. |
| `language` | `string` | `""` | Optional 3-letter ISO 639-2 language filter (e.g., `eng`, `spa`, `fre`). |
| `maxItems` | `integer` | `5` | Hard cap on deduplicated book records pushed and charged per run (`1` to `200`). |
| `maxCostUsd` | `number` | `0.25` | Pre-charge spending safety cap in USD for Pay-Per-Event billing. |

***

### Example JSON Output

```json
{
  "workKey": "/works/OL2896994W",
  "title": "Artificial Intelligence",
  "subtitle": "A Modern Approach",
  "authors": ["Stuart J. Russell", "Peter Norvig"],
  "authorKeys": ["OL440500A", "OL772166A"],
  "firstPublishYear": 1994,
  "editionCount": 39,
  "isbn13": "9780130803023",
  "isbn10": "0130803022",
  "isbns": ["9780130803023", "0130803022"],
  "publishers": ["Pearson", "Prentice Hall"],
  "publishDate": "2020",
  "physicalFormat": "Hardcover",
  "numberOfPages": 1144,
  "languages": ["eng"],
  "subjects": ["Artificial intelligence", "Machine learning"],
  "ratingsAverage": 4.08,
  "ratingsCount": 26,
  "ebookAccess": "printdisabled",
  "hasFulltext": true,
  "coverUrl": "https://covers.openlibrary.org/b/id/92018-L.jpg",
  "openLibraryUrl": "https://openlibrary.org/works/OL2896994W",
  "extractedAt": "2026-12-03T18:00:00.000Z"
}
```

Execution diagnostics are saved to the default Key-Value Store under `RUN_DIAGNOSTICS`.

***

### 1-Prompt MCP & AI Agent Setup

Connect `2space/openlibrary-books-isbn-scraper` to Claude Desktop, Cursor, ChatGPT, or Antigravity via the Apify MCP endpoint:

```text
https://mcp.apify.com?tools=2space/openlibrary-books-isbn-scraper
```

```json
{
  "mcpServers": {
    "apify-openlibrary": {
      "url": "https://mcp.apify.com?tools=2space/openlibrary-books-isbn-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

***

### Pricing & No Data, No Charge

- **Event:** `book-scraped` (`count: 1` per validated pushed book record).
- **No Data, No Charge:** If a query returns 0 valid books, `Actor.charge()` is never called.

***

New to Apify? [Create a free Apify account](https://apify.com?fpr=2space) ($5 monthly free platform credits included) to run this Actor via API or MCP.

# Actor input Schema

## `query` (type: `string`):

Book title, author, or topic search query on Open Library (e.g., 'artificial intelligence', 'Clean Code', 'Isaac Asimov'). Ignored when ISBNs are provided unless query is explicitly specified.

## `isbns` (type: `array`):

Optional list of ISBN-10 or ISBN-13 identifiers to look up directly via Open Library's /isbn/{isbn}.json endpoint.

## `enrichFirstIsbn` (type: `boolean`):

When enabled, fetches /isbn/{isbn}.json for the primary ISBN of each search hit to extract exact edition publishDate, physicalFormat, and page count.

## `language` (type: `string`):

Optional 3-letter Open Library language filter (e.g., 'eng', 'spa', 'fre', 'ger'). Leave empty for all languages.

## `maxItems` (type: `integer`):

Hard cap on the maximum number of deduplicated book records to push and charge.

## `maxCostUsd` (type: `number`):

Pre-charge spending safety cap in USD for Pay-Per-Event billing.

## Actor input object example

```json
{
  "query": "artificial intelligence",
  "isbns": [],
  "enrichFirstIsbn": false,
  "language": "",
  "maxItems": 5,
  "maxCostUsd": 0.25
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset items containing extracted Open Library book and ISBN records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "artificial intelligence",
    "isbns": [],
    "enrichFirstIsbn": false,
    "language": "",
    "maxItems": 5,
    "maxCostUsd": 0.25
};

// Run the Actor and wait for it to finish
const run = await client.actor("2space/openlibrary-books-isbn-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "artificial intelligence",
    "isbns": [],
    "enrichFirstIsbn": False,
    "language": "",
    "maxItems": 5,
    "maxCostUsd": 0.25,
}

# Run the Actor and wait for it to finish
run = client.actor("2space/openlibrary-books-isbn-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "artificial intelligence",
  "isbns": [],
  "enrichFirstIsbn": false,
  "language": "",
  "maxItems": 5,
  "maxCostUsd": 0.25
}' |
apify call 2space/openlibrary-books-isbn-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,2space/openlibrary-books-isbn-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OEbK43aGW3HfP6hFL/builds/FWkcCCAfD5N2HZnU0/openapi.json
