Bilibili Fetch Search By Type
Search for content by keyword and category. Provide the required `keyword`; `search_type` selects video (default), anime, movies/TV, live streams, articles, or users. `page_size` controls the number of results per page (default 20). `order` selects comprehensive sorting (0, default), latest (1), play count (2), or danmaku count (3). The response contains search results in its data. To continue, pass the previous response's `data.pagination.next` value as `cursor`; leave `cursor` empty for the first request. If the next cursor is absent or empty, there are no more pages. This uses cursor pagination, not page-number navigation.
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
order | integer | No | 排序方式/Sort order (0=综合, 1=最新, 2=播放量, 3=弹幕数) | 0 |
cursor | string | No | 翻页游标,首页留空;翻页时传回上一页响应的 data.pagination.next/Pagination cursor, leave empty for the first page; for the next page pass back data.pagination.next from the previous response | "" |
keyword | string | Yes | 搜索关键词/Search keyword | — |
page_size | integer | No | 每页数量/Page size | 20 |
search_type | string | No | 搜索类型/Search type (video/bangumi/pgc/live/article/user) | video |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_bilibili_fetch_search_by_type' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"cursor": "",
"keyword": "WorkBuddy",
"order": 1,
"page_size": 30,
"search_type": "article"
}
}'{
"code": 200,
"data": {
"code": 0,
"data": {
"annotation": {
"qv_id": "f03dffc39d9442fe822352ad6164c391"
},
"exp_str": "100010#5513#6602#81701100#9902#9924#9931#9947#9961",
"items": [
{
"goto": "article_new",
"linktype": "article",
"param": "53824006",
"trackid": "16213995055702080595",
"uri": "bilibili://opus/detail/53824006?opus_type=article",
"user_act": "{}"
}
],
"keyword": "WorkBuddy",
"page": "1",
"pages": 50
},
"message": "success"
},
"docs": "https://api.tikhub.io/#/Bilibili-App-API/fetch_search_by_type_api_v1_bilibili_app_fetch_search_by_type_get",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {
"cursor": "",
"keyword": "WorkBuddy",
"order": "1",
"page_size": "30",
"search_type": "article"
}
}This example shows part of the response. Copied content is valid JSON.

