Bilibili · Search

Search videos by keyword

Send a keyword; get matching videos with title, author, views, likes, favorites, comments, danmaku count, duration, category and tags.

POST/v1/bilibili/search

$0.00736per record

1,000 records
≈ $7.36
minimum per page of 20 records
$0.003125

Paid balance onlyPages with a cursor

Try it in the consoleWatch a replay without signing in

Send it

POST with a JSON body, or GET with the same parameters in the query string. Your key goes in the Authorization header.

curl -X POST "https://api.silklinedata.com/v1/bilibili/search" \
  -H "Authorization: Bearer $SILKLINE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":5,"keyword":"原神"}'

What comes back

Records from a real request on 2026-11-13. Names, avatars and profile links of ordinary users show as <masked>; long text is cut here, not in the API.

200 OK · fetched 2026-11-13
{
  "data": [
    {
      "type": "video",
      "bvid": "BV1z4WV6vEfB",
      "aid": 117593033739628,
      "url": "https://www.bilibili.com/video/BV1z4W…",
      "title": "开箱一台Action6,在大疆Action7发售前…",
      "description": "双十一活动期间在pdd百亿补贴购入,看到…",
      "authorName": "<masked>",
      "authorId": "<masked>",
      "authorUrl": "<masked>",
      "authorAvatar": "<masked>",
      "coverUrl": "https://i0.hdslb.com/bfs/archive/e2e9…",
      "durationSeconds": 465,
      "publishedAt": "2026-11-11T10:00:00Z",
      "views": 2043,
      "likes": 13,
      "coins": null,
      "favorites": 5,
      "shares": null,
      "comments": 32,
      "danmaku": 0,
      "category": "数码",
      "tags": [
        "开箱",
        "相机",
        "摄影"
      ]
    },
    {
      "type": "video",
      "bvid": "BV17jWN6gEro",
      "aid": 117587664964160,
      "url": "https://www.bilibili.com/video/BV17jW…",
      "title": "大疆 Osmo Action 7 ,GoPro 杀手终于来…",
      "description": "本翻译视频仅作交流学习。\n祝大家学习愉…",
      "authorName": "<masked>",
      "authorId": "<masked>",
      "authorUrl": "<masked>",
      "authorAvatar": "<masked>",
      "coverUrl": "https://i2.hdslb.com/bfs/archive/14d2…",
      "durationSeconds": 411,
      "publishedAt": "2026-11-11T01:00:00Z",
      "views": 3252,
      "likes": 8,
      "coins": null,
      "favorites": 3,
      "shares": null,
      "comments": 4,
      "danmaku": 17,
      "category": "数码",
      "tags": [
        "大疆 Osmo Action 7",
        "大疆 Osmo Action 7 Pro",
        "GoPro"
      ]
    }
  ],
  "cursor": "c1.Hq8vR2mTn5wK.yJ0dXA…",
  "meta": {
    "request_id": "req_01JD8Q…",
    "charged_usd": "0.014720",
    "balance_usd": "9.875000",
    "items": 2
  }
}

Fields 22

FieldTypeExample value
typestringvideo
bvidstringBV1z4WV6vEfB
aidnumber117593033739628
urlstringhttps://www.bilibili.com/video/BV1z4WV6vEfB
titlestring开箱一台Action6,在大疆Action7发售前夜
descriptionstring双十一活动期间在pdd百亿补贴购入,看到是我能接受的价格就直接买了,运动相机最重要的是能拍的到,而且受限于体积,我猜ac…
authorNamestring<masked>
authorIdstring<masked>
authorUrlstring<masked>
authorAvatarstring<masked>
coverUrlstringhttps://i0.hdslb.com/bfs/archive/e2e99e7000a0037095378c5a0d5…
durationSecondsnumber465
publishedAtstring2026-11-11T10:00:00Z
viewsnumber2043
likesnumber13
coinsnullnull
favoritesnumber5
sharesnullnull
commentsnumber32
danmakunumber0
categorystring数码
tagsarray["开箱","相机","摄影"]

Parameters 2

NameTypeRequiredDescriptionExample
limitintegernoHow many records to return, 1 to 100. A request never returns more than this.5
keywordstringyesSearch keyword. Chinese keywords return the best results.原神

Paging

Send the cursor of the last answer back with the same parameters to get the next page. Each page is a request of its own, charged on its own; the last page has cursor null.

JavaScript
const params = {"keyword":"原神"};
const records = [];
let cursor = null;
do {
  const response = await fetch("https://api.silklinedata.com/v1/bilibili/search", {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
    body: JSON.stringify({ ...params, limit: 100, ...(cursor ? { cursor } : {}) }),
  });
  const answer = await response.json();
  records.push(...answer.data);
  cursor = answer.cursor;
} while (cursor);
console.log(records.length);

What a request costs

You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged.

Here a page holds up to 20 records and its minimum is $0.003125; a request for 100 records reads 5 pages.

  • 1 record: up to $0.00736
  • 20 records: up to $0.1472
  • 100 records: up to $0.736

The response's meta says what was charged (charged_usd) and what is left (balance_usd). Errors on our side are not charged.

Questions

What parameters does Search videos by keyword take?

Required: keyword. Every request also takes limit (1 to 100).

How many records does one request return?

Up to 100 (limit 1 to 100). A page holds up to 20 records, so 100 records take 5 pages in one request.

Can I page through more results?

Yes. While the answer carries a cursor, send it back with the same parameters for the next batch.

How much does it cost?

Per record: record $0.00736. The minimum is $0.003125 per page: with few records or none, a request pays at most that for each page it reads, possibly less. 100 records cost at most $0.736.

What does a request cost when it fails or comes back empty?

You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged. Each answer's meta says what the request was charged and the balance left.