# How can an AI agent use Bilibili data?

How can an AI agent use Bilibili data? Follow concrete contracts, examples and reviewable steps using Bilibili.

Canonical page: https://datanavoapi.com/en/answers/bilibili-api-for-ai-agents/

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## Answer

Start by inspecting the contracts and local samples for Bilibili video search, Bilibili video comments. Establish the input for bilibili.videos.search, then check whether its post object contains the fields your task needs.

First validate discovery, description and calls through the local CLI or stdio MCP, then verify that the target client supports the same transport. Cloud clients cannot directly access this computer’s 127.0.0.1 address; a local HTTP endpoint is not a public MCP service.

## Relevant contracts

| Capability | Object | Shape | Pagination |

| --- | --- | --- | --- |

| bilibili.videos.search | Post | items | Explicit cursor |

| bilibili.videos.comments.list | Comment | items | Explicit cursor |

- [Bilibili video search](https://datanavoapi.com/en/apis/bilibili/videos/search/)
- [Bilibili video comments](https://datanavoapi.com/en/apis/bilibili/videos/comments/list/)

## Input contract

Inspect meanings, examples and conditional rules for the selected method. view and fields control the response without changing the TEST unit price.

- Only send fields defined for this method; unknown fields are rejected before execution.

| Method | Field | Type | Requirement | Meaning | Enum or bound | Example |

| --- | --- | --- | --- | --- | --- | --- |

| GET | query | string | Required | Search terms | — | "机械键盘" |

| GET | sort | string | Optional / conditional | By relevance, by time published (newest first) or by views | ["relevance","latest","popular"] | — |

| GET | cursor | string | Optional / conditional | The `next_cursor` of the previous page. A new page is a new call. | — | — |

| GET | view | string | Optional / conditional | How much of each item: compact (the most used fields, long text cut short), standard, or full (adds `ext`). | ["compact","standard","full"] | — |

| GET | fields | array | Optional / conditional | Return only these fields of each item, by path (`author.name`). | maxItems: 64 | — |

## Complete one verification

Run one local fixture for a listed capability and inspect the object structure. Then filter, classify or export according to the question. A local sample cannot replace evidence for a real-platform conclusion.

```json
{
  "capability": "bilibili.videos.search",
  "method": "GET",
  "params": {
    "query": "机械键盘"
  }
}
```

## Related pages

- [Bilibili video search](https://datanavoapi.com/en/apis/bilibili/videos/search/)
- [Bilibili video comments](https://datanavoapi.com/en/apis/bilibili/videos/comments/list/)
- [Bilibili APIs](https://datanavoapi.com/en/apis/bilibili/)
- [Bilibili MCP](https://datanavoapi.com/en/mcp/bilibili/)
- [Post fields](https://datanavoapi.com/en/docs/objects/post/)
- [Read Bilibili videos and comments with Python](https://datanavoapi.com/en/guides/bilibili-api-python/)
- [How can AI work with Zhihu, Bilibili and Weibo data?](https://datanavoapi.com/en/answers/ai-read-zhihu-bilibili-weibo/)
- [How do I choose data sources for a sentiment workflow?](https://datanavoapi.com/en/answers/bettafish-data-source/)
- [How do I investigate Bilibili 412 and WBI request issues?](https://datanavoapi.com/en/answers/bilibili-412-wbi/)

[中文](https://datanavoapi.com/answers/bilibili-api-for-ai-agents/)
