# Search Bilibili API Python Videos and Metadata

**Use case:** 

Search Bilibili for Python API tutorials and technical videos. Built for developers and analysts, this task extracts video metadata from the knowledge partition including title, author, viewCount, publishTime, duration, and videoUrl. Customize searchQueries, partition, sort, or maxItems to target specific developer topics.

## Input

```json
{
  "mode": "search",
  "searchQueries": [
    "python"
  ],
  "videoUrls": [],
  "maxItems": 30,
  "sort": "pubdate",
  "duration": "all",
  "partition": "36",
  "rankingType": "all",
  "enrichDetails": false
}
```

## Output

```json
{
  "title": {
    "label": "Title"
  },
  "author": {
    "label": "Author"
  },
  "viewCount": {
    "label": "View count"
  },
  "likeCount": {
    "label": "Like count"
  },
  "publishTime": {
    "label": "Publish time"
  },
  "videoUrl": {
    "label": "Video url"
  }
}
```

## How it works

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

The Bilibili Video Search, Ranking & Metadata Scraper Actor is ready to run with the inputs already set for "Search Bilibili API Python Videos and Metadata". [Sign up or log in](https://console.apify.com/create-task-from-example/CKphqB91q2ITiNJsm) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Search Bilibili API Python Videos and Metadata" task

The Bilibili Video Search, Ranking & Metadata Scraper Actor will start running based on the input automatically. You can also change all the input fields, like mode, search queries / aliases (mode=search), and more, to match your specific use case.

### 3. Receive the "Search Bilibili API Python Videos and Metadata" 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, author, view count, 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 "Search Bilibili API Python Videos and Metadata" task via API](https://apify.com/nimbryxo-studio/bilibili-video-search-ranking-and-metadata-scraper.md).

## FAQ

### How can I search Bilibili for Python API videos?

The Bilibili Python search task searches for “Python” in partition 36, Bilibili’s knowledge partition, and sorts results by publication date.

### What metadata does a Bilibili Python search return?

Each result in the Bilibili Python search task can show the video title, uploader, view count, like count, publish time, and video link.

### How do I change the Bilibili search keyword or video category?

Set the search terms and partition for the Bilibili Python search task; it is preconfigured for “Python” and partition 36, the knowledge partition.

### How many Python videos can I get from one run?

The Bilibili Python search task is capped at 30 video records per run; its maximum allowed limit is 1,000.

### Does searching Bilibili for Python videos require a login or API key?

The Bilibili Python search task collects public video metadata without an account, and its listed inputs do not include an API key.

### How much does a run of this Bilibili search cost?

For up to 30 results, the Bilibili Python search task’s result charge is at most $0.03 on the Free plan, plus the Actor Start event and Apify platform usage.

### Can I schedule Bilibili Python searches or run them through an API?

You can schedule the Bilibili Python search task with Apify Schedules or run it through the Apify API; integrations such as Zapier, Make, and n8n are also supported.

## About this Actor

This example demonstrates how to use [Bilibili Video Search, Ranking & Metadata Scraper](https://apify.com/nimbryxo-studio/bilibili-video-search-ranking-and-metadata-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/nimbryxo-studio/bilibili-video-search-ranking-and-metadata-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/nimbryxo-studio/bilibili-video-search-ranking-and-metadata-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`).
