# Douban Scraper (Movies, Books, Music, Top 250, Reviews) (`locaihost/douban-scraper`) Actor

Douban movies, TV, books and music without login: Top 250 and hot charts, now playing, keyword search and subject links. Ratings, star split, credits, ISBN, release dates, summary, plus short comments and full reviews. Only-new mode for schedules.

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

## Pricing

from $2.20 / 1,000 subjects

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 (Movies, Books, Music, Top 250, Reviews)

Read Douban, China's largest site for rating films, TV, books and music, and get one row per title: Chinese title and original title, year, Douban score, number of ratings, the five-star split, genres, countries, languages, directors, cast, authors, translators, artists, publisher or label, ISBN, pages, runtime, episodes, release dates, summary, tags, cover and chart rank. Turn on reviews and the same run adds the visible short comments and long reviews of each title, with stars, full text, date and useful votes. Start from a chart (the three Top 250 lists, now playing, coming soon, the weekly best, popular TV, bestsellers and more), from search words in Chinese or English, or from Douban links and ids. Field names are English; Douban's Chinese text is kept as written. No login. The prefill (the first 10 titles of the Movie Top 250, each read in full) finishes in about 35 seconds.

### How do I start?

Paste this into the input (JSON tab) and press Start:

```json
{
    "charts": ["movie_top250"]
}
```

That returns the first 10 films of the Douban Movie Top 250, each read in full. Want the whole Book Top 250 and the 20 most useful comments on each book?

```json
{
    "charts": ["book_top250"],
    "maxItems": 250,
    "includeReviews": true,
    "maxCommentsPerSubject": 20,
    "maxReviewsPerSubject": 0
}
```

Search words, Douban links and bare ids work the same way, and can be mixed in one run:

```json
{
    "queries": ["三体", "Jason Mraz"],
    "subjects": [
        "https://movie.douban.com/subject/1292052/",
        "https://book.douban.com/subject/1007305/",
        "2995812"
    ],
    "maxItems": 20
}
```

A search reads movies, books and music unless `searchType` says otherwise. A bare id is tried as a movie, then a book, then an album, then a TV series. Chart links (`https://movie.douban.com/top250`) and search links copied from Douban are read too.

### Which charts can I read?

| `charts` value | What it is |
|---|---|
| `movie_top250` | Douban Movie Top 250 (豆瓣电影Top250) |
| `book_top250` | Douban Book Top 250 (豆瓣读书Top250) |
| `music_top250` | Douban Music Top 250 (豆瓣音乐Top250) |
| `movie_now_playing` | Now playing in cinemas (正在热映); set `city` for one city's list |
| `movie_coming_soon` | Coming soon (即将上映) |
| `movie_weekly_best` | Weekly best movies (一周口碑榜) |
| `movie_hot` | Popular movies (热门电影) |
| `movie_trending` | Trending movies (实时热门电影) |
| `tv_hot` | Popular TV series (热门剧集) |
| `tv_trending` | Trending TV (实时热门电视) |
| `tv_chinese` | Chinese TV series (国产剧) |
| `tv_american` | US TV series (美剧) |
| `tv_korean` | Korean TV series (韩剧) |
| `tv_japanese` | Japanese TV series (日剧) |
| `tv_animation` | Animated series (动画) |
| `tv_variety` | Variety shows (综艺) |
| `book_hot` | Popular books (热门图书) |
| `book_fiction` | Fiction (虚构类) |
| `book_nonfiction` | Non-fiction (非虚构类) |
| `book_bestseller` | Bestsellers (畅销图书) |

Douban's own list ids (`movie_showing`, `movie_real_time_hotest`, `show_hot` and the rest) work in `hotLists`, and chart links copied from Douban work in `subjects`.

### What does each row contain?

Every row has a `type`: `subject` (one title), `review` (one short comment or long review) or `summary` (one free row per chart, search or link). Columns a row type does not use are left out or empty. "card" columns come from the chart or search list alone; "full" columns need the title's own record, which is read by default (`subjectDetails`). A column Douban leaves blank is empty.

#### Subject rows

| Column | What it holds | From |
|---|---|---|
| `type` | `subject` | card |
| `id` | Douban subject id | card |
| `subjectType` | `movie`, `tv`, `book` or `music` | card |
| `url` | The title's Douban page | card |
| `title` | Title as Douban shows it (usually Chinese) | card |
| `originalTitle` | Original title, for example the English title of a film or a translated book | full |
| `aka` | Other titles, including Hong Kong and Taiwan names | full |
| `subtitle` | Book subtitle | full |
| `year` | Year of release or publication, as a number | card |
| `rating` | Douban score out of 10 | card |
| `ratingCount` | Number of ratings | card |
| `starDistribution` | Share of 5, 4, 3, 2 and 1 star ratings, in percent | full |
| `wishCount` | People who want to watch, read or listen | full |
| `doneCount` | People who have watched, read or listened | full |
| `doingCount` | People watching or reading now | full |
| `genres` | Genres (剧情, 犯罪, 民谣 and so on) | full |
| `countries` | Countries or regions of production | full |
| `languages` | Languages | full |
| `directors` | Directors' public names | full |
| `actors` | Cast, public names, in billing order | full |
| `authors` | Book authors | full |
| `translators` | Book translators | full |
| `artists` | Album artists | full |
| `publisher` | Book publisher | full |
| `producers` | Book producers (出品方) | full |
| `label` | Record label | full |
| `media` | Album format (Audio CD, digital and so on) | full |
| `series` | Book series | full |
| `runtimeMinutes` | Film or episode runtime in minutes | full |
| `episodes` | Number of TV episodes | full |
| `pages` | Book page count | full |
| `isbn` | Book ISBN, from the book's page | full |
| `binding` | Book binding (平装, 精装) | full |
| `price` | List price as printed, with its currency | full |
| `tracks` | Album track titles | full |
| `releaseDate` | First release or publication date, ISO (`1994-09-10`, `1982-03`) | full |
| `releaseDates` | Every release date Douban lists, with the region or festival as written | full |
| `summary` | Plot summary or book description, line breaks kept | full |
| `coverUrl` | Poster or cover image | card |
| `tags` | Tags Douban shows for the title | full |
| `honors` | Chart honors, for example `豆瓣电影Top250 #1` | full |
| `commentCount` | Number of short comments on Douban | full |
| `reviewCount` | Number of long reviews on Douban | full |
| `ratingNote` | Why there is no score yet, in Douban's words (for example 尚未上映) | full |
| `authorIntro` | About the author, from the book record | full |
| `catalog` | Book table of contents | full |
| `chart` | The chart this row came from, or empty | card |
| `chartRank` | Position in that chart | card |
| `cardSubtitle` | The one-line card Douban shows in lists (year / country / genre / director / cast) | card |
| `detailLevel` | `full` when the title's own record was read, `list` for card columns only | |
| `source` | The chart, search or link that produced the row | |
| `scrapedAt` | When the run read it, ISO UTC | |

#### Review rows

| Column | What it holds |
|---|---|
| `reviewKind` | `short` for a short comment (短评), `long` for a long review (影评, 书评, 乐评) |
| `id` | Douban id of the comment or review |
| `subjectId` | The title it is about |
| `subjectType` | `movie`, `tv`, `book` or `music` |
| `subjectTitle` | That title's name |
| `url` | Link to the review, or to the title's comments page for a short comment |
| `title` | Review headline (long reviews) |
| `rating` | The reviewer's stars, 1 to 5, or empty |
| `text` | The comment or review text, line breaks kept |
| `fullText` | `false` when only Douban's shortened text was available |
| `date` | When it was posted, ISO UTC |
| `usefulVotes` | "Useful" votes |
| `uselessVotes` | "Not useful" votes (long reviews) |
| `replies` | Replies under the review |
| `readCount` | Times the review was read, when Douban shows it |
| `reshareCount` | Times it was reshared, when Douban shows it |
| `spoiler` | Whether the reviewer marked it as a spoiler |
| `reviewerName` | The reviewer's public display name. No avatar, profile link or account id |

#### Summary rows (free)

| Column | What it holds |
|---|---|
| `kind` | `chart`, `search` or `subject` |
| `subjects` | Subject rows returned for this source |
| `reviews` | Review rows returned for this source |
| `skippedKnown` | Rows skipped because this setup returned them before (`onlyNew`) |
| `totalOnSite` | Douban's own count for the chart or search |
| `message` | What happened, in plain words, including "Nothing found" |

`source` and `scrapedAt` are on every row.

### What do the free rows give me?

One `summary` row per chart, search or link, never charged. It tells you how many titles Douban holds for a search, what was returned, what was skipped as already seen, and why a source returned nothing (an unknown id, an empty search, a block). Use the "Summary" view to see only these rows.

### What makes it different?

- Movies, TV, books and music in one Actor, in one shape, from charts, searches and links together.
- 20 charts, including all three Top 250 lists and now playing by city.
- Full records by default: the five-star split, want and done counts, credits, ISBN and binding, author intro and contents, release dates as ISO dates.
- Short comments and long reviews in the same run, with full review text, read counts and a per-title cap you set.
- `onlyNew` remembers what each saved task returned, so a daily schedule returns only new titles and new reviews.
- A title found by two charts or searches in one run is returned once.

### How fast is it?

Douban is read one request at a time, about 1.5 seconds apart. A title read in full takes two requests (three for a book, for the ISBN), so:

| Input | Requests | Time |
|---|---|---|
| Prefill: Movie Top 250, 10 titles in full | about 21 | about 35 s |
| Movie Top 250, all 250 titles, cards only (`subjectDetails: false`) | 13 | about 20 s |
| Movie Top 250, all 250 titles in full | about 513 | about 13 min |
| One title with 20 comments and 5 full reviews | about 9 | about 15 s |

Set the run timeout to match a large input. Near the time limit the run stops, keeps everything it read and says so.

### How much does it cost?

You pay per row returned: **$4 per 1,000 subjects** and **$3 per 1,000 reviews** on Free and Starter plans ($3.00 and $2.25 on Scale, $2.20 and $1.65 on Business), full records included. Starting a run costs $0.00005.

Summary rows are never charged. A search that finds nothing, an unknown id or a source Douban would not answer costs nothing, and so do titles and reviews skipped by `onlyNew`.

**Free Apify plan:** up to 1,000 rows per run. Any paid Apify plan removes the limit.

### Which inputs can I use?

| Input | What it does | Default |
|---|---|---|
| `charts` | Charts to read, from the table above | |
| `queries` | Search words, Chinese or English | |
| `subjects` | Douban subject links or ids, chart links and search links | |
| `maxItems` | Titles per chart or search (1 to 5,000) | 10 |
| `includeReviews` | Add short comments and long reviews of each title | false |
| `onlyNew` | Return only titles and reviews this saved task has not returned before | false |
| `searchType` | `all`, `movie` (includes TV), `book` or `music` | all |
| `subjectDetails` | Read each title in full; off returns chart and search cards only | true |
| `maxCommentsPerSubject` | Short comments per title (0 to 1,000) | 20 |
| `maxReviewsPerSubject` | Long reviews per title (0 to 1,000) | 5 |
| `reviewSort` | `hot` (most useful first) or `new` (newest first) | hot |
| `fullReviewText` | Read each long review in full; off keeps Douban's shortened text | true |
| `city` | City for `movie_now_playing`, in pinyin (`beijing`, `shanghai`) | nationwide |
| `proxyConfiguration` | Your own proxy, if you want one | our route |

Field names other Douban tools use (`startUrls`, `subjectUrls`, `subjectIds`, `keywords`, `searchKeywords`, `searchQuery`, `searchQueries`, `hotLists`, `maxResults`, `maxSubjectsPerList`, `fetchDetails`, `fetchFullReviewBody`) are read too, so a saved input from elsewhere usually works as it is.

### How do I track new titles and reviews over time?

Save your input as a task, turn on `onlyNew` and put the task on a schedule. Each run returns only titles and reviews that task has not returned before, and the summary row counts what was skipped. Without a task, the memory belongs to the exact set of charts, searches and links you gave.

### What should I know about the data?

- Douban shows titles, credits, genres and countries in Chinese; they are kept as written. `originalTitle` and `aka` often carry the English or original-language name.
- Douban's scores and counts change by the minute; each row is what Douban showed at `scrapedAt`.
- A chart, search or comment list can be shorter than its own total: Douban shows logged-out visitors a limited number of comments and search pages.
- Reviewers appear only by their public display name. The Actor returns no avatars, profile links, account ids or locations.

### What happens when something goes wrong?

- Bad input (nothing to read, an unknown chart or option, a link from another site) ends the run with a message and charges nothing. A bad line next to good ones is skipped with a warning.
- An id Douban does not have gets a free summary row saying so; the other sources carry on.
- If Douban turns a request away, the run retries through other addresses. If it still refuses, the run keeps what it read, says which source stopped and charges only for the rows returned.
- An input that reads many pages but returns few new rows (for example `onlyNew` on a long chart that has not changed) stops early with a note on how to narrow it.
- Near the run's time limit or your maximum charge, it stops early, saves everything and says so.

### Can I call it from an agent or my own code?

Yes. It works through the Apify API, the Apify MCP server and the Apify client libraries, with the same input as above. An agent can pass a film or book name in `queries` and read one row per match, or ask for a Top 250 list with `subjectDetails: false` for a fast, cheap answer.

### Is it legal to collect Douban data?

The Actor reads pages anyone can see on Douban without signing in. It never logs in and never sends cookies. Reviews come with the reviewer's public display name only, and no contact details of anyone. Douban's user agreement limits copying and commercial reuse of its content, and reviews belong to the people who wrote them. You are responsible for how you use the data, including Douban's terms, copyright and the data protection laws that apply to you.

### Questions or problems?

Open an issue on the Issues tab and we will answer within a day. If the Actor helped, a rating on the Store helps other people find it.

# Changelog

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

# Actor input Schema

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

Douban charts to read, in chart order. Top 250 lists hold 250 titles; the hot and now-playing lists change daily.

## `queries` (type: `array`):

Words to search Douban for, in Chinese or English (for example 三体 or Jason Mraz). Each search reads movies, books and music unless you set Search in below.

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

Subject links (https://movie.douban.com/subject/1292052/), bare ids (1292052), or chart and search links from Douban.

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

How many subjects to read from each chart or search. Links always return their one subject.

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

Adds the visible short comments and long reviews of each subject, up to the caps under Advanced.

## `onlyNew` (type: `boolean`):

Return only subjects and reviews this saved task (or this exact input) has not returned before. Ideal for daily schedules.

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

Which part of Douban the search words look in. TV series are found under movie.

## `subjectDetails` (type: `boolean`):

Reads each subject in full: credits, summary, release dates, star split, ISBN. Turn off for chart and search cards only (faster, fewer fields).

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

Used when comments and reviews are on. 0 skips short comments.

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

Used when comments and reviews are on. 0 skips long reviews.

## `reviewSort` (type: `string`):

Most useful first, or newest first.

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

Reads each long review in full. Off returns the shortened text Douban shows in lists (one request less per review).

## `city` (type: `string`):

For the now-playing chart: a city in pinyin as Douban writes it (beijing, shanghai, guangzhou). Empty reads the nationwide list.

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

Leave empty to use our own route. Set a proxy only if you want requests to go through yours.

## Actor input object example

```json
{
  "charts": [
    "movie_top250"
  ],
  "maxItems": 10,
  "includeReviews": false,
  "onlyNew": false,
  "searchType": "all",
  "subjectDetails": true,
  "maxCommentsPerSubject": 20,
  "maxReviewsPerSubject": 5,
  "reviewSort": "hot",
  "fullReviewText": true
}
```

# Actor output Schema

## `subjects` (type: `string`):

One row per movie, TV series, book or album: title, original title, year, rating, rating count, genres, countries, chart rank and link.

## `details` (type: `string`):

Credits, publisher or label, ISBN, pages, runtime, episodes, release date, languages, star split, want and done counts, summary.

## `reviews` (type: `string`):

Short comments and long reviews: rating, text, date, useful votes and the reviewer's public display name.

## `summaries` (type: `string`):

One free row per chart, search or link: what was returned, what was skipped as known, and Douban's own total.

## `summary` (type: `string`):

Sources read, rows returned, rows skipped as known, requests and cost.

# 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 = {
    "charts": [
        "movie_top250"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/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 = { "charts": ["movie_top250"] }

# Run the Actor and wait for it to finish
run = client.actor("locaihost/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 '{
  "charts": [
    "movie_top250"
  ]
}' |
apify call locaihost/douban-scraper --silent --output-dataset

```

## MCP server setup

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