Bilibili · Content details
Creator's public favourite folders (videos)
Send UIDs or profile links; get the videos in each creator's public favourite folders with video fields, folder and save time.
POST/v1/bilibili/favorites
$0.00736per record
- 1,000 records
- ≈ $7.36
- minimum per page of 3 records
- $0.0025
Paid balance onlyPages with a cursor
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/favorites" \
-H "Authorization: Bearer $SILKLINE_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":5,"creators":["19286458"]}'import os, requests
response = requests.post(
"https://api.silklinedata.com/v1/bilibili/favorites",
headers={"Authorization": "Bearer " + os.environ["SILKLINE_KEY"]},
json={
"limit": 5,
"creators": ["19286458"],
},
)
answer = response.json()
print(answer["data"], answer["meta"]["charged_usd"])const response = await fetch("https://api.silklinedata.com/v1/bilibili/favorites", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"limit": 5,
"creators": [
"19286458"
]
}),
});
const { data, cursor, meta } = await response.json();
console.log(data, meta.charged_usd);What comes back
Records from a real request on 2026-11-21. Names, avatars and profile links of ordinary users show as <masked>; long text is cut here, not in the API.
{
"data": [
{
"type": "video",
"bvid": "BV1tT4y1i7fD",
"aid": null,
"url": "https://www.bilibili.com/video/BV1tT4…",
"title": "陈翔六点半:在爱情面前,我输的一无所…",
"description": "在爱情的这场游戏里,有人付出了所有,…",
"authorName": "<masked>",
"authorId": "<masked>",
"authorUrl": "<masked>",
"authorAvatar": "<masked>",
"coverUrl": "http://i1.hdslb.com/bfs/archive/bd121…",
"durationSeconds": 311,
"publishedAt": "2022-03-24T10:20:56Z",
"views": 704096,
"likes": null,
"coins": null,
"favorites": 1756,
"shares": null,
"comments": 0,
"danmaku": 2891,
"category": null,
"tags": [],
"collectorUid": 19286458,
"folderId": 78657758,
"folderTitle": "默认收藏夹",
"favoritedAt": "2022-03-24T11:09:54Z"
},
{
"type": "video",
"bvid": "BV1mE41137DD",
"aid": null,
"url": "https://www.bilibili.com/video/BV1mE4…",
"title": "[免扣素材] 一键三连素材",
"description": "不要下次一定啦~!",
"authorName": "<masked>",
"authorId": "<masked>",
"authorUrl": "<masked>",
"authorAvatar": "<masked>",
"coverUrl": "http://i0.hdslb.com/bfs/archive/d6ccb…",
"durationSeconds": 15,
"publishedAt": "2020-03-15T14:00:15Z",
"views": 267084,
"likes": null,
"coins": null,
"favorites": 8020,
"shares": null,
"comments": 0,
"danmaku": 101,
"category": null,
"tags": [],
"collectorUid": 19286458,
"folderId": 78657758,
"folderTitle": "默认收藏夹",
"favoritedAt": "2022-03-18T06:57:36Z"
}
],
"cursor": "c1.Hq8vR2mTn5wK.yJ0dXA…",
"meta": {
"request_id": "req_01JD8Q…",
"charged_usd": "0.014720",
"balance_usd": "9.875000",
"items": 2
}
}Fields 26
| Field | Type | Example value |
|---|---|---|
| type | string | video |
| bvid | string | BV1tT4y1i7fD |
| aid | null | null |
| url | string | https://www.bilibili.com/video/BV1tT4y1i7fD |
| title | string | 陈翔六点半:在爱情面前,我输的一无所有 |
| description | string | 在爱情的这场游戏里,有人付出了所有,有人失去了所有,有人得到了所有,有人只是路过。 |
| authorName | string | <masked> |
| authorId | string | <masked> |
| authorUrl | string | <masked> |
| authorAvatar | string | <masked> |
| coverUrl | string | http://i1.hdslb.com/bfs/archive/bd12191004cbd602e7c9f789ec3a… |
| durationSeconds | number | 311 |
| publishedAt | string | 2022-03-24T10:20:56Z |
| views | number | 704096 |
| likes | null | null |
| coins | null | null |
| favorites | number | 1756 |
| shares | null | null |
| comments | number | 0 |
| danmaku | number | 2891 |
| category | null | null |
| tags | array | [] |
| collectorUid | number | 19286458 |
| folderId | number | 78657758 |
| folderTitle | string | 默认收藏夹 |
| favoritedAt | string | 2022-03-24T11:09:54Z |
Parameters 2
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| limit | integer | no | How many records to return, 1 to 100. A request never returns more than this. | 5 |
| creators | array | yes | Creator UIDs or profile URLs, e.g. 19286458 or https://space.bilibili.com/19286458; Bilibili share short links (https://b23.tv/...) work too. For favorites, only folders the creator made public are returned; | ["19286458"] |
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.
const params = {"creators":["19286458"]};
const records = [];
let cursor = null;
do {
const response = await fetch("https://api.silklinedata.com/v1/bilibili/favorites", {
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 3 records and its minimum is $0.0025; a request for 100 records reads 34 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 Creator's public favourite folders (videos) take?
Required: creators. 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 3 records, so 100 records take 34 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.0025 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.