# Douban Scraper & API | EveryInfra (`blushing_parachute/everyinfra-douban-api`) Actor

Unofficial Douban data via one Actor: search, reviews, comments, group_topic. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-douban-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 31.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $80.10 / 1,000 search requests

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/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 & API | EveryInfra

Search Douban film, book, and music entries to retrieve long reviews, short reviews, and group discussions.

Subject type filters accept all, movie, book, or music, while discussion items require explicit URL inputs.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `search` | Look up films, books and albums on Douban by title or topic. Get year, director and cast, author or artist, rating, number of raters and cover. Limit results to movies, books or music with `search_type`. `type` overrides it when you send both. | keyword | search_type, type | 20 (up to 50) | $0.0801 |
| `reviews` | Read long-form Douban reviews of a film, book or album from its subject link. Each review has title, text, rating label, reviewer and reply count. Each rating belongs to its review. The batch does not always hold every review of the title. | url | — | 15 (up to 50) | $0.3601 |
| `comments` | List short Douban comments on a film, book or album from its subject link, each with text, rating label, commenter, vote count and date. These brief comments are separate from the long-form write-ups returned by `reviews`. | url | — | 20 (up to 200) | $0.0801 |
| `group_topic` | Read a Douban group discussion from its topic link. Get the opening post, group name and link, author, reply count and the replies. `max_replies` sets how many replies to fetch, from 1 to 100 (default 20). Closed groups are out of reach, and the thread may be incomplete. | url | max_replies | 10 (up to 50) | $0.2401 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "search",
  "keyword": "\u661f\u9645\u7a7f\u8d8a"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `search`: `id`, `url`, `title`, `subject_type`, `year`, `director`, `cast`, `author`, `artist`, `rating`, `rating_scale`, `rating_count`, `cover_url`, `platform`
- `reviews`: `id`, `url`, `subject_id`, `subject_name`, `subject_type`, `title`, `text`, `rating`, `rating_scale`, `rating_label`, `author_name`, `author_url`, `author_avatar_url`, `reply_count`, `posted_at`, `platform`
- `comments`: `id`, `subject_id`, `subject_name`, `subject_type`, `text`, `rating`, `rating_scale`, `rating_label`, `author_name`, `author_url`, `author_avatar_url`, `vote_count`, `posted_at`, `platform`
- `group_topic`: `id`, `url`, `title`, `text`, `group_id`, `group_name`, `group_url`, `author_name`, `author_url`, `reply_count`, `replies`, `posted_at`, `platform`

#### Field notes

- `artist`: Music artist.
- `author`: Author.
- `author_avatar_url`: Avatar of the commenter.
- `cast`: Lead cast.
- `cover_url`: Cover image.
- `director`: Director.
- `group_id`: Group ID.
- `group_name`: Group name.
- `group_url`: Group link.
- `rating_label`: Text label of the rating tier.
- `replies`: List of replies.
- `subject_id`: Item ID. Douban calls books, films and music "items" (subject).
- `subject_name`: Item name.
- `subject_type`: Item type (movie, book or music).
- `vote_count`: Number of times this comment was marked "useful" (comments).
- `year`: Year.

### Pricing

Pay per event, charged only when a run delivers data:

- `search`: $0.0801, one event per started block of 20 results.
- `reviews`: $0.3601, one event per started block of 15 results.
- `comments`: $0.0801, one event per started block of 20 results.
- `group_topic`: $0.2401, one event per started block of 10 results.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Douban or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `keyword` (type: `string`):

Used by `search` (required). Specifies the title or topic search query to discover Douban media items across movies, books, and music. Does not perform full-text searching inside long reviews or group topics.

## `search_type` (type: `string`):

Used by `search`. Filters item category discovery using all (default), movie, book, or music. When type is provided simultaneously, type takes precedence; unrecognized values fall back to all.

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

Used by `search`. Overrides search_type to filter item discovery by category (all, movie, book, or music). Filters catalog entry types only and does not select between reviews (long reviews) and comments (short comments), which are governed by action type.

## `url` (type: `string`):

Used by `reviews` (required), `comments` (required), `group_topic` (required). Specifies the target subject URL formatted as /subject/<ID>/ on movie.douban.com, book.douban.com, or music.douban.com for reviews or comments actions, or as www.douban.com/group/topic/<ID>/ for group_topic. Long reviews, short comments, and group topic replies are handled by separate action endpoints.

## `max_replies` (type: `integer`):

Used by `group_topic`. Limits the number of topic replies fetched by group_topic per request, accepting integers from 1 to 100 (default 20). Out-of-bounds values are clamped to boundary limits, non-parseable values revert to the default, and returned counts do not guarantee retrieval of all historical replies.

## `limit` (type: `integer`):

How many results to request for list actions. Defaults and maximums per action: `search` 20 (max 50); `reviews` 15 (max 50); `comments` 20 (max 200); `group_topic` 10 (max 50). Billing: `search` one event per started block of 20 results; `reviews` one event per started block of 15 results; `comments` one event per started block of 20 results; `group_topic` one event per started block of 10 results.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "search",
  "keyword": "星际穿越"
}
```

# Actor output Schema

## `records` (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 = {
    "keyword": "星际穿越"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-douban-api").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 = { "keyword": "星际穿越" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-douban-api").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 '{
  "keyword": "星际穿越"
}' |
apify call blushing_parachute/everyinfra-douban-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blushing_parachute/everyinfra-douban-api"
        }
    }
}
```

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/iIukLIrv9HaxxPFDa/builds/tKRr1D1LoR3wqJdGA/openapi.json
