<!-- GENERATED BY scripts/gen_social_pages.py; DO NOT EDIT -->
# Bilibili API: search videos and retrieve public discussion

Retrieve available Bilibili search results, video details, comments and public profile or trending data through one ChinaAPI key. Check the capability table for the exact identifiers and price before choosing a workflow.

Canonical: https://chinaapi.ai/social-data-api/bilibili/
Catalog captured: 2026-10-29T17:56:18Z
Price and availability source: https://dash.chinaapi.ai/api/social/catalog?lang=en&utm_source=chinaapi&utm_medium=social-catalog&utm_campaign=social-data-beta

[Create an account](https://dash.chinaapi.ai/register?lang=en&utm_source=chinaapi&utm_medium=social-social-data-api-bilibili&utm_campaign=social-data-beta)

## Build a topic research workflow

Search for a topic, retain the returned video identifiers and retrieve details only for the videos relevant to your question. Pass the selected results to your own analysis model with source URLs and retrieval dates.

## Keep Bilibili identifiers in their original form

A BV identifier, numeric video ID and user ID are different identifiers. Use the parameter named by the endpoint, and keep large numeric identifiers as strings in your application. Do not substitute a profile ID for a video ID.

## Budget the research before expanding it

One search followed by several detail or comment requests is several billable calls. Read the prices below, cap the number of selected videos and pages, and stop on empty results instead of repeatedly submitting the same request.

## Use summaries with traceable sources

Preserve the video URL and collection time alongside each result. Ask your model to distinguish observed content from its interpretation. Search ordering and available comments can change; a saved response is a snapshot, not a permanent ranking.

## Available endpoints and USD prices

| Capability | Endpoint | USD / successful call |
| --- | --- | --- |
| [Search posts](https://chinaapi.ai/social-data-api/docs/#bilibili-search) | `GET /v1/social/bilibili/search` | $0.002 |
| [Post details](https://chinaapi.ai/social-data-api/docs/#bilibili-post) | `GET /v1/social/bilibili/post` | $0.002 |
| [Profiles](https://chinaapi.ai/social-data-api/docs/#bilibili-user) | `GET /v1/social/bilibili/user` | $0.002 |
| [Comments](https://chinaapi.ai/social-data-api/docs/#bilibili-comments) | `GET /v1/social/bilibili/comments` | $0.002 |
| [User posts](https://chinaapi.ai/social-data-api/docs/#bilibili-user-posts) | `GET /v1/social/bilibili/user-posts` | $0.002 |
| [Trending](https://chinaapi.ai/social-data-api/docs/#bilibili-trending) | `GET /v1/social/bilibili/trending` | $0.002 |

First top-up required. Recheck the live catalog before integration.

## Request example

```bash
curl --fail-with-body --get "https://api.chinaapi.ai/v1/social/bilibili/search" \
  -H "Authorization: Bearer $CHINAAPI_API_KEY" \
  --data-urlencode 'keyword=火影忍者' \
  --data-urlencode 'order=totalrank' \
  --data-urlencode 'page=1' \
  --data-urlencode 'page_size=42'
```

Keep the key server-side. Replace resource identifiers before running.

## Billing and limits

First top-up required; trial credit is excluded. No SLA. Synchronous empty or failed results are not charged. Every successful page is separately billed. Follow platform terms; personal profiling and private-content access are excluded.

[Full reference](https://chinaapi.ai/social-data-api/docs/)

## Related guides

- [Douyin API: video search, comments and replies](https://chinaapi.ai/social-data-api/douyin/index.md)
- [Bilibili API: search videos and retrieve public discussion](https://chinaapi.ai/social-data-api/bilibili/index.md)
- [Weibo API: keyword search, posts, comments and trends](https://chinaapi.ai/social-data-api/weibo/index.md)
- [Xiaohongshu API: search notes, details and comments](https://chinaapi.ai/social-data-api/xiaohongshu/index.md)
- [Collect comments with bounded pagination](https://chinaapi.ai/social-data-api/guides/comment-pagination/index.md)
- [Build an MCP social research workflow](https://chinaapi.ai/social-data-api/guides/mcp-research/index.md)
