# Book Data Scraper - Ratings, Readers, Subjects and ISBNs (`turboextract/open-library-books`) Actor

Export book data from Open Library by keyword, subject, author or ISBN: title, author, first published year, editions, pages, rating, ratings count, want-to-read and already-read counts, subjects, languages, ISBNs, Goodreads and Amazon IDs. No API key.

- **URL**: https://apify.com/turboextract/open-library-books.md
- **Developed by:** [Moses Ndambuki](https://apify.com/turboextract) (community)
- **Categories:** E-commerce, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 book delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Book Data Scraper: Ratings, Readers, Subjects and ISBNs from Open Library

**Export book data by keyword, subject, author or ISBN: title, author, first published year, editions, pages, average rating, ratings count, want-to-read and already-read counts, subjects, languages, publishers, ISBNs, and Goodreads and Amazon IDs.** Sort by most read, highest rated or newest. Built on Open Library's open data. No login or API key.

In one test, the search "atomic habits" returned 12 books with reader counts, ISBNs and descriptions in about 6 seconds.

***

### Who this is for

- **Publishers and authors** researching a genre before writing or launching
- **Booksellers and affiliate sites** building catalogs with ISBNs and Amazon IDs
- **Book apps and recommendation engines** that need metadata and popularity
- **Librarians and researchers** analyzing subjects and publishing history
- **AI teams** building book datasets

***

### What you get

```json
{
  "workId": "OL17930368W",
  "url": "https://openlibrary.org/works/OL17930368W",
  "title": "Atomic Habits",
  "authors": ["James Clear"],
  "firstPublishedYear": 2016,
  "editionCount": 42,
  "pages": 322,
  "ratingAverage": 3.97,
  "ratingsCount": 1502,
  "wantToRead": 59722,
  "alreadyRead": 1779,
  "subjects": ["Habit", "Behavior modification", "Personal Growth"],
  "languages": ["eng", "spa", "fre", "ger", "por"],
  "isbn13": ["9780593189641"],
  "goodreadsIds": ["62221762"],
  "amazonIds": ["B07RFSSYBH"],
  "coverUrl": "https://covers.openlibrary.org/b/id/12539702-L.jpg",
  "description": "No matter your goals, Atomic Habits offers a proven framework for improving every day..."
}
```

***

### How it works

```mermaid
flowchart LR
    A[Keywords] --> E[Open Library catalog]
    B[Subjects] --> E
    C[Authors] --> E
    D[ISBNs] --> E
    E --> F[Filters: year, ratings, language]
    F --> G[Book rows]
```

***

### Quick start

1. Click **Try for free**.
2. Add **Search keywords**, **Subjects** like `science fiction`, **Authors** or **ISBNs**.
3. Optional: set **Sort** to Most read or Highest rated.
4. Optional: set **Language**, **First published after** or **Minimum ratings count**.
5. Click **Start**, then export to CSV, JSON, Excel or Google Sheets.

#### API

```bash
curl -X POST "https://api.apify.com/v2/acts/Turboextract~open-library-books/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"subjects": ["personal finance"], "sort": "readinglog", "maxResults": 200}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("Turboextract/open-library-books").call(run_input={
    "authors": ["Brandon Sanderson"],
    "sort": "rating",
})
for b in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(b["title"], b["firstPublishedYear"], b["wantToRead"])
```

***

### Input

| Field | Default | What it does |
|---|---|---|
| `searchQueries` | – | Title, author or topic keywords |
| `subjects` | – | Subjects like romance or cooking |
| `authors` | – | Author names |
| `isbns` | – | ISBN-10 or ISBN-13 |
| `sort` | relevance | Relevance, most read, rating, newest, oldest, editions |
| `language` | – | Three-letter code like eng |
| `publishedAfter` | 0 | First published year floor |
| `minRatingsCount` | 0 | Skip less-rated books |
| `includeDescription` | true | Adds the book description |
| `maxPerQuery` | 0 | Cap per query (0 = none) |
| `maxResults` | 50 | Total cap per run |

***

### Pricing

**$0.001 per book delivered.** 1,000 books cost $1.

| Option | 1,000 books |
|---|---|
| **Book Data Scraper** | **$1** |
| Commercial book metadata APIs | $100+ a month |

***

### Use cases

- **Genre research**: the most read books in a subject since 2015
- **Catalog building**: ISBNs, covers and descriptions for a store or affiliate site
- **Author pages**: every book by an author with editions and ratings
- **Cross-referencing**: match books to Goodreads and Amazon IDs
- **Datasets**: subjects and descriptions for recommendation models

***

### Tips

- `wantToRead` and `alreadyRead` come from Open Library readers and are a good popularity signal.
- Ratings come from Open Library users, so counts are smaller than on retail sites.
- `goodreadsIds` and `amazonIds` let you join this data with other sources.
- Sort by Most read with a subject to find the classics of any genre.

***

### Pairs well with

- [Apple Podcasts Scraper](https://apify.com/Turboextract/apple-podcasts-leads): podcasts on the same topics
- [Wikipedia Trending Articles](https://apify.com/Turboextract/wikipedia-trending): pageviews for authors and books
- [YouTube Scraper](https://apify.com/Turboextract/youtube-videos-scraper): book reviews and BookTube channels

***

### FAQ

**Do I need an API key?** No. The actor uses Open Library's free public API.

**Is this Goodreads data?** No. It is Open Library data, which includes Goodreads IDs for matching.

**Why is a rating empty?** No Open Library user has rated that book yet.

**How fresh is the data?** It is read live on every run.

**Is it legal?** Open Library is an open, non-profit catalog from the Internet Archive, and its data is free to use.

***

### SEO keywords

book data API, book metadata scraper, Open Library scraper, ISBN lookup bulk, books by subject export, book ratings dataset, author bibliography export, Goodreads alternative data, book catalog CSV, book recommendation dataset

***

### Support

- Docs and examples: https://github.com/andersonjames38phd-cpu/open-library-books
- Community Discord: https://discord.gg/8SrXSCpvgj

Built and maintained by [Turboextract](https://apify.com/Turboextract) on the Apify platform.

# Actor input Schema

## `searchQueries` (type: `array`):

Search books by title, author or topic, like atomic habits or stoicism.

## `subjects` (type: `array`):

Book subjects like science fiction, romance, personal finance or cooking.

## `authors` (type: `array`):

Author names, like Brandon Sanderson. Returns their books.

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

ISBN-10 or ISBN-13 numbers.

## `sort` (type: `string`):

Order of results.

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

Three-letter language code to require, like eng, spa, fre or ger.

## `publishedAfter` (type: `integer`):

Skip books first published before this year. 0 keeps all.

## `minRatingsCount` (type: `integer`):

Skip books with fewer ratings than this.

## `includeDescription` (type: `boolean`):

Adds each book description from its Open Library work page.

## `maxResults` (type: `integer`):

Stop after this many books in total.

## `maxPerQuery` (type: `integer`):

Cap per keyword, subject, author or ISBN, so one subject does not fill the whole run. 0 means no cap.

## Actor input object example

```json
{
  "searchQueries": [
    "atomic habits"
  ],
  "sort": "relevance",
  "publishedAfter": 0,
  "minRatingsCount": 0,
  "includeDescription": true,
  "maxResults": 50,
  "maxPerQuery": 0
}
```

# Actor output Schema

## `results` (type: `string`):

One row per book with ratings, reader counts, subjects, editions and IDs.

# 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 = {
    "searchQueries": [
        "atomic habits"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("turboextract/open-library-books").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 = { "searchQueries": ["atomic habits"] }

# Run the Actor and wait for it to finish
run = client.actor("turboextract/open-library-books").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 '{
  "searchQueries": [
    "atomic habits"
  ]
}' |
apify call turboextract/open-library-books --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,turboextract/open-library-books"
        }
    }
}
```

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/2rWinrf3O3kFtmI1U/builds/vv1EyH6uKI6PGmumC/openapi.json
