# Douban Scraper (`automly/douban-scraper`) Actor

Scrape Douban (豆瓣) films, TV shows, books and music: ratings with the full star split, directors and cast, synopsis, tags, charts like the Top 250, keyword search, short comments and whole long reviews. No login or cookies.

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

## Pricing

from $0.99 / 1,000 titles

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

### What is Douban Scraper?

**Douban Scraper** is a tool that lets you **scrape Douban (豆瓣) films, TV shows, books and music albums**: the Douban rating with its full 5-star split, votes, genres, countries, release dates, runtime, episodes, synopsis, tags, directors and the full cast with their characters, authors, publisher, pages, album tracks, chart places, **short comments (短评)** and **whole long reviews (影评, 书评, 乐评)**. Paste Douban links, type search keywords or pick a chart such as the **Douban Top 250**, click **Start**, and download the data as Excel, CSV or JSON.

- ⚡ **Fast:** 1,000 short comments and whole long reviews in about 75 seconds, 100 films with full details in under a minute, 1,000 in about 6 minutes (our tests)
- 🎬 **Films, TV, books and music** in one scraper, from links, keyword search or charts
- ⭐ **Full rating data:** score, votes, the share of every star from 5 to 1, and how a title ranks in its genre
- 🏆 **Douban charts:** Top 250 films, books and albums, now in cinemas, trending films and TV, weekly best lists
- 💬 **Short comments** with stars, date and likes, most liked first
- 📝 **Long reviews in full**, not just the first lines, with helpful votes, replies and reads, thousands per popular title
- 🔓 **No login:** no Douban account, cookies or API key needed

### What can Douban Scraper do?

- Scrape any **Douban film or TV show** (豆瓣电影) from its link or ID: rating, star split, genres, countries, languages, release dates, runtime, episodes, synopsis, tags, and the directors and full cast with their characters
- Scrape **Douban books** (豆瓣读书): authors, translators, publisher, pages, price, series, synopsis, author biography and table of contents
- Scrape **Douban music** (豆瓣音乐): artists, label, release date, media and track list
- **Search Douban** by keyword for films and TV, books or albums, up to 3,000 titles per keyword
- Scrape **Douban charts**: Top 250 films, Top 250 books, Top 250 albums, now in cinemas, coming soon, popular films, popular TV series and variety shows, trending now and the weekly best lists
- Scrape **Douban short comments** and **Douban reviews** of every title you scrape
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from Douban?

| | | |
|---|---|---|
| 🎬 Title, original title, other titles | ⭐ Douban rating and votes | 📊 5-star rating split |
| 🎭 Genres and tags | 🌍 Countries and languages | 📅 Release dates and year |
| ⏱️ Runtime and episodes | 🎥 Directors and full cast with characters | 📖 Synopsis |
| ✍️ Authors, translators, publisher | 📚 Pages, price, series, contents | 🎵 Artists, label, tracks |
| 🏆 Chart rank and honors | 👀 Want to see, seen, in progress counts | 🖼️ Poster or cover |
| 💬 Comment text, stars, likes, date | 📝 Whole review text, title, stars | 👍 Helpful votes, replies, reads |

### How to scrape Douban

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Douban Scraper**.
3. Paste **Douban links** (films, TV shows, books, albums, reviews or charts), type **search keywords** (e.g. 科幻), and/or pick **Douban charts** such as the Top 250.
4. Keep **Full title details** on for the complete record, and turn on **short comments** or **long reviews** if you need them. Click **Start**.
5. When the run finishes, download your data as Excel, CSV, JSON, HTML or XML.

### How much does it cost to scrape Douban?

Douban Scraper charges per result: each title, short comment and long review is one result, priced by type, and a title opened for its full record is priced apart from a title saved as a search or chart lists it. The exact prices for your Apify plan are on the **Pricing** tab. A free Apify account comes with monthly credit, enough to try the scraper on a few thousand rows.

Tips to keep the cost down:

- Set **Max results** to what you need: the run stops there.
- Turn **Full title details** off when the search or chart row is enough (title, rating, votes, year and summary line).
- Turn on **comments** and **reviews** only when you need them, and set how many per title.

### ⬇️ Input

| Field | What to enter |
|---|---|
| **Douban links or IDs** | Title links (`https://movie.douban.com/subject/1292052/`, `https://book.douban.com/subject/2567698/`, `https://music.douban.com/subject/26812952/`, mobile `m.douban.com` links), review links (`https://movie.douban.com/review/1000369/`), chart links (`https://movie.douban.com/top250`), or numeric title IDs |
| **Search keywords** | Words to search Douban for, e.g. `科幻`, `三体`, `宫崎骏`, `Nolan` |
| **Search in** | Films and TV shows, books, or music albums |
| **Douban charts** | Top 250 films, books or albums, now in cinemas, popular TV and more |
| **Titles per search or chart** | Most titles to save per keyword or chart, e.g. 50 |
| **Full title details** | On: every title with its full record. Off: titles as the search or chart lists them |
| **Include short comments** / **Comments per title** | Save each title's short comments, most liked first |
| **Include long reviews** / **Reviews per title** | Save each title's long reviews with their whole text |
| **Max results** | Most rows in the whole run; 0 for no limit |

Example input:

```json
{
    "startUrls": ["https://movie.douban.com/subject/1292052/"],
    "searchQueries": ["三体"],
    "searchType": "book",
    "charts": ["movie_top250"],
    "maxTitles": 50,
    "includeDetails": true,
    "includeComments": true,
    "maxComments": 50,
    "includeReviews": true,
    "maxReviews": 20
}
```

### ⬆️ Output

Every row has a `type`: `subject` (a film, TV show, book or album), `comment` or `review`. `subjectType` says which kind of title: `movie`, `tv`, `book` or `music`. Here is a film with its full record (cast and lists shortened):

```json
{
  "type": "subject",
  "subjectType": "movie",
  "id": "1292052",
  "url": "https://movie.douban.com/subject/1292052/",
  "title": "肖申克的救赎",
  "originalTitle": "The Shawshank Redemption",
  "year": 1994,
  "rating": 9.7,
  "ratingCount": 3353926,
  "summary": "1994 / 美国 / 剧情 犯罪 / 弗兰克·德拉邦特 / 蒂姆·罗宾斯 摩根·弗里曼",
  "coverUrl": "https://img3.doubanio.com/view/photo/m_ratio_poster/public/p2934829882.jpg",
  "detailed": true,
  "genres": ["剧情", "犯罪"],
  "countries": ["美国"],
  "languages": ["英语"],
  "durations": ["142分钟"],
  "directors": ["弗兰克·德拉邦特"],
  "actors": ["蒂姆·罗宾斯", "摩根·弗里曼", "鲍勃·冈顿"],
  "cast": [
    {"name": "弗兰克·德拉邦特", "latinName": "Frank Darabont", "role": "导演", "character": null, "id": "1047973", "url": "https://movie.douban.com/celebrity/1047973/"},
    {"name": "蒂姆·罗宾斯", "latinName": "Tim Robbins", "role": "演员", "character": "饰 安迪·杜佛兰 Andy Dufresne", "id": "1054521", "url": "https://movie.douban.com/celebrity/1054521/"}
  ],
  "akas": ["月黑高飞(港)", "刺激1995(台)"],
  "synopsis": "一场谋杀案使银行家安迪（蒂姆·罗宾斯 Tim Robbins 饰）蒙冤入狱……",
  "tags": ["犯罪", "越狱", "励志", "信念"],
  "ratingDistribution": {"5": 85.4, "4": 13.0, "3": 1.4, "2": 0.1, "1": 0.1},
  "beatsInGenre": [{"genre": "犯罪片", "percent": 99}, {"genre": "剧情片", "percent": 99}],
  "wishCount": 520754,
  "doneCount": 5763509,
  "commentCount": 669183,
  "reviewCount": 15025,
  "honors": ["豆瓣电影Top250 #1"],
  "source": "https://movie.douban.com/subject/1292052/",
  "scrapedAt": "2026-10-28T06:00:00Z"
}
```

A book also has `authors`, `translators`, `publisher`, `pages`, `price`, `subtitle`, `series`, `authorIntro` and `tableOfContents`; an album has `artists`, `publisher`, `media` and `tracks`; a TV show has `episodes`. A title from a chart also has its `rank` and `chart`.

A short comment:

```json
{
  "type": "comment",
  "id": "32514679",
  "subjectId": "1292052",
  "subjectType": "movie",
  "subjectTitle": "肖申克的救赎",
  "subjectUrl": "https://movie.douban.com/subject/1292052/",
  "text": "恐惧让你沦为囚犯，希望让你重获自由。——《肖申克的救赎》",
  "rating": 5,
  "createdAt": "2008-02-27T13:43:23Z",
  "votes": 26530,
  "authorName": "如小果",
  "authorUrl": "https://www.douban.com/people/1289463/"
}
```

A long review (text shortened):

```json
{
  "type": "review",
  "id": "1000369",
  "url": "https://movie.douban.com/review/1000369/",
  "subjectId": "1292052",
  "subjectType": "movie",
  "subjectTitle": "肖申克的救赎",
  "title": "十年·肖申克的救赎",
  "text": "距离斯蒂芬·金（Stephen King）和德拉邦特（Frank Darabont）们缔造这部伟大的作品已经有十年了……",
  "rating": 5,
  "spoiler": false,
  "createdAt": "2005-05-12T12:44:13Z",
  "usefulCount": 18957,
  "uselessCount": 735,
  "replies": 1082,
  "reshares": 2204,
  "reads": 1429480,
  "authorName": "大头绿豆",
  "authorUrl": "https://www.douban.com/people/1000152/"
}
```

### How can I use Douban data?

- **Film, TV and book market research in China:** see how Chinese audiences rate and talk about titles, genres and studios.
- **Sentiment analysis and AI training data:** star-rated Chinese comments and long-form reviews are ready-made labelled text.
- **Recommendation systems and catalogs:** build title databases with ratings, genres, cast and crew, and tags.
- **Publishing and music research:** compare books and albums by rating, votes, publisher, label and reader comments.
- **Box office and release tracking:** follow what is in cinemas now and coming soon, and how ratings move after release.

### How to track Douban ratings or charts over time

Create a task with your titles or charts (e.g. **Now in cinemas** with **Full title details** on), then add a **schedule** in Apify Console to run it every day. Each run saves the ratings, votes and star split of that day, so you can see how a title's score changes after release. Send every run's dataset to Google Sheets, Slack or your own system.

### Use Douban Scraper from your code

Run it from Python with the Apify client:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("automly/douban-scraper").call(run_input={
    "charts": ["movie_top250"],
    "maxTitles": 250,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["rank"], item["title"], item["rating"])
```

### Use with AI agents (MCP)

AI agents can run Douban Scraper through the Apify MCP server. Ask in plain words, for example: "Get the Douban rating and the 50 most liked short comments of 漫长的季节", and the agent sends `{"startUrls": ["https://movie.douban.com/subject/35588177/"], "includeComments": true, "maxComments": 50}`.

### ❓FAQ

#### How much does it cost to scrape Douban?

You pay per result: per title, per short comment and per long review, with the prices for your plan on the **Pricing** tab. A free Apify account's monthly credit covers a few thousand rows.

#### Can I scrape the Douban Top 250?

Yes. Pick **Top 250 films**, **Top 250 books** or **Top 250 albums** under **Douban charts** and set **Titles per search or chart** to 250. Each row has its chart rank, and with **Full title details** on the full record of the title.

#### How many short comments can I get for one title?

About 150 for a film or TV show and 100 for a book, most liked first: that is how many Douban shows visitors who are not signed in. Each comment has its stars, date and likes.

#### How many reviews can I get for one title?

All of them for most films, TV shows and books: popular titles have thousands of long reviews, and each one is saved with its whole text. Albums show about 40 reviews. A few reviews are shown to signed-in Douban users only; those are skipped and counted in the run report.

#### How many results can one search return?

Douban lists up to 3,000 titles per keyword. Search with Chinese titles and names for the most results (三体, not The Three-Body Problem).

#### Do I need a Douban account?

No. Douban Scraper reads what Douban shows any visitor. You don't need an account, cookies or an API key.

#### Can I scrape newest comments first?

No. Douban shows newest-first comments and reviews to signed-in users only, so the scraper reads them most liked first (comments) and in Douban's own order (reviews).

#### Does it give personal data about reviewers?

Only the public display name and profile link of the author of each comment or review. Phone numbers and emails typed into texts are replaced by `[removed]`.

#### Is it legal to scrape Douban?

Douban Scraper collects public data that anyone can see without signing in. You are responsible for how you use it: follow Douban's terms, copyright and the data protection laws that apply to you (for example China's PIPL and the GDPR), and don't republish personal data without a legal basis. Douban Scraper is not affiliated with or endorsed by Douban.

#### Something isn't working. What should I do?

Open the **Issues** tab and tell us the input you used and what you expected. We usually answer within a day. If the scraper works well for you, a review on the Store helps other users find it.

# Actor input Schema

## `startUrls` (type: `array`):

Douban title links, one per line, e.g. https://movie.douban.com/subject/1292052/ (a film or TV show), https://book.douban.com/subject/2567698/ (a book), https://music.douban.com/subject/26812952/ (an album), mobile m.douban.com links, review links like https://movie.douban.com/review/1000369/, chart links like https://movie.douban.com/top250, or a numeric title ID.

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

Words to search Douban for, one per line, e.g. 科幻, 三体, 宫崎骏 or Nolan. Chinese titles and names find the most. Each keyword lists matching titles in Douban's own order.

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

What the keywords search: movie (films and TV shows together), book or music.

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

Douban charts to scrape, e.g. Top 250 films or Now in cinemas. Each chart gives its titles in chart order with their rank. Works with no links or keywords too.

## `maxTitles` (type: `integer`):

Most titles to save from each keyword or chart, e.g. 50. Douban lists up to 3,000 titles per keyword.

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

Keep on to open every title for its full record: star rating split, genres, countries, languages, release dates, runtime, episodes, synopsis, tags, directors and full cast, authors, publisher, pages, tracks, wish/watched counts and chart honors. Off saves search and chart rows as they are listed (faster and cheaper).

## `includeComments` (type: `boolean`):

Also save each title's short comments (短评) with their star rating, date and likes, most liked first. Each comment is its own row.

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

Most short comments to save per title, e.g. 20. Douban shows visitors who are not signed in about 150 comments of a film or TV show and 100 of a book.

## `includeReviews` (type: `boolean`):

Also save each title's long reviews (影评, 书评, 乐评) with their whole text, star rating, date, helpful votes, replies and reads. Each review is its own row.

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

Most long reviews to save per title, e.g. 20. Popular films and books have thousands; albums show about 40.

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

Most rows to save in the whole run (titles, comments and reviews together), e.g. 500. Leave 0 for no limit.

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

Leave the default.

## Actor input object example

```json
{
  "startUrls": [
    "https://movie.douban.com/subject/1292052/"
  ],
  "searchQueries": [
    "科幻"
  ],
  "searchType": "movie",
  "maxTitles": 10,
  "includeDetails": true,
  "includeComments": false,
  "maxComments": 20,
  "includeReviews": false,
  "maxReviews": 20,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `titles` (type: `string`):

No description

## `comments_reviews` (type: `string`):

No description

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

No description

## `report` (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 = {
    "startUrls": [
        "https://movie.douban.com/subject/1292052/"
    ],
    "searchQueries": [
        "科幻"
    ],
    "maxTitles": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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