# StoryGraph Books Scraper: Ratings, Moods, Content Warnings (`getascraper/storygraph-books-scraper`) Actor

Scrape public StoryGraph books, no login. Search by title, author, or series, or paste book URLs. Get catalog, cover, community rating, number of ratings, moods, pace, reader vibes, and content warnings grouped Graphic, Moderate, and Minor. Filter by rating and monitor new books on a schedule.

- **URL**: https://apify.com/getascraper/storygraph-books-scraper.md
- **Developed by:** [GetAScraper](https://apify.com/getascraper) (community)
- **Categories:** Social media, Automation, Other
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 books

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/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

## 📚 StoryGraph Books Scraper: ratings, moods, and content warnings

**Every StoryGraph book, with the ratings and content warnings readers actually wrote.**

Pull public book data from The StoryGraph by search or link, with no login needed. It is built for reading-app builders, parents checking content, themed-list makers, and book researchers.

### ✨ Feature highlights

- **Ratings, moods, pace:** Average rating, number of ratings, and the mood and pace split for every book.
- **Content warnings:** Graphic, Moderate, and Minor warnings readers submitted, which no other StoryGraph scraper gives you.
- **Reader vibes in full:** Plot or character driven, character development, loveable characters, diverse cast, and whether flaws are the focus.
- **Search, filter, track:** Search by title, author, or series, keep only books above a rating, and flag new ones on a schedule.

### 🔍 What does this Actor do?

The StoryGraph Books Scraper collects public book data from [The StoryGraph](https://app.thestorygraph.com), the reader-run alternative to Goodreads. Give it search terms or paste book links. It returns a clean table of every book with the data readers care about: ratings, moods, pace, reader vibes, and content warnings. No account or login is needed.

It reads only public book pages: the catalog details, the community review summary, and the content-warning list. It never touches private reading data, journals, or profiles.

### 👥 Who uses it

- "I'm building a reading app and need mood, pace, and rating data for thousands of titles without maintaining my own scraper."
- "I hand books to my kid, so I need the content warnings up front, straight from the reader-submitted lists."
- "I build themed reading lists by mood and audience, and I want the community vibe data for each title in one export."
- "I study how readers feel about books, so I need mood percentages and ratings across a whole genre."

### 🚀 How to use it

1. Enter search terms, or paste StoryGraph book links and IDs.
2. Choose your data: community ratings, reader vibes, and content warnings.
3. Run it, then export every book as a table, JSON, CSV, or Excel.

### 🧩 Input

| Field | Type | Required | Description |
|---|---|---|---|
| Search terms | array of text | No | Search StoryGraph by title, author, or series. One search per line. |
| Book URLs or IDs | array of text | No | Full StoryGraph book links or bare book IDs, one per line. |
| Maximum books | integer | No | Stop after collecting this many books in total. Free plan is limited to 25. |
| Include community ratings and reader vibes | true/false | No | Add average rating, number of ratings, and the full reader-vibe breakdown. |
| Include content warnings | true/false | No | Add content warnings grouped Graphic, Moderate, and Minor. |
| Minimum community rating | number | No | Keep only books rated at or above this value (0 to 5). Needs community ratings on. |
| Change tracking name | text | No | Name a run to compare it with the previous run of the same name and flag new books. |
| Proxy | proxy object | No | Residential proxy by default, needed to reach StoryGraph. |

You need at least one search term or one book URL. Everything else is optional.

### 📊 Data table

| Field | Type | Description |
|---|---|---|
| book_id | string | StoryGraph book identifier. |
| book_url | string | Link to the book page. |
| title | string | Book title. |
| author / authors | string / array | Primary author, and the full author list. |
| author_url | string | Link to the author page. |
| series | string | Series name, when the book belongs to one. |
| description | string | Book blurb. |
| cover | string | Cover image URL. |
| pages | number | Page count for the shown edition. |
| format | string | Edition format (physical, digital, audio). |
| first_published | number | Year the book was first published. |
| isbn | string | ISBN or UID of the edition. |
| language | string | Edition language. |
| publisher | string | Publisher of the edition. |
| edition_pub_date | string | Publication date of the edition. |
| tags | array | Genre and mood tags. |
| moods | object | Mood name to percentage of readers. |
| pace | object | Fast, medium, and slow percentages. |
| average_rating | number | Community average rating (needs community data on). |
| reviews_count | number | Number of community ratings. |
| reader_vibes | array | Reader-vibe questions with the percentage for each option. |
| content_warnings | object | Warnings grouped graphic, moderate, and minor. |
| change_type | string | NEW or SEEN when change tracking is on. |
| scraped_at | string | When the book was collected. |

Each book is one record. Example (trimmed):

```json
{
  "book_id": "1a6966fd-5552-4166-ab8b-dd858414c315",
  "book_url": "https://app.thestorygraph.com/books/1a6966fd-5552-4166-ab8b-dd858414c315",
  "title": "The Sun Also Rises",
  "author": "Ernest Hemingway",
  "authors": ["Ernest Hemingway"],
  "series": null,
  "pages": 320,
  "format": "digital",
  "first_published": 1926,
  "isbn": "9781476739960",
  "publisher": "Scribner",
  "edition_pub_date": "15 Jul 2014",
  "cover": "https://cdn.thestorygraph.com/malpwdcfn8153fowidg4v5fciyfi",
  "tags": ["classics", "fiction", "literary"],
  "moods": { "reflective": 64, "adventurous": 43, "emotional": 32 },
  "moods_summary": "reflective 64%, adventurous 43%, emotional 32%",
  "pace": { "fast": 11, "medium": 39, "slow": 48 },
  "pace_label": "slow",
  "average_rating": 3.5,
  "reviews_count": 47034,
  "reader_vibes": [
    { "question": "Plot or character driven?", "options": { "Character": 75, "A mix": 16, "Plot": 6 } }
  ],
  "content_warnings": {
    "graphic": ["Antisemitism", "Animal cruelty"],
    "moderate": ["Racism", "Alcohol"],
    "minor": ["War", "Violence"]
  },
  "scraped_at": "2026-11-14T09:00:00.000Z"
}
```

### 💰 Pricing

This Actor uses pay per event. You pay for each book delivered, plus a small amount only when you turn on the community-stats or content-warnings add-ons. Refused and rating-filtered books are never charged, and runs that return nothing cost nothing. There are no subscriptions. Free plan runs are limited to 25 books per run, 3 runs per day, with a short wait between runs. See the pricing panel on this page for current rates.

### ⭐ Enjoying StoryGraph Books Scraper?

A quick rating helps other readers and developers find this Actor.

[Rate this Actor on Apify](https://apify.com/getascraper/storygraph-books-scraper/reviews)

### ❓ FAQ

#### Do I need a StoryGraph account or login?

No. This Actor reads only public book pages. It never signs in and never touches private reading data, journals, or profiles.

#### What makes this different from the other StoryGraph scraper?

It returns content warnings grouped by severity, the complete reader-vibe breakdown, and a minimum-rating filter, none of which the other StoryGraph scraper offers. It also keeps the same field names, so switching over is easy.

#### Can I track new books over time?

Yes. Name a run with the change tracking field and schedule it. Each book is marked NEW or SEEN, so a scheduled run surfaces the books added since last time.

#### Why is residential proxy the default?

StoryGraph sits behind a bot wall that only residential connections pass. The Actor handles this for you, so most people can leave the proxy setting alone.

### 🔗 Other actors

- [Douban Book Scraper](https://apify.com/getascraper/douban-book-rankings-scraper) ↗ - Top 250, tags, and new releases from Douban's book catalog.
- [Amazon KDP Book Niche Analyzer](https://apify.com/getascraper/kdp-book-niche-analyzer) ↗ - book market and niche research for self-publishers.
- [ThriftBooks Scraper](https://apify.com/getascraper/thriftbooks-scraper) ↗ - cheap used-book prices, conditions, and stock.
- [Anime & Manga Scraper for AniList](https://apify.com/getascraper/anilist-anime-manga-scraper) ↗ - airing schedules, tags, and ratings for anime and manga.
- [Douban Movie Top 250 Scraper](https://apify.com/getascraper/douban-movie-rankings-scraper) ↗ - film charts, filters, and ratings from Douban.

# Changelog

This Actor's version history is a separate document: https://apify.com/getascraper/storygraph-books-scraper/changelog.md

# Actor input Schema

## `searchTerms` (type: `array`):

Search StoryGraph by book title, author, or series. One search per line. Each search returns matching books up to the Maximum books limit. Leave empty if you are pasting book URLs instead.

## `bookUrls` (type: `array`):

Full StoryGraph book links (https://app.thestorygraph.com/books/...) or bare book IDs, one per line. Use this when you already know the exact books you want.

## `maxBooks` (type: `integer`):

Stop after collecting this many books in total across all your search terms. Raise it for bigger pulls. Free-plan runs are limited to 25 books.

## `includeCommunityStats` (type: `boolean`):

Add the community average rating, number of ratings, mood and pace percentages, and the full reader-vibe breakdown (plot- or character-driven, character development, loveable characters, diverse cast, whether flaws are a main focus). Adds one request per book.

## `includeContentWarnings` (type: `boolean`):

Add content warnings grouped into Graphic, Moderate, and Minor, as submitted by readers. This is StoryGraph's signature feature and is not offered by the other StoryGraph scraper on the Store. Adds one extra request per book.

## `minRating` (type: `number`):

Keep only books whose community average rating is at or above this value (0 to 5). Requires community ratings to be turned on above. This rating filter is not available on the other StoryGraph scraper. Leave at 0 to keep every book.

## `monitorName` (type: `string`):

Give a run a name (for example new-sci-fi) to compare it with the previous run of the same name. Each book is marked NEW or SEEN, so a scheduled run surfaces only the books that have appeared since last time. Leave empty to turn tracking off.

## `proxyConfiguration` (type: `object`):

StoryGraph sits behind a bot wall that only residential IPs can pass, so residential proxy is the default. Only change this if you know you need your own proxy.

## `debugLogging` (type: `boolean`):

Log extra detail for troubleshooting. Leave off for normal runs.

## Actor input object example

```json
{
  "searchTerms": [
    "project hail mary"
  ],
  "bookUrls": [],
  "maxBooks": 10,
  "includeCommunityStats": false,
  "includeContentWarnings": false,
  "minRating": 0,
  "monitorName": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "debugLogging": false
}
```

# Actor output Schema

## `books` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# 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 = {
    "searchTerms": [
        "project hail mary"
    ],
    "bookUrls": [],
    "maxBooks": 10,
    "includeCommunityStats": false,
    "includeContentWarnings": false,
    "minRating": 0,
    "monitorName": "",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "debugLogging": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/storygraph-books-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 = {
    "searchTerms": ["project hail mary"],
    "bookUrls": [],
    "maxBooks": 10,
    "includeCommunityStats": False,
    "includeContentWarnings": False,
    "minRating": 0,
    "monitorName": "",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
    "debugLogging": False,
}

# Run the Actor and wait for it to finish
run = client.actor("getascraper/storygraph-books-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 '{
  "searchTerms": [
    "project hail mary"
  ],
  "bookUrls": [],
  "maxBooks": 10,
  "includeCommunityStats": false,
  "includeContentWarnings": false,
  "minRating": 0,
  "monitorName": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "debugLogging": false
}' |
apify call getascraper/storygraph-books-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getascraper/storygraph-books-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/A3gwG4wKFKmdkbjap/builds/F6vhImssFXPeeXT8P/openapi.json
