# Douban Bilibili Weibo Xiaohongshu China Trends (`gaivin/cn-entertainment-trends`) Actor

Douban movie, TV and variety rankings with live ratings, plus Bilibili hot videos, ranking boards, hot search words, anime schedules and creator cards. Chinese entertainment and Douban data with no login and no API key.

- **URL**: https://apify.com/gaivin/cn-entertainment-trends.md
- **Developed by:** [duan jiayun](https://apify.com/gaivin) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/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

## China Entertainment Trends Scraper 中国影视文娱趋势采集器

Scrape China's entertainment trend data in **one run** — Douban movie/TV/variety rankings with real ratings, plus Bilibili hot videos, hot search words, anime schedules, keyword search, video details and creator cards.

**No login. No API key. No cookies.** Just pick your sources and run.

***

### What you get

Every row uses the same flat shape, so you can mix sources in one dataset:

| Field | Type | Meaning |
|---|---|---|
| `source` | string | `douban` or `bilibili` |
| `type` | string | Which view produced this row, e.g. `movie_热门`, `ranking_全站`, `search_人工智能` |
| `title` | string | Clean title / keyword / creator name (HTML stripped) |
| `score` | number | string | null | Rating for Douban, **view count** for Bilibili videos, **fans** for user cards |
| `url` | string | Canonical link to the subject / video / space |
| `extra` | object | null | Full raw fields for that source (see below) |
| `scraped_at` | ISO string | UTC timestamp of the row |

#### `extra` per source

**Douban subject lists** (`douban_movie_hot`, `douban_tv_hot`, `douban_variety_hot`, `douban_new_movie`)
`cover`, `is_new`, `episodes_info`, `playable`, `playable_count`

**Douban top list** (`douban_top_list`)
`rank`, `vote_count`, `types`, `regions`, `release_date`, `actors`, `is_playable`, `douban_id`

**Bilibili videos** (`bilibili_ranking`, `bilibili_search`)
`bvid`, `aid`, `cid`, `author`, `author_mid`, `desc`, `duration`, `pubdate`, `tname`, `pic`, and the full `stat` block (`view`, `danmaku`, `reply`, `favorite`, `coin`, `share`, `like`, …)

**Bilibili hot words** (`bilibili_hotwords`)
`hot_id`, `show_name`, `pos`, `module_id`, `icon`

**Bilibili anime timeline** (`bilibili_anime_timeline`)
`date`, `day_of_week`, `episode_id`, `pub_index`, `pub_time`, `pub_ts`, `delay`, `cover`, `season_id`, `square_cover`

**Bilibili video detail** (`bilibili_video_detail`)
`desc` (up to 2000 chars), `owner`, `stat`, `pubdate`, `ctime`, `tname`, `pic`, `dimension`, `duration`, `videos`, and a `pages` array with every part/分P (`cid`, `page`, `part`, `duration`)

**Bilibili user card** (`bilibili_user_card`)
`mid`, `sign`, `level_info`, `sex`, `face`, `fans`, `attention`, `archive_count`, `article_count`, `likes`

***

### Sources

| Source | What it returns | Typical rows |
|---|---|---|
| `douban_movie_hot` | Douban hot movies with ratings | up to `maxItemsPerSource` |
| `douban_tv_hot` | Douban hot TV series | up to cap |
| `douban_variety_hot` | Douban hot variety shows | up to cap |
| `douban_new_movie` | Douban newest movies | up to cap |
| `douban_top_list` | Douban top-rated list for one genre | up to cap |
| `bilibili_ranking` | Bilibili ranking for 6 partitions (全站/动画/游戏/知识/科技/影视) | 6 × up to cap |
| `bilibili_hotwords` | Bilibili hot search words | up to 50 |
| `bilibili_anime_timeline` | 7-day anime release schedule | up to cap |
| `bilibili_search` | Keyword search, one pass per keyword | keywords × cap |
| `bilibili_video_detail` | Full detail for given BV ids | one row per BV |
| `bilibili_user_card` | Creator profile for given mids | one row per mid |

***

### Quick start

1. Pick **sources** (defaults to hot movies + hot TV + Bilibili ranking).
2. Set **Max items per source** (default `300`) to keep usage predictable.
3. Run. Results land in the dataset.

#### Example: Chinese AI topic research

```
sources: ["bilibili_search", "bilibili_hotwords"]
bilibiliSearchKeywords: ["人工智能", "大模型", "AI绘画"]
bilibiliSearchPages: 2
```

→ ~120 videos + 50 hot words, with view/danmaku/like stats ready for ranking.

#### Example: What's hot in Chinese film & TV right now

```
sources: ["douban_movie_hot", "douban_tv_hot", "douban_variety_hot", "douban_new_movie"]
```

→ ~80 titles with live Douban ratings.

#### Example: Creator due diligence

```
sources: ["bilibili_user_card", "bilibili_video_detail"]
bilibiliUserIds: ["2", "946974"]
bilibiliVideoIds: ["BV1GJ411x7h7"]
```

***

### Who uses this

- **Content researchers / KOL agencies** tracking what's trending in Chinese entertainment
- **Market analysts** building China media trend reports
- **AI agent builders** who need a Chinese pop-culture signal feed for recommendation or RAG pipelines
- **Data journalists** pulling live Douban ratings and Bilibili play counts
- **Developers** replacing fragile hand-rolled scrapers with a maintained endpoint set

***

### Notes & limits

- **Douban ratings** are returned as strings (e.g. `"8.7"`) exactly as Douban serves them.
- **Douban has no public search JSON endpoint** — use the genre top list instead.
- **Bilibili search** requires a `Referer: https://www.bilibili.com/` header. This Actor sends it automatically. If Bilibili tightens rate limits, reduce `bilibiliSearchPages` or add keywords instead of pages.
- **Bilibili popular/ranking endpoints rotate daily**, so runs on different days return different rows. That is intentional and correct.
- `maxItemsPerSource` is a **safety cap**, not a target. Some sources (hot words, anime timeline, video detail) return fewer rows by nature.
- No proxies are used by default. The Actor works from datacenter IPs. If a specific source starts returning empty, enable Apify Proxy in the run options.

***

### Pricing

This Actor is billed **pay-per-event**: you pay a small fixed amount per run start plus a small amount per result row saved to your dataset. Failed sources cost nothing.

***

### Changelog

- **0.1** — Initial release: 5 Douban sources + 6 Bilibili sources, unified row schema, per-source safety cap.

***

### Legal

This Actor collects **publicly available** data only. No login, no personal data beyond what a public creator profile already shows. You are responsible for complying with the target sites' terms of service and any applicable law in your jurisdiction.

### Related Actors

More public-data Actors by the same author. All use the same flat schema (`source`, `type`, `title`, `score`, `url`, `extra`, `scraped_at`), so datasets from different Actors can be concatenated directly.

**China data**

- [`china-market-trend-pulse`](https://apify.com/gaivin/china-market-trend-pulse) — Douyin hot search and e-commerce boards, Weibo trends, plus A-share index quotes in one run.
- [`china-tech-news-trends`](https://apify.com/gaivin/china-tech-news-trends) — ITHome, SSPAI, V2EX and Baidu hot search — what Chinese tech is actually reading today.
- [`china-trending-aggregator`](https://apify.com/gaivin/china-trending-aggregator) — Zhihu hot search, Bilibili rankings and Douban hot lists — the Chinese internet's front page.

**AI and research**

- [`ai-model-radar-huggingface-openrouter`](https://apify.com/gaivin/ai-model-radar-huggingface-openrouter) — HuggingFace trending models, datasets and spaces plus live OpenRouter and LiteLLM token pricing.
- [`ai-research-papers-arxiv`](https://apify.com/gaivin/ai-research-papers-arxiv) — Newest arXiv papers in cs.AI, cs.LG and cs.CL with authors, abstracts and categories.

**Developer tools**

- [`developer-pulse-hn-devto-github`](https://apify.com/gaivin/developer-pulse-hn-devto-github) — Hacker News top stories, Dev.to trending articles and GitHub trending repos in one run.
- [`open-source-dependency-health`](https://apify.com/gaivin/open-source-dependency-health) — OSV vulnerabilities pinned to your exact version, plus npm/PyPI downloads and deps.dev release status.

**News and trends**

- [`world-news-pulse-bbc-guardian-npr`](https://apify.com/gaivin/world-news-pulse-bbc-guardian-npr) — BBC, Guardian, Al Jazeera and NPR headlines in one deduplicated dataset.

**Business and lifestyle**

- [`app-store-steam-tracker`](https://apify.com/gaivin/app-store-steam-tracker) — iTunes top charts and Steam specials, top sellers and new releases, with FX conversion.
- [`books-research-tracker`](https://apify.com/gaivin/books-research-tracker) — Open Library trending books and search, newest Crossref articles and bioRxiv/medRxiv preprints.
- [`global-markets-stocks-crypto-fx`](https://apify.com/gaivin/global-markets-stocks-crypto-fx) — Stock quotes, crypto prices and FX rates in one flat dataset. No API key.
- [`podcast-youtube-tracker`](https://apify.com/gaivin/podcast-youtube-tracker) — iTunes podcast charts, podcast RSS episodes and YouTube channel feeds in one schema.
- [`remote-jobs-aggregator`](https://apify.com/gaivin/remote-jobs-aggregator) — Five job boards (Remotive, Arbeitnow, Jobicy, Himalayas, RemoteOK) in one searchable dataset.
- [`startup-vc-signal-tracker`](https://apify.com/gaivin/startup-vc-signal-tracker) — YC company directory, Crunchbase and TechCrunch funding news, Show HN launches and Lobsters.
- [`weather-air-quality-monitor`](https://apify.com/gaivin/weather-air-quality-monitor) — Multi-city weather forecast, PM2.5/AQI, sunrise and sunset, plus live ISS position.

> Running any of these? Open an issue on the Actor page — feature requests shape the roadmap.

# Actor input Schema

## `sources` (type: `array`):

Pick one or more data sources. Options: douban_movie_hot (hot movies), douban_tv_hot (hot TV), douban_variety_hot (variety), douban_new_movie (new films), douban_top_list (top rated by genre), bilibili_ranking (ranking boards), bilibili_hotwords (hot search words), bilibili_anime_timeline (7-day anime schedule), bilibili_search (keyword search), bilibili_video_detail (video detail), bilibili_user_card (creator card).

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

Genre in Chinese. Examples: 剧情 (drama), 喜剧 (comedy), 动作 (action), 爱情 (romance), 科幻 (sci-fi), 动画 (animation), 悬疑 (mystery), 惊悚 (thriller), 恐怖 (horror), 纪录片 (documentary), 犯罪 (crime), 战争 (war), 奇幻 (fantasy), 冒险 (adventure). Only used when douban_top_list is selected.

## `bilibiliSearchKeywords` (type: `array`):

One search pass per keyword. Only used when bilibili_search is selected.

## `bilibiliSearchPages` (type: `integer`):

How many result pages to walk per keyword. Each page is about 20 videos.

## `bilibiliVideoIds` (type: `array`):

BV ids to fetch full detail for. Example: BV1GJ411x7h7. Only used when bilibili_video_detail is selected.

## `bilibiliUserIds` (type: `array`):

Creator numeric mids to fetch profile cards for. Example: 2. Only used when bilibili_user_card is selected.

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

Safety cap so a single source cannot explode your run cost.

## `enablePageFields` (type: `boolean`):

When on, every row also carries the source-native payload under the extra field. Turn off for smaller output.

## Actor input object example

```json
{
  "sources": [
    "douban_movie_hot",
    "douban_tv_hot",
    "bilibili_ranking"
  ],
  "doubanGenre": "剧情",
  "bilibiliSearchKeywords": [],
  "bilibiliSearchPages": 1,
  "bilibiliVideoIds": [],
  "bilibiliUserIds": [],
  "maxItemsPerSource": 300,
  "enablePageFields": true
}
```

# Actor output Schema

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

Dataset with one row per item (movie, show or video).

# 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 = {
    "sources": [
        "douban_movie_hot",
        "douban_tv_hot",
        "bilibili_ranking"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gaivin/cn-entertainment-trends").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 = { "sources": [
        "douban_movie_hot",
        "douban_tv_hot",
        "bilibili_ranking",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gaivin/cn-entertainment-trends").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 '{
  "sources": [
    "douban_movie_hot",
    "douban_tv_hot",
    "bilibili_ranking"
  ]
}' |
apify call gaivin/cn-entertainment-trends --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gaivin/cn-entertainment-trends"
        }
    }
}
```

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/VB2tOGnyqF5e2rQDb/builds/UIbkHSBXobTzuuCub/openapi.json
