# Douban Scraper - Movies, Books, Music, Reviews and Rankings (`neverempty/douban-scraper`) Actor

Scrape Douban (豆瓣) without login: search movies, books and music, read ranking lists, work pages with ratings, cast, authors and intros, plus reviews and short comments. No start fee, you pay per row returned.

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

## Pricing

from $4.50 / 1,000 item returneds

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, Reviews and Rankings

**Get Douban (豆瓣) movies, books, music, reviews and rankings as clean rows in one run.** Search by title in Chinese or English, read the ranking lists, or paste work links, and get one row per work with rating, year, cast or authors, genres and intro. Add the long reviews and the short star comments of any work. No Douban account needed.

- **Search movies, TV, books and music.** Type search words (`inception`, `三体`) and choose the type. Each result comes back as a row with title, original title, year, rating, number of ratings and the Douban link.
- **Read the ranking lists.** Pick from the Top lists, hot movies, now showing, weekly best, hot TV series, variety shows, popular non-fiction and hot singles. Rows keep the rank.
- **Full details for any work.** Paste work links or numbers into **Work links or numbers**: directors, actors, genres, countries, languages, runtime, release dates, other titles, tags, authors, publisher, pages, ISBN, artists, intro and cover link.
- **Reviews and short comments.** Set **Reviews per work** for the long reviews with the full text, author name, star rating, useful votes and date. Set **Short comments per work** for the star ratings and one-line opinions.
- **Ready for analysts and AI agents.** Short, fixed column names. Lists are real lists. Chinese text stays as written.
- **No start fee.** You pay per row returned: works and short comments are one price, long reviews another. Rows that explain why something was not returned (no results, not found, duplicate, invalid input, limit reached) are free.
- **Same shape every run.** Schedule it daily or weekly and compare the rows.

### How to use it

1. Type one or more lines into **Search queries**, pick the **Search type**, or choose **Rankings**.
2. Optionally paste **Work links or numbers** and set **Reviews per work** and **Short comments per work**.
3. Run it, then export the dataset as JSON, CSV or Excel, or connect it to Google Sheets, Slack, n8n, Make or Zapier through Apify integrations.

The input is plain JSON when you call it from your own code:

```json
{
  "searchQueries": ["inception"],
  "searchType": "movie",
  "rankings": ["movie_top250"],
  "subjects": ["https://movie.douban.com/subject/1292052/"],
  "reviewsPerSubject": 10,
  "commentsPerSubject": 20,
  "maxItemsPerSource": 50
}
```

Leave Search queries, Work links and Rankings empty and the Actor reads a small example ranking, so a first test run costs a few cents.

### Input

| Field | What it does |
|---|---|
| `searchQueries` | Search words, one per line. |
| `searchType` | `movie`, `book` or `music`. |
| `subjects` | Work links, `book:2567698`-style numbers or plain numbers. |
| `rankings` | Ranking names such as `movie_top250`, `book_top250`, `tv_hot`. |
| `reviewsPerSubject` | Long reviews per work from Work links. |
| `reviewSort` | `hot` (most useful) or `time` (newest). |
| `includeReviewText` | Full review text on or off. |
| `commentsPerSubject` | Short comments per work from Work links. |
| `maxItemsPerSource` | Works per search or ranking. |
| `maxItems` | Total rows in the run. |

### Output

Every row has `entity` (`subject`, `review` or `comment`), `source`, `type`, `id` and `url`.

- **Works** (`entity: subject`): `title`, `originalTitle`, `year`, `rating`, `ratingCount`, `rank`, `rankingName`, `genres`, `countries`, `directors`, `actors`, `authors`, `publisher`, `isbn`, `artists`, `intro`, `coverUrl`, `reviewCount`, `commentCount` and more.
- **Reviews** (`entity: review`): `subjectId`, `subjectTitle`, `title`, `author` (display name), `authorRating`, `text`, `excerpt`, `usefulCount`, `createdAt`.
- **Short comments** (`entity: comment`): `subjectId`, `author` (display name), `authorRating`, `text`, `usefulCount`, `createdAt`.
- **Free rows** carry a `status` other than `ok` and a `note` that says what happened.

### Pricing

Pay per row returned, with no start fee. Works and short comments are charged as `item-returned`, long reviews as `review-returned`. Free rows are never charged. Set a maximum cost in the run options and the Actor stops at that limit.

### Limits

- Search lists read up to 500 results per query, a work gives up to 40 reviews per sort order and up to 150 short comments.
- Only public pages are read. Reviewers appear by display name only; no personal profile data is returned and e-mail addresses and phone numbers in texts are masked.
- The Actor is not affiliated with Douban.

### Support

If something does not work, open the **Issues** tab with the run ID and we will look at it.

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Missing a field, or need another ranking?** Tell us in the **Issues** tab. If the data is there, we add it.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

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

One search per line, as you would type it into the Douban search box (Chinese or English). Every work found is returned as a row, up to Results per source. Leave Search queries, Work links and Rankings empty to read one example ranking.

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

What the search queries look for. It is also the type used for work numbers without a link.

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

Optional. One per line: a Douban work link (https://movie.douban.com/subject/1292052/), a typed number such as book:2567698, or a plain number with the Search type. Each work comes back as one row with the full details.

## `rankings` (type: `array`):

Optional. One per line. Available: movie_top250, book_top250, movie_hot_gaia, movie_showing, movie_weekly_best, tv_hot, tv_domestic, tv_variety_show, tv_global_best_weekly, book_nonfiction, music_single.

## `reviewsPerSubject` (type: `integer`):

For every work in Work links: how many long reviews to return as extra rows (0 to 40). 0 returns none.

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

Order of the reviews of each work.

## `includeReviewText` (type: `boolean`):

On: each review row has the full text. Off: only the short excerpt, which is faster.

## `commentsPerSubject` (type: `integer`):

For every work in Work links: how many short comments with a star rating to return as extra rows (0 to 150). 0 returns none.

## `maxItemsPerSource` (type: `integer`):

How many works to return for each search query or ranking (1 to 500).

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

Stops the run after this many rows, works, reviews and comments together (1 to 20000).

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

Optional. By default the Actor connects directly. Choose a proxy to send requests from other addresses, for example for long runs.

## Actor input object example

```json
{
  "searchQueries": [
    "inception",
    "三体"
  ],
  "searchType": "movie",
  "reviewsPerSubject": 0,
  "reviewSort": "hot",
  "includeReviewText": true,
  "commentsPerSubject": 0,
  "maxItemsPerSource": 25,
  "maxItems": 1000
}
```

# Actor output Schema

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

One row per work (title, year, rating, cast or authors, intro and the Douban link), per long review (full text, author name, date, useful count) and per short comment (stars and text). An input that matches nothing, a duplicate, a work that is gone, a page that could not be read or a run that hit its limit comes back as a free row that says why.

# 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": [
        "inception",
        "三体"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/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": [
        "inception",
        "三体",
    ] }

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

```

## MCP server setup

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