# Douban Scraper 豆瓣 — Ratings, Comments, Reviews & Groups (`peliex/douban-scraper`) Actor

Scrape Douban (豆瓣): movie/TV/book/music details and ratings, short comments (短评) with stars, full-text long reviews (影评/书评) and group (小组) discussions. No login. From $0.5 per 1,000 comments.

- **URL**: https://apify.com/peliex/douban-scraper.md
- **Developed by:** [hy c](https://apify.com/peliex) (community)
- **Categories:** Social media, AI, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 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.

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

### What does Douban Scraper do?

**Douban Scraper** extracts data from **Douban (豆瓣)**, China's largest community for rating and reviewing movies, TV shows, books and music, and home to thousands of interest groups (小组).

- 🎬 **Movies & TV, 📚 books, 🎵 music**: title, Douban rating and vote count, genres, tags, directors, cast, authors, ISBN, publisher, synopsis and more
- 💬 **Short comments (短评)** with the user's star rating, helpful votes and date: up to 200 per title
- 📝 **Long reviews (影评/书评)** with **full text**: up to 200 per title
- 👥 **Groups (小组)**: search groups and scrape their latest discussion topics, optionally with full post text
- 🚫 **No login, no cookies.** Fast JSON API, no browser
- 💸 **Among the cheapest on Apify**: $0.50 per 1,000 comments

### Who uses it?

- **Film, TV & publishing industry**: audience sentiment for a release, compared with competitor titles
- **Market research & brands**: what Chinese consumers say in Douban groups about products, cities and lifestyles
- **AI / NLP**: Chinese sentiment datasets (text + 1–5 star labels), long-form review corpora
- **Academics**: cultural studies, reception studies, social research on Chinese online communities

### How to use it

- **Search**: enter keywords, choose *Movies & TV*, *Books*, *Music* or *Groups*, and set how many results to take.
- **Direct**: paste subject URLs (`https://movie.douban.com/subject/26266893/`) or group URLs (`https://www.douban.com/group/beijingzufang/`).
- Choose how many **short comments** and **long reviews** to collect per title.

```json
{
  "searchQueries": ["三体"],
  "searchType": "book",
  "maxSearchResults": 3,
  "maxComments": 100,
  "maxReviews": 20,
  "fullReviewText": true
}
```

### Output examples

Every item has a `type`: `subject`, `comment`, `review`, `group` or `groupTopic`.

```json
{"type": "subject", "subjectType": "movie", "id": "26266893", "title": "流浪地球", "year": "2019",
 "rating": {"value": 7.9, "max": 10, "count": 2057828}, "genres": ["科幻", "冒险", "灾难"],
 "directors": ["郭帆"], "actors": ["吴京", "屈楚萧", "李光洁"], "countries": ["中国大陆"], "intro": "近未来，科学家们发现太阳急速衰老膨胀…"}
```

```json
{"type": "comment", "subjectId": "26266893", "id": "1655179164", "text": "电影比预期要更恢弘磅礴…",
 "rating": 4, "votes": 74568, "createdAt": "2019-02-04 15:56:16", "user": {"id": "1005928", "name": "影志"}}
```

```json
{"type": "review", "subjectId": "26266893", "id": "9943996", "title": "全面驳斥《流浪地球不及格》", "rating": 5,
 "usefulCount": 36089, "text": "（full review text, ~10,000 characters）", "createdAt": "2019-02-14 …"}
```

```json
{"type": "groupTopic", "group": "beijingzufang", "id": "500642837", "title": "芍药居5号院，三家合住，次卧，2100元…",
 "createdAt": "2026-09-23 10:01:40", "commentsCount": 0, "text": "…", "url": "https://www.douban.com/group/topic/500642837/"}
```

### Pricing

Pay only for what you get:

| Item | Price |
|---|---|
| Movie / book / music subject | $0.003 |
| Short comment | $0.0005 |
| Long review (with full text) | $0.002 |
| Group topic | $0.001 |
| Group (search result) | $0.001 |

Example: one movie + 200 comments + 20 full reviews costs about **$0.14**.

### Limits

- Without login, Douban shows up to **200 short comments** (most helpful first), about **200 reviews** per title, and about 500 recent topics per group.
- Data is in Chinese as published on Douban.

### Is it legal?

It collects only publicly visible data that anyone can see without logging in. Group posts may contain personal information. Handle it according to GDPR/PIPL and use the data responsibly.

### Feedback

Open an issue in the **Issues** tab and I usually respond within 24 hours.

# Actor input Schema

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

Search Douban for movies/TV, books, music or groups (e.g. 三体, 流浪地球, 租房). Every found subject is scraped with the comment/review options below.

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

Which Douban section the keywords search in.

## `maxSearchResults` (type: `integer`):

How many search results (subjects or groups) to take per keyword.

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

Movie, TV, book or music pages, e.g. https://movie.douban.com/subject/26266893/ or just 26266893.

## `maxComments` (type: `integer`):

Most-helpful short comments with star rating. Douban shows up to 200 without login. 0 = skip.

## `maxReviews` (type: `integer`):

Most-helpful long reviews. Up to 200. 0 = skip.

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

Fetch the complete text of every long review (otherwise only the abstract).

## `groupUrls` (type: `array`):

e.g. https://www.douban.com/group/beijingzufang/ — scrapes the latest discussion topics.

## `scrapeFoundGroups` (type: `boolean`):

Also scrape the latest topics of every group found by a Groups search.

## `maxTopicsPerGroup` (type: `integer`):

How many latest topics to take per group (Douban shows about 500 without login).

## `fullTopicText` (type: `boolean`):

Open every topic to get its full post text.

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

Apify Proxy is recommended for large runs.

## Actor input object example

```json
{
  "searchQueries": [
    "流浪地球"
  ],
  "searchType": "movie",
  "maxSearchResults": 5,
  "maxComments": 20,
  "maxReviews": 0,
  "fullReviewText": true,
  "scrapeFoundGroups": false,
  "maxTopicsPerGroup": 50,
  "fullTopicText": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped items in the default dataset.

## `overview` (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 = {
    "searchQueries": [
        "流浪地球"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("peliex/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 = {
    "searchQueries": ["流浪地球"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("peliex/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 '{
  "searchQueries": [
    "流浪地球"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call peliex/douban-scraper --silent --output-dataset

```

## MCP server setup

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