# Bilibili Videos Search & Hot Trending Scraper | $0.45/1K (`kaitoeasyapi/bilibili-videos-search-trending-scraper`) Actor

Bilibili Scraper ($0.45–$0.65/1K records): extract Bilibili search videos (BV ID, title, author, views, danmaku, likes, favorites, duration, cover) and real-time Bilibili Top 50 Hot Search trends without cookies.

- **URL**: https://apify.com/kaitoeasyapi/bilibili-videos-search-trending-scraper.md
- **Developed by:** [Kaito T](https://apify.com/kaitoeasyapi) (community)
- **Categories:** Social media, Videos, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.45 / 1,000 bilibili video / trend 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

## Bilibili Videos Search & Hot Trending Scraper

> **Related APAC Video, Creator & Social Commerce Scrapers on Apify Store**
>
> | Actor on Apify Store | Primary Use Case |
> | :--- | :--- |
> | [**Douyin Search & Trending Videos Scraper**](https://apify.com/kaitoeasyapi/douyin-search-trending-videos-scraper) | Douyin short-video search, viral charts & creator metrics |
> | [**RedNote (Xiaohongshu) Search Posts Scraper**](https://apify.com/kaitoeasyapi/rednote-xiaohongshu-search-posts-scraper) | Xiaohongshu lifestyle notes, brand mentions & engagement |
> | [**WeChat Official Account Articles Scraper**](https://apify.com/kaitoeasyapi/wechat-official-account-articles-scraper) | Public WeChat OA long-form articles & keyword monitoring |
> | [**YouTube Search Videos & Shorts Scraper**](https://apify.com/kaitoeasyapi/youtube-search-videos-shorts-scraper) | Global video & Shorts search, views & channel metadata |
> | [**TikTok Search Scraper**](https://apify.com/kaitoeasyapi/tiktok-search-scraper) | Short-form video search, hashtags, sounds & creator stats |

Extract structured **Bilibili (`bilibili.com`) video search results** and **real-time Hot Search trending topics** without login cookies, SESSDATA tokens, or WBI browser signatures — delivering clean **`bvid` / `aid` identifiers**, HTML-stripped **titles**, **UP-host (`author`) profiles**, **views**, **danmaku bullet comments**, **likes**, **favorites**, **video duration**, and **HD cover URLs**.

### Supported Modes

1. **Keyword Video Search (`mode: "search"`)**: Search across Bilibili by multiple keywords (`queries: ["AI", "DeepSeek"]`) sorted by comprehensive rank (`totalrank`), views (`click`), newest (`pubdate`), danmaku volume (`dm`), or favorites (`stow`).
2. **Real-Time Hot Search (`mode: "trending"`)**: Captures Bilibili's live Hot Search leaderboard (`bilibili_trending_topic`) including rank, display keyword, heat score, and badge layer.

### Key Capabilities

- **Clean HTML Entity & Highlight Stripping**: Automatically removes `<em class="keyword">` highlight tags from Bilibili search titles.
- **Full UP-Host & Engagement Telemetry**: Normalizes `author` (`{ mid, name, profileUrl }`) and `metrics` (`{ views, danmaku, likes, favorites, comments }`).
- **APAC Gaming, Anime, Tech & AI Intelligence**: Track product launches, gaming community reception, developer tutorials, and creator sponsorships on China's premier mid/long-form video platform.
- **Pay-Per-Event Transparency**: Billed strictly per delivered video or trending topic (`$0.45 / 1,000` items), with zero charges on empty or failed runs.

### Example Input

```json
{
  "mode": "search",
  "queries": ["AI"],
  "sortOrder": "totalrank",
  "maxItems": 25
}
```

### Example Output Record

```json
{
  "recordType": "bilibili_video",
  "bvid": "BV1xx411c7mD",
  "aid": "1129384756",
  "title": "2026 AI Agent Engineering Full Tutorial",
  "description": "Hands-on walkthrough covering LLM tool use, RAG pipelines, and local deployment.",
  "videoUrl": "https://www.bilibili.com/video/BV1xx411c7mD",
  "coverUrl": "https://i0.hdslb.com/bfs/archive/sample_cover.jpg",
  "durationSec": 945,
  "durationText": "15:45",
  "publishedAt": "2026-11-15T10:30:00.000Z",
  "author": {
    "mid": "38492019",
    "name": "TechLabStudio",
    "profileUrl": "https://space.bilibili.com/38492019"
  },
  "metrics": {
    "views": 184200,
    "danmaku": 1430,
    "likes": 12900,
    "favorites": 8750,
    "comments": 640
  },
  "searchQuery": "AI",
  "scrapedAt": "2026-11-17T18:00:00.000Z"
}
```

# Actor input Schema

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

Choose 'search' to extract Bilibili videos by keyword or 'trending' to capture real-time Bilibili Hot Search topics.

## `queries` (type: `array`):

Keywords to search on Bilibili when mode is 'search' (e.g. 'AI', 'DeepSeek', 'Genshin Impact', 'Blender').

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

Sorting order for Bilibili video search results.

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

Maximum total Bilibili video or trending topic records to extract in this run.

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

Optional feedback or custom schema requests for the maintainers.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "AI"
  ],
  "sortOrder": "totalrank",
  "maxItems": 25
}
```

# Actor output Schema

## `dataset` (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 = {
    "queries": [
        "AI"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaitoeasyapi/bilibili-videos-search-trending-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 = { "queries": ["AI"] }

# Run the Actor and wait for it to finish
run = client.actor("kaitoeasyapi/bilibili-videos-search-trending-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 '{
  "queries": [
    "AI"
  ]
}' |
apify call kaitoeasyapi/bilibili-videos-search-trending-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kaitoeasyapi/bilibili-videos-search-trending-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/Ma7HcDeflUtQBYceF/builds/i8dvTvWoe3Tz8mszc/openapi.json
