# Douban Scraper — Movies, TV & Ratings (`hipersoft/douban-scraper`) Actor

Scrape Douban (豆瓣) movies, TV and shows: rating, votes, genres, cast, directors, year and cover. Hot lists, keyword search, or details by subject id. Public API, no key.

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

## Pricing

from $0.002 / item scraped

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Douban Scraper — Movies, TV, Ratings & Cast

Scrape **Douban** (豆瓣), China's biggest film, TV and culture rating site, into clean JSON, CSV or Excel. This Douban scraper extracts **rating, vote count, genres, cast, directors, year, original title, countries, runtime and cover image** for movies, TV series and variety shows. Pull **hot lists**, run a **keyword search**, or fetch **full details by subject id**. Fast and reliable.

Perfect for **China film and TV intelligence, rating benchmarks, catalog enrichment and content research**.

![Douban Scraper input — mode, collection and max items in the Apify Console](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/douban-scraper-input.png?v=2)

### What does Douban Scraper do?

The Douban Scraper collects movie, TV and variety-show entries from Douban and returns them as structured data. It supports three modes — browse a hot-list collection, search by keyword, or fetch details by subject id — and extracts the full metadata for each title, including the Douban rating and number of votes, so you can build a complete Chinese film and TV dataset.

### What data can you scrape from Douban?

| Category | Fields |
|----------|--------|
| ⭐ Ratings | rating, rating count, comment count |
| 🎬 Title | title, original title, type, year |
| 🎭 People & genre | directors, actors, genres, countries, durations |
| 📝 Content | summary, cover image |
| 🔗 Links & meta | subject id, listing URL, source URL, collected date |

### What you get

![Douban Scraper output example — movie rating, cast, genres and cover as structured JSON](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/douban-scraper-output.png?v=2)

Each title is returned as one clean record. Example output:

```json
{
  "id": "37450627",
  "title": "痴迷",
  "originalTitle": "Obsession",
  "type": "movie",
  "year": 2025,
  "rating": 7.5,
  "ratingCount": 160122,
  "genres": ["恐怖"],
  "countries": ["美国"],
  "durations": ["110分钟"],
  "directors": ["库里·巴克"],
  "actors": ["迈克尔·约翰斯顿", "印达·纳瓦雷特"],
  "commentCount": 4821,
  "summary": "A chilling supernatural thriller...",
  "coverImage": "https://img9.doubanio.com/...",
  "url": "https://movie.douban.com/subject/37450627/",
  "sourceUrl": "https://movie.douban.com/explore",
  "collectedAt": "2026-07-30T12:00:00.000Z"
}
```

#### Output schema

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Douban subject id of the title. |
| `title` | string | Title as shown on Douban. |
| `originalTitle` | string | Original-language title. |
| `type` | string | Content type, e.g. movie or TV. |
| `year` | integer | Release year. |
| `rating` | number | Douban rating on a 0–10 scale. |
| `ratingCount` | integer | Number of ratings received. |
| `genres` | array | List of genres. |
| `countries` | array | List of production countries or regions. |
| `durations` | array | Runtime values for the title. |
| `directors` | array | List of directors. |
| `actors` | array | List of main cast members. |
| `commentCount` | integer | Number of user comments. |
| `summary` | string | Plot summary or synopsis. |
| `coverImage` | string (URL) | Cover poster image URL. |
| `url` | string (URL) | Direct link to the Douban page. |
| `sourceUrl` | string (URL) | Source page URL for the record. |
| `collectedAt` | string (ISO date) | Timestamp when the record was collected. |

### Use cases

- **Rating benchmarks** — compare Douban scores and vote counts across titles and genres.
- **Catalog enrichment** — add Chinese-market metadata and ratings to your media database.
- **Content research** — track hot movies, TV and variety shows over time.
- **Recommendation engines** — feed genres, cast and ratings into similarity models.
- **Market intelligence** — analyze how titles perform with Chinese audiences.
- **Cast and crew analysis** — map directors and actors across a body of work.

### How to scrape Douban data

1. Add the Douban Scraper to your Apify account.
2. Pick a mode — **collection** (hot list), **search** (keyword), or **detail** (by subject id).
3. Set the collection, search query or subject ids, and a max item limit.
4. Optionally turn on **Enrich with full details** to add genres, countries and runtime.
5. Click **Run**, then export as JSON, CSV, Excel or XML, or pull via the Apify API.

### Input

```json
{
  "mode": "collection",
  "collection": "movie_hot_gaia",
  "maxItems": 100
}
```

Search, enriched with full details:

```json
{ "mode": "search", "searchQuery": "诺兰", "enrichDetails": true, "maxItems": 40 }
```

Details by id:

```json
{ "mode": "detail", "subjectIds": ["37450627", "35267208"] }
```

| Field | Type | Description |
|-------|------|-------------|
| `mode` | string | `collection`, `search`, or `detail`. |
| `collection` | string | Which hot list to pull (hot movies, hot TV, Korean TV, animation and more). |
| `searchQuery` | string | Keyword for `search` mode (a title or a person). |
| `subjectIds` | array | Douban subject ids for `detail` mode. |
| `enrichDetails` | boolean | For collection/search: fetch full detail (genres, countries, runtime) per item. |
| `maxItems` | integer | Maximum number of items to scrape. |

### Need more media and culture data?

- [Letterboxd Scraper](https://apify.com/hipersoft/letterboxd-scraper)
- [TVmaze Scraper](https://apify.com/hipersoft/tvmaze-scraper)
- [NetEase Music Scraper](https://apify.com/hipersoft/netease-music-scraper)
- [Bilibili Scraper](https://apify.com/hipersoft/bilibili-scraper)

### FAQ

**How many titles can I scrape?**
As many as you like — set `maxItems` to cap the run, or leave it high to pull everything available.

**Do I need any setup or a login?**
No setup and no login. Just add the actor, choose a mode, and run.

**Why are genres, countries or runtime empty in collection mode?**
List mode returns the core fields quickly. Turn on **Enrich with full details** (or use `detail` mode) to add genres, countries and runtime per title.

**Can I search for a specific title or director?**
Yes. Use `search` mode with a keyword, or `detail` mode with subject ids.

**What export formats are supported?**
JSON, CSV, Excel and XML, plus programmatic access through the Apify API.

**How does billing work?**
You pay only per item you get, so costs scale with the number of titles you scrape.

**Is the data only public data?**
Yes — the scraper returns only publicly available title information.

**Can I integrate this with other tools?**
The Douban Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JavaScript/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

### Related Actors

- [Toutiao Scraper](https://apify.com/hipersoft/toutiao-scraper)
- [V2EX Scraper](https://apify.com/hipersoft/v2ex-scraper)
- [Weibo Scraper](https://apify.com/hipersoft/weibo-scraper)

### Notes

Original clean-room implementation. Returns only public data; you are responsible for compliance with Douban's terms. Not affiliated with Douban.

# Actor input Schema

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

Hot-list collection, keyword search, or details by subject id.

## `collection` (type: `string`):

For collection mode: which hot list.

## `searchQuery` (type: `string`):

For search mode: keyword (e.g. a title or director).

## `subjectIds` (type: `array`):

For detail mode: Douban subject ids (e.g. 37450627).

## `enrichDetails` (type: `boolean`):

For collection/search: fetch full detail (genres, countries, runtime) per item. Slower.

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

Maximum items to scrape.

## Actor input object example

```json
{
  "mode": "collection",
  "collection": "movie_hot_gaia",
  "searchQuery": "",
  "subjectIds": [],
  "enrichDetails": false,
  "maxItems": 100
}
```

# Actor output Schema

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

The scraped results as dataset items.

# 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 = {};

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

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

```

## MCP server setup

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