# Bilibili Search: Find Videos by Keyword

Runs a Bilibili video search for 美食 (food) and returns each result with title, uploader, play count, likes, comments, duration, publish time and link. Chinese keywords give the best results; put one keyword per line in queries.

- Actor: openclawai/bilibili-scraper (Bilibili Scraper), https://datapika.com/actors/bilibili-scraper
- Run on Apify: https://apify.com/openclawai/bilibili-scraper
- Tested: 2026-11-26, 4 rows in 3 seconds, $0.03 at free-plan prices

## Input

```json
{
  "mode": "search_videos",
  "queries": [
    "美食"
  ],
  "maxItems": 50,
  "downloadVideos": false
}
```

## Output fields

- `platform`: Platform
- `title`: Title
- `author_name`: Author
- `play_count`: Plays
- `like_count`: Likes
- `created_at`: Posted
- `url`: URL

## Sample rows (personal data masked)

```json
[
  {
    "platform": "bilibili",
    "title": "日本人严选百强拉面！第一家吃饭竟然还得看老板脸色....",
    "author_name": "平平出击",
    "play_count": 108665,
    "like_count": 7798,
    "created_at": "2026-11-26T10:00:00+00:00",
    "url": "https://www.bilibili.com/video/BV1g9ymzmELF"
  },
  {
    "platform": "bilibili",
    "title": "特辣贵州辣卤到货了，再加上两包辣油，小伙吃得汗直冒",
    "author_name": "小弟萝卜呀",
    "play_count": 259923,
    "like_count": 7014,
    "created_at": "2026-11-21T09:00:00+00:00",
    "url": "https://www.bilibili.com/video/BV14Ny8z4EQA"
  },
  {
    "platform": "bilibili",
    "title": "做个超下饭麻辣拌！黏黏糊糊太过瘾了！配上自制炸鸡，好酥脆啊",
    "author_name": "了in林",
    "play_count": 2307547,
    "like_count": 63702,
    "created_at": "2026-08-07T11:20:34+00:00",
    "url": "https://www.bilibili.com/video/BV1Xvut6sEjU"
  }
]
```

Full sample: https://datapika.com/data/tasks/bilibili-video-search.json

## How to run it

1. **Open the actor on Apify.** Click Copy input, then Run on Apify to open the Bilibili Scraper. Sign in or create a free account, open the JSON tab of the input form and paste the input.
2. **Start the "Bilibili Search: Find Videos by Keyword" task.** Press Start. Change any input field first if you need a different topic, account or size; the fields are listed above.
3. **Get the results.** Rows arrive in a dataset while the run works. Our test returned 4 rows in 3 seconds.
4. **Use the data.** Download JSON, CSV or Excel, call the run from the API, schedule it, or let an AI agent run it through MCP.

API (replace the token):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/openclawai~bilibili-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"search_videos","queries":["美食"],"maxItems":50,"downloadVideos":false}'
```

## Change it

- mode picks the job: search_videos, video_detail, video_comments, danmaku, subtitles, user_posts, trending and more.
- Put one keyword per line in queries; Chinese keywords return the most results.
- Raise maxItems for a bigger dataset; you pay per result delivered.

## FAQ

### Can I search in English?

Yes, but Bilibili is a Chinese platform and most titles are in Chinese, so Chinese keywords return far more relevant videos. Several keywords can run in one go, one per line.

### How many results can I get?

maxItems caps each keyword, from 1 to 5,000 rows. Each row is one video with its stats at the time of the run.

### Do I need a Bilibili account?

No. It reads public Bilibili data with no login, cookie, Chinese phone number or API key. Run it from the Apify Console, the API, or an AI agent through MCP.

### How much does it cost?

You pay per result delivered to your dataset: a video, a comment or a danmaku line. There is no start fee. The current prices are on the Pricing tab.
