# Douban Movie & TV Scraper: Highly Rated Titles (`scrapingmonkey/douban-scraper`) Actor

Collect Douban's highly rated movie and television discovery lists. Export titles, release years, rating scores, rating counts and posters to compare film catalogs and build Chinese movie recommendation research datasets.

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

## Pricing

from $1.00 / 1,000 results

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** collects films and television series from Douban’s public discovery lists. Export titles, release years, audience ratings, rating counts and poster links to build movie research catalogs, compare audience interest and prepare editorial shortlists around the titles available in discovery.

Turn Douban discovery results into a catalog you can sort and compare. Keep ratings and vote counts beside each title so editorial and entertainment teams can prioritize further research.

| At a glance | Details |
|---|---|
| 📥 Input | Search fields or links to the selected items; see the examples below |
| 📤 Output | One row per film or television series |
| 📄 Pagination | Automatic up to `maxResults` for each input, when more results are available |
| 🔐 Login required | No |
| ⚡ Processing | Multiple inputs per run with automatic retries for temporary errors |
| 💾 Delivery | One complete Apify dataset table; CSV, JSON and Excel export |

### What the Douban scraper collects 📱

Collect highly rated film and television discovery lists with ratings, years, rating counts and posters.

| Collection | What you receive |
|---|---|
| Douban highly rated movies and TV series scraper | Collect highly rated Douban films and television series with titles, years, rating values, rating counts and posters. |

Data can include:

- Titles: Film or series titles, subtitles, subject IDs and source links.
- Release information: Release years and subject types.
- Ratings: Rating values, rating counts and the reported rating scale.
- Images: Poster URLs and available photo references.
- Series and tags: Available episode information and discovery tags.

### How to scrape Douban 🚀

1. Open the Actor input form.
2. Fill in the search fields, or paste links to the items you want to collect.
3. Set the maximum results and any optional filters.
4. Start the Actor and review the collected rows.
5. Export the dataset or connect it to your application.

#### Douban highly rated movies and TV series scraper — input example

```json
{
  "mode": "douban_discovery",
  "contentType": "movie",
  "maxResults": 10
}
```

`maxResults: 10` means up to 10 results for **each input**. It does not guarantee that the website has that many matches. You can set the limit as low as 1.

### Douban data fields and complete output 📦

| Field group | Included data |
|---|---|
| Titles | Film or series titles, subtitles, subject IDs and source links. |
| Release information | Release years and subject types. |
| Ratings | Rating values, rating counts and the reported rating scale. |
| Images | Poster URLs and available photo references. |
| Series and tags | Available episode information and discovery tags. |

Each collected item is a separate row. `input` identifies the submitted value and `result_type` identifies the selected mode. All returned fields appear in one table; columns that do not apply to a mode can be empty.

A complete JSON result is shown for every collection mode below, in the same order as the input examples. Each example includes every field for its mode; text and lists are not shortened. Values are representative and can change.

#### Douban highly rated movies and TV series scraper — complete JSON result

```json
{
  "result_type": "douban_discovery",
  "input": "movie",
  "status": "success",
  "id": "26725031",
  "subject_id": "26725031",
  "subject_type": "movie",
  "url": "https://movie.douban.com/subject/26725031/",
  "title": "是，大臣 1984圣诞特辑",
  "year": "1984",
  "subtitle": "1984 / 英国 / 喜剧 / 彼得·惠特莫尔 / 保罗·爱丁顿 奈杰尔·霍桑",
  "rating_value": 9.8,
  "rating_count": 18015,
  "rating_max": 10,
  "poster_url": "https://img2.doubanio.com/view/photo/m_ratio_poster/public/p2667863201.jpg",
  "photo_urls": [
    "https://img2.doubanio.com/view/photo/m/public/p2667867421.jpg",
    "https://img9.doubanio.com/view/photo/m/public/p2581565675.jpg",
    "https://img3.doubanio.com/view/photo/m/public/p2375051263.jpg",
    "https://img9.doubanio.com/view/photo/m/public/p2375054116.jpg"
  ],
  "episodes_info": "",
  "tags": [
    "英国 喜剧 黑色幽默"
  ]
}
```

Images, tags and other lists stay with their parent result instead of creating extra rows. Invalid or unavailable inputs, inputs with no results, and requests that fail after all retries produce a row with `status: failed`. At most one failed row is saved per input; it includes `error_code` and `error_message` explaining the outcome. A normal end of pagination after collected results does not add a failed row.

### Input requirements and collection settings ⚙️

| Setting | What to enter |
|---|---|
| **Maximum results per search or link** (`maxResults`) | Collect up to this many results for each search or link. Minimum: 1. |
| **What to browse** (`contentType`) | Choose movies or TV series. |

| Collection mode | Fields to use |
|---|---|
| Movie & TV Discovery | **What to browse** |

The result limit applies separately to each search or supplied link. Collection ends earlier when no more matching results are available.

### Douban scraping use cases 🎯

#### Film shortlists

Build an editorial shortlist from the films exposed in Douban discovery.

#### Television research

Collect series titles with ratings and available episode information.

#### Audience comparison

Compare rating values together with the number of ratings for selected titles.

#### Entertainment catalogs

Enrich a discovery catalog with posters, years and original Douban links.

#### Editorial planning

Review discovery titles when selecting films or series for coverage.

### Pricing and saved-result behavior 💰

See the Actor's **Pricing** tab for the active pricing model and current rate. Store settings may change, so this README does not claim a fixed cost.

Under dataset-item pricing:

- Each collected item saved in the dataset is one result.
- Images, tags and other values attached to that item do not create additional rows.
- Automatic retry attempts do not create extra dataset rows.
- A saved `failed` row is also one billable dataset item, including invalid inputs, unavailable items, no results, or exhausted retries. At most one failed row is saved per input, including when some results were already collected.
- `maxResults` caps all saved rows for each input, including its failed row. Repeated copies of the same input are processed once. More inputs or a higher limit can produce more saved results.

### Douban scraper API and integrations 🔌

Replace `$ACTOR_ID` with the ID shown in the Actor API tab and `$APIFY_TOKEN` with your token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"douban_discovery","contentType":"https://movie.douban.com/explore?type=movie","maxResults":10}'
```

Use schedules for recurring collection, webhooks for completion notifications, and Apify integrations for Google Sheets, Make, Zapier, cloud storage, a CRM or your own application.

### Reliability, retries, and public-data limits ⚠️

Temporary connection errors, timeouts and access restrictions are retried automatically, up to five attempts. Invalid inputs save a failed row without an HTTP request; confirmed unavailable items save a failed row without unnecessary retries. Exhausted retries also save a failed row. Results already collected remain available if a later request fails, and normal pagination completion adds no error row. Collection also stops after two consecutive fully processed pages add no new results, even if the website provides another cursor. Required detail lookups are completed before checking a page; new results reset the counter, and independent reply branches are checked separately. Failures while initializing the Actor, saving data or scheduling requests stop the run instead of being reported as a failed website result.

This actor covers discovery lists, not arbitrary title search, individual reviews or full subject-page details.

Discovery uses the supported high-rating film or television catalog; additional filters are not included.

Douban controls which information is publicly available. Removed, private or restricted items may be unavailable, and optional values can be null or empty. A run can still fail if the results cannot be saved.

### Frequently asked questions ❓

#### Does it require an account on Douban?

No. You do not need to provide an account, password or login cookies. Only publicly available information is collected.

#### How does maxResults work?

It limits the number of saved results separately for every input. The minimum is 1. With maxResults set to 10, each input returns at most 10 available results.

#### Can I search Douban for an exact movie title?

This actor collects the supported film and television discovery lists; it does not offer a title-search mode.

#### Are individual user reviews included?

No. The output includes available rating values and rating counts, not review text.

#### Why are some fields empty?

The website may not publish that value, or the field may belong to a different collection mode. Missing values remain null or empty instead of being guessed.

#### Can I export the results to a spreadsheet?

Yes. Download CSV, Excel or JSON from the Apify dataset. All returned fields are included in the same results table.

### Support and responsible use 🛟

For a reproducible issue, share the run ID, selected mode, result limit and a safe public example through the support channel. Never disclose access tokens, passwords or proxy credentials.

Use public Douban information lawfully and responsibly. Follow applicable privacy, copyright, data-protection, contractual and platform requirements when storing, analyzing or redistributing results.

# Actor input Schema

## `mode` (type: `string`):

Choose the information to collect.

## `maxResults` (type: `integer`):

Collect up to this many results for each search or link. Minimum: 1.

## `contentType` (type: `string`):

Choose movies or TV series.

## Actor input object example

```json
{
  "mode": "douban_discovery",
  "maxResults": 10,
  "contentType": "movie"
}
```

# Actor output Schema

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

Collected entities and failed input outcomes, with all available fields and error explanations in one dataset.

# 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 = {
    "mode": "douban_discovery",
    "maxResults": 10,
    "contentType": "movie"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/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 = {
    "mode": "douban_discovery",
    "maxResults": 10,
    "contentType": "movie",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/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 '{
  "mode": "douban_discovery",
  "maxResults": 10,
  "contentType": "movie"
}' |
apify call scrapingmonkey/douban-scraper --silent --output-dataset

```

## MCP server setup

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