# Bilibili Keyword Search: Videos by Query

**Use case:** 

Chinese keyword to videos, every row carrying views, likes, coins, favourites, publish time, creator and tags.

## Input

```json
{
  "mode": "search",
  "queries": [
    "人工智能教程"
  ],
  "videoUrls": [
    "https://www.bilibili.com/video/BV1ug4y1t7Ty"
  ],
  "creatorMids": [
    "1741962246"
  ],
  "searchOrders": [
    "totalrank",
    "click",
    "pubdate"
  ],
  "maxItems": 200,
  "maxPagesPerOrder": 3,
  "rowsPerPage": 20,
  "maxCreatorPages": 40,
  "includeReplies": false,
  "commentsPerVideo": 9,
  "danmakuLimit": 3000,
  "requestDelayMs": 400,
  "requestTimeoutSecs": 25,
  "runBudgetSecs": 205
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "url": {
    "label": "Video",
    "format": "string"
  },
  "ownerName": {
    "label": "Creator",
    "format": "string"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "danmakuCount": {
    "label": "Danmaku",
    "format": "integer"
  },
  "durationSeconds": {
    "label": "Duration, s",
    "format": "integer"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "searchRank": {
    "label": "Rank",
    "format": "integer"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Bilibili Scraper - Videos, Creators, Comments, Danmaku Actor is ready to run with the inputs already set for "Bilibili Keyword Search: Videos by Query". [Sign up or log in](https://console.apify.com/create-task-from-example/ON7weK3lncw1xxvWO) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Bilibili Keyword Search: Videos by Query" task

The Bilibili Scraper - Videos, Creators, Comments, Danmaku Actor will start running based on the input automatically. You can also change all the input fields, like mode, search keywords, and more, to match your specific use case.

### 3. Receive the "Bilibili Keyword Search: Videos by Query" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as title, video, creator, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Bilibili Keyword Search: Videos by Query" task via API](https://apify.com/ai-lead-gen-tools/bilibili-scraper.md).

## FAQ

### Why union several sort orders?

One order alone plateaus at 288 distinct videos for a keyword, while all six together return 1144 to 1199. Each order costs its own requests, so the union is opt-in.

### What does one row contain?

bvid, aid, title, description, url, cover, duration, publish time, category id, view, comment, danmaku and like counts, the creator block and the tag list.

### Why are coin and share counts empty here?

The search endpoint does not return them. Video mode fills them from the video page.

### Do I need an account or a proxy?

No. Plain HTTP against the same public endpoints the website uses, no cookies and no key.

## About this Actor

This example demonstrates how to use [Bilibili Scraper - Videos, Creators, Comments, Danmaku](https://apify.com/ai-lead-gen-tools/bilibili-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ai-lead-gen-tools/bilibili-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ai-lead-gen-tools/bilibili-scraper.md

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`).
