# Douban Scraper - Movie, TV, Book Reviews & Comments, No Login (`benthepythondev/douban-scraper`) Actor

Export Douban (豆瓣) movie, TV, book and music data: subject details with the 1-5 star split, the most helpful short comments with stars and votes (movies and TV too), and long reviews with full text. Seed by link, Top 250 and trending charts, or keyword. No login, plain HTTP.

- **URL**: https://apify.com/benthepythondev/douban-scraper.md
- **Developed by:** [Ben](https://apify.com/benthepythondev) (community)
- **Categories:** Social media, AI, Marketing
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 short comments

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

## 🎬 Douban Scraper: Movie, TV, Book & Music Reviews and Comments, No Login

Douban Scraper exports data from Douban (豆瓣), China's largest rating and review community for movies, TV shows, books and music. One run gives you subject details with the 1 to 5 star split, the most helpful short comments (短评) with stars and votes, and long reviews (影评, 书评, 乐评) with their full text. It reads Douban's public mobile JSON over plain HTTP: no login, no cookies, no browser, 256 MB of memory. Export to JSON/CSV/Excel, run on a schedule, call via API, or connect to Make, Zapier or n8n.

> **Data use.** This Actor can return personal data (such as names, handles or contact details). You are the controller of the data you collect with it: make sure you have a lawful basis under the GDPR and similar laws, collect only what you need, and do not use it for unsolicited marketing.

| What a run costs (pay per event) | Free plan | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Short comment (primary) | $1.50 / 1,000 | $1.40 | $1.30 | $1.20 |
| Long review with full text | $6.00 / 1,000 | $5.70 | $5.40 | $5.10 |
| Subject details (one per movie, book, album) | $3.00 / 1,000 | $2.80 | $2.70 | $2.50 |

Not charged: a subject Douban does not have, a refused request, a duplicate row, the "no results" row.

### ✅ What other Douban scrapers report, and what this one does

| What their listings say | What this Actor does |
|---|---|
| "Movie comments require browser rendering." (the most used Douban scraper, in its known limitations) | Reads short comments on movies and TV shows over plain HTTP, up to 200 per title |
| "Movie review list bodies are excerpt-only by default." | Opens each review and returns the whole text as plain paragraphs (`fullText: true`) |
| No Top 250, trending or "now showing" input | Takes Douban's own charts as input and keeps `chart` and `chartRank` on each row |
| No subject detail mode, or details only in search rows | One subject row with rating, vote count, star distribution, genres, people, dates and intro |
| 4 GB default memory | 256 MB: the platform cost of a run stays small |

### 🔎 What is Douban Scraper?

Douban Scraper is an Apify Actor that turns Douban subject pages into rows. You give it Douban links or ids, pick charts such as Movie Top 250 or trending TV, or type keywords like 三体 or Interstellar. It returns three row types, marked by `type`: `subject`, `comment` and `review`.

#### What data does it extract?

- **Subjects:** title, original title, other titles, year, Douban rating (out of 10), number of ratings, share of 1 to 5 star ratings, wish and done counts, genres, tags, intro, comment and review counts, cover, link.
- **Movies and TV:** directors, actors, countries, languages, running time, release dates, episode count.
- **Books:** authors, translators, publisher, publish date, pages, price, series.
- **Music:** artists, publisher, release date, media, version, track list.
- **Short comments:** text, stars, helpful votes, date, author's public name and handle.
- **Long reviews:** title, stars, abstract, full text, useful and not useful votes, comments, reshares, read count, spoiler flag, date, author's public name and handle.

### ⬇️ Input

| Field | What it does | Default |
|---|---|---|
| `subjectUrls` | Douban links or ids (`1292052`, `book:1007305`, `music:1401853`) | sample movie |
| `charts` | `movie_top250`, `movie_showing`, `movie_hot_gaia`, `movie_real_time_hotest`, `tv_hot`, `tv_real_time_hotest`, `book_top250`, `book_bestseller` | none |
| `maxSubjectsPerChart` | Subjects from the top of each chart (1 to 250) | 10 |
| `searchQueries` | Keywords, Chinese or English | none |
| `searchType` | `movie` (also finds TV), `book` or `music` | `movie` |
| `maxSubjectsPerSearch` | Top matches per keyword (1 to 50) | 5 |
| `includeDetails` | Save the subject row | true |
| `maxCommentsPerSubject` | Most helpful short comments per subject (0 to 200) | 20 |
| `maxReviewsPerSubject` | Most helpful long reviews per subject (0 to 40) | 5 |
| `fullReviewText` | Open each review for its whole text | true |

#### Example input

```json
{
  "charts": ["movie_top250"],
  "maxSubjectsPerChart": 25,
  "searchQueries": ["三体"],
  "searchType": "book",
  "maxCommentsPerSubject": 100,
  "maxReviewsPerSubject": 10,
  "fullReviewText": true
}
```

### ⬆️ Output

```json
[
  {
    "type": "subject", "subjectId": "1292052", "subjectType": "movie", "title": "肖申克的救赎",
    "originalTitle": "The Shawshank Redemption", "year": "1994", "rating": 9.7, "ratingCount": 3362908,
    "ratingDistribution": {"1star": 0.1, "2star": 0.1, "3star": 1.4, "4star": 13.0, "5star": 85.4},
    "genres": ["剧情", "犯罪"], "directors": ["弗兰克·德拉邦特"], "commentCount": 671490, "reviewCount": 15042,
    "chart": "movie_top250", "chartRank": 1, "url": "https://movie.douban.com/subject/1292052/"
  },
  {
    "type": "comment", "commentId": "4975119220", "subjectId": "36675942", "subjectType": "tv", "subjectTitle": "小城良方",
    "stars": 2, "text": "一如既往祸害医疗剧。…", "votes": 2743, "createdAt": "2026-10-26 17:20:16",
    "authorName": "玄辂Hyunlu", "authorId": "isotherm"
  },
  {
    "type": "review", "reviewId": "1000369", "subjectId": "1292052", "subjectType": "movie", "title": "十年·肖申克的救赎",
    "stars": 5, "abstract": "距离斯蒂芬·金…", "text": "距离斯蒂芬·金（Stephen King）和德拉邦特…", "fullText": true,
    "usefulCount": 18959, "readCount": 1429884, "createdAt": "2005-05-12 20:44:13",
    "url": "https://movie.douban.com/review/1000369/"
  }
]
```

### 🤖 For AI agents

One input to copy. No credential is needed:

```json
{"subjectUrls": ["https://movie.douban.com/subject/1292052/"], "maxCommentsPerSubject": 20, "maxReviewsPerSubject": 3}
```

### 💻 Code examples

Run the Actor from your own code and read the rows back. Set `APIFY_TOKEN` to your Apify API token in the environment first; keep it out of source files. Each example fetches the 20 most helpful short comments and 3 long reviews for The Shawshank Redemption and caps the run's spend at $0.50.

**Python** (`python -m pip install apify-client`):

```python
import os
from decimal import Decimal

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("benthepythondev/douban-scraper").call(
    run_input={
        "subjectUrls": ["https://movie.douban.com/subject/1292052/"],
        "maxCommentsPerSubject": 20,
        "maxReviewsPerSubject": 3,
    },
    max_total_charge_usd=Decimal("0.50"),
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["type"], row.get("title") or (row.get("text") or "")[:60])
```

**JavaScript** (`npm install apify-client`):

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('benthepythondev/douban-scraper').call(
    {
        subjectUrls: ['https://movie.douban.com/subject/1292052/'],
        maxCommentsPerSubject: 20,
        maxReviewsPerSubject: 3,
    },
    { maxTotalChargeUsd: 0.5 },
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'rows');
```

**cURL** (starts the run, waits up to 5 minutes and returns the rows as JSON):

```bash
curl -s -X POST \
  "https://api.apify.com/v2/acts/benthepythondev~douban-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=0.5" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"subjectUrls": ["https://movie.douban.com/subject/1292052/"], "maxCommentsPerSubject": 20, "maxReviewsPerSubject": 3}'
```

Rows come back as `type: "subject"`, `"comment"` or `"review"`; filter on `type` and use `subjectId` to join them. For a chart or keyword run, swap the input for `{"charts": ["movie_top250"], "maxSubjectsPerChart": 25}` or `{"searchQueries": ["三体"], "searchType": "book"}`. The [Apify API docs](https://docs.apify.com/api/v2) cover schedules, webhooks and other languages.

### 💡 Use cases

- 📊 **Audience sentiment for China:** star split and comments for a film, series or book before a release or licensing deal.
- 🧠 **Chinese NLP and LLM data:** labelled text with 1 to 5 stars, from one-line comments to long essays.
- 📚 **Publishing and music research:** what Chinese readers and listeners say about a title, track by track.
- 📈 **Chart tracking:** Top 250 and trending lists on a schedule, with rank and rating per run.

### ❓ FAQ

**How many comments and reviews can I get per title?** Douban shows logged-out visitors the 200 most helpful short comments and about 40 most helpful long reviews per title. This Actor reads all of them when you ask. For more text, add more titles (a chart of 250 titles gives up to 50,000 comments).

**Does it scrape movie comments?** Yes. Movies and TV shows get short comments the same way books and albums do.

**Can I get the newest comments first?** No. Douban serves the newest-first order only to logged-in users, so rows come most helpful first.

**Does it need a login, cookies or a proxy?** No login and no cookies. It calls Douban directly and switches to Apify Proxy only if Douban refuses an address.

**What do I pay while trying it?** Charges follow the table at the top. A subject Douban does not have, an error and duplicates cost nothing. The Actor stops at your run's maximum charge.

**Is it legal to scrape Douban?** The Actor reads only what Douban shows any logged-out visitor. It keeps commenters to their public display name and handle and drops avatars, gender, location and sign-up dates. You are responsible for how you use the data, including GDPR and China's PIPL when you process personal data.

**How is it different from the most used Douban scraper?** That Actor lists movie comments as a known limit, returns review excerpts by default, charges $30 per 1,000 reviews and runs on 4 GB. This one reads movie and TV comments, returns full review text, takes charts as input, and charges $6 per 1,000 reviews at 256 MB.

**Does it cover Douban groups?** Not yet. Douban shows group topics mostly to logged-in users.

**Why is a field missing on a row?** Empty fields are left out. Books have no directors, and Douban hides a score until a title has enough ratings.

### ⚠️ Limits

- 200 short comments and about 40 long reviews per title, most helpful first (Douban's logged-out limit).
- No groups, user profiles, or newest-first order.
- A paced run reads about 5 rows per second. Douban blocks addresses that ask too fast, so the Actor waits between calls.

### 🔗 You might also like

- [Weibo Scraper](https://apify.com/benthepythondev/weibo-scraper)
- [Douyin Video Scraper](https://apify.com/benthepythondev/douyin-video-scraper)
- [Booking Reviews Scraper](https://apify.com/benthepythondev/booking-reviews-scraper)
- [G2 Reviews Scraper](https://apify.com/benthepythondev/g2-reviews-scraper)

**Keywords:** douban scraper, douban api, 豆瓣 scraper, douban reviews, douban comments, douban movie scraper, douban book scraper, douban music, douban top 250, chinese movie reviews, chinese book reviews, china sentiment analysis, chinese nlp dataset, 豆瓣电影, 豆瓣读书, 短评, 影评, douban ratings export

# Actor input Schema

## `subjectUrls` (type: `array`):

Movie, TV, book or album pages on Douban, e.g. https://movie.douban.com/subject/1292052/ or https://book.douban.com/subject/1007305/. Also takes ids: '1292052' (movie or TV) or 'book:1007305', 'music:1401853'. Each one gives a subject row, its short comments and its reviews.

## `charts` (type: `array`):

Read the subjects of Douban's own lists: Top 250, now showing, trending movies and TV, book bestsellers. Each subject keeps its chart and rank.

## `maxSubjectsPerChart` (type: `integer`):

How many subjects to take from the top of each chart (up to 250).

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

Find subjects by keyword in Chinese or English, e.g. 三体 or Interstellar. The top matches are read like links.

## `searchType` (type: `string`):

Which part of Douban the keywords search.

## `maxSubjectsPerSearch` (type: `integer`):

How many top search matches to read per keyword.

## `includeDetails` (type: `boolean`):

Save one row per subject: rating, vote count, 1-5 star distribution, genres, people, dates, intro, counts.

## `maxCommentsPerSubject` (type: `integer`):

Most helpful short comments (短评) per subject, 0 to 200. Douban shows logged-out visitors up to 200 per subject.

## `maxReviewsPerSubject` (type: `integer`):

Most helpful long reviews per subject, 0 to 40. Douban shows logged-out visitors up to about 40 per subject.

## `fullReviewText` (type: `boolean`):

Open each review for its whole text. Off: only the abstract the list shows (faster, same price).

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

Used only when Douban refuses the direct address.

## Actor input object example

```json
{
  "subjectUrls": [
    "https://movie.douban.com/subject/1292052/"
  ],
  "charts": [],
  "maxSubjectsPerChart": 10,
  "searchQueries": [],
  "searchType": "movie",
  "maxSubjectsPerSearch": 5,
  "includeDetails": true,
  "maxCommentsPerSubject": 20,
  "maxReviewsPerSubject": 5,
  "fullReviewText": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "subjectUrls": [
        "https://movie.douban.com/subject/1292052/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/douban-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 = {
    "subjectUrls": ["https://movie.douban.com/subject/1292052/"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/douban-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 '{
  "subjectUrls": [
    "https://movie.douban.com/subject/1292052/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call benthepythondev/douban-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,benthepythondev/douban-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/vmeiI2pfeAYDC0EOZ/builds/b8XfgU0LAbW3WcLKQ/openapi.json
