Bilibili User Collection Folder Videos

https://api.sandbase.ai/v1/api/bilibili/web/user-collection-videos

Returns video data stored within a specified collection folder on Bilibili. Supports pagination to browse through items in the folder.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 1 optional
Production route

Try the model

Playground

Open playground
Input
collection folder id
Page number
OutputExample
Responseoutputs · 27.1 KB · 789 lines
[
  {
    "data": {
      "code": 0,
      "data": {
        "has_more": true,
        "info": {
          "attr": 22,
          "cnt_info": {
            "collect": 1,
            "play": 0,
            "share": 0,
            "thumb_up": 0
          },
          "cover": "http://i1.hdslb.com/bfs/archive/970cd038dd3fdffd6824748be0425e8f71ba5c2f.jpg",
          "cover_type": 2,
          "ctime": 1662826672,
          "fav_state": 0,
          "fid": 17560595,
          "id": 1756059545,
          "intro": "",
          "is_kid_playlist": false,
          "is_top": false,
          "kid_playlist_desc": "",
          "like_state": 0,
          "media_count": 46,
          "mid": 178360345,
          "mtime": 1688349233,
          "state": 0,
          "title": "艺术",
          "type": 11,
          "upper": {
            "face": "https://i1.hdslb.com/bfs/face/f31765ab779958c5e90ce4b6ff84d468f5342090.jpg",
            "followed": false,
            "mid": 178360345,
            "name": "Azulsolitan",
            "vip_statue": 0,
            "vip_type": 1
          }
        },
        "medias": [
          {
            "attr": 0,
            "bv_id": "BV1MF411A7HS",
            "bvid": "BV1MF411A7HS",
            "cnt_info": {
              "collect": 2736,
              "danmaku": 287,
              "play": 347040,
              "play_switch": 0,
              "reply": 0,
              "view_text_1": "34.7万",
              "vt": 0
            },
            "cover": "http://i1.hdslb.com/bfs/archive/970cd038dd3fdffd6824748be0425e8f71ba5c2f.jpg",
            "ctime": 1659170909,
            "duration": 122,
            "fav_time": 1785408355,
            "id": 301480273,
            "intro": "尔等年纪轻轻,便前来送死吗?——舒克B站唯一账号",
            "link": "bilibili://video/301480273",
            "media_list_link": "bilibili://music/playlist/playpage/1934419845?page_type=3&oid=301480273&otype=2",
            "ogv": null,
            "page": 1,
            "pubtime": 1659170909,
            "season": null,
            "title": "“子龙身故,国家损一栋梁,亮失一臂膀…”",
            "type": 2,
            "ugc": {
              "first_cid": 788703910
            },
            "upper": {
              "face": "https://i1.hdslb.com/bfs/face/74b6b861ccc21ebdb4ff3696fea991314071469d.jpg",
              "jump_link": "",
              "mid": 67365289,
              "name": "舒克混剪"
            }
          },
          {
            "attr": 0,
            "bv_id": "BV1834y1w7uR",
            "bvid": "BV1834y1w7uR",
            "cnt_info": {
              "collect": 6706,
              "danmaku": 42,
              "play": 109597,
              "play_switch": 0,
              "reply": 0,
              "view_text_1": "11万",
              "vt": 0
            },
            "cover": "http://i2.hdslb.com/bfs/archive/3206739858fc698a247708310c79bf266e5a12e7.jpg",
            "ctime": 1700803832,
            "duration": 236,
            "fav_time": 1766579609,
            "id": 833784424,
            "intro": "卓别林演讲 80年后依然振聋发聩-无bgm 纯享版",
            "link": "bilibili://video/833784424",
            "media_list_link": "bilibili://music/playlist/playpage/1934419845?page_type=3&oid=833784424&otype=2",
            "ogv": null,
            "page": 1,
            "pubtime": 1700803832,
            "season": null,
            "title": "卓别林演讲 80年后依然振聋发聩-无bgm 纯享版",
            "type": 2,
            "ugc": {
              "first_cid": 1342452121
            },
            "upper": {
              "face": "https://i0.hdslb.com/bfs/face/35dede8e0603bdaa9a2c7c2d88c18d4c6ed31df7.jpg",
              "jump_link": "",
              "mid": 154277550,
              "name": "壹周新星_一周新星"
            }
          },
          {
            "attr": 0,
            "bv_id": "BV1hp411o7VF",
            "bvid": "BV1hp411o7VF",
            "cnt_info": {
              "collect": 7843,
              "danmaku": 162,
              "play": 430969,
              "play_switch": 0,
              "reply": 0,
              "view_text_1": "43.1万",
              "vt": 0
            },
            "cover": "http://i1.hdslb.com/bfs/archive/116c3bb42911e55d43a3933d48ce0cb3da8e1ddc.jpg",
            "ctime": 1526995842,
            "duration": 91,
            "fav_time": 1733831081,
            "id": 23791865,
            "intro": "所属作品: 囮物语\n简介补充: 还是那句话 香菜赛高!抚子赛高!",
            "link": "bilibili://video/23791865",
            "media_list_link": "bilibili://music/playlist/playpage/1934419845?page_type=3&oid=23791865&otype=2",
            "ogv": null,
            "page": 1,
            "pubtime": 1526995842,
            "season": null,
            "title": "[1080P超清] 妄想特快 - 千石抚子(CV.花泽香菜) [囮物语NCOP]",
            "type": 2,
            "ugc": {
              "first_cid": 39777978
            },
            "upper": {
              "face": "https://i1.hdslb.com/bfs/face/54514037c2d3f5ef9d85d671738e17c13859b152.jpg",
              "jump_link": "",
              "mid": 24248215,
              "name": "小树ちゃん"
            }
          },
          {
            "attr": 0,
            "bv_id": "BV1CYD5YLE8U",
            "bvid": "BV1CYD5YLE8U",
            "cnt_info": {
              "collect": 20845,
              "danmaku": 55,
              "play": 359311,
              "play_switch": 0,
              "reply": 0,
              "view_text_1": "35.9万",
              "vt": 0
            },
            "cover": "http://i1.hdslb.com/bfs/archive/88b61fc2af48803248107bbe89d0c3c9431557c4.jpg",
            "ctime": 1730891756,
            "duration": 13,
            "fav_time": 1731130604,
            "id": 113435706855642,
            "intro": "",
            "link": "bilibili://video/113435706855642",
            "media_list_link": "bilibili://music/playlist/playpage/1934419845?page_type=3&oid=113435706855642&otype=2",
            "ogv": null,
            "page": 1,
            "pubtime": 1730891756,
            "season": null,
            "title": "这是什么联动?",
            "type": 2,
            "ugc": {
              "first_cid": 26642286186
            },
            "upper": {
              "face": "https://i1.hdslb.com/bfs/face/b24975316ec7a0288f217cd94b460856ac3418a8.jpg",
              "jump_link": "",
              "mid": 518389153,
              "name": "ずっと真夜中で"
            }
          },
          {
            "attr": 0,
            "bv_id": "BV1qnxReMEfX",
            "bvid": "BV1qnxReMEfX",
            "cnt_info": {
              "collect": 138814,
              "danmaku": 5842,
              "play": 6788151,
              "play_switch": 0,
              "reply": 0,
              "view_text_1": "678.8万",
              "vt": 0
            },
            "cover": "http://i0.hdslb.com/bfs/archive/9a6764ad3adbb0dcdc14df5e072f167a8ac472dc.jpg",
            "ctime": 1727984463,
            "duration": 186,
            "fav_time": 1730936890,
            "id": 113245151040342,
            "intro": "「オトノケ」\n演唱:Creepy Nuts    作詞:R-指定   作曲、編曲:DJ松永\n\n字幕翻译@大一死给哈子呐  \n自购音源 视频素材再经我后期剪辑\n使用素材:超自然武装当哒当 动画混剪\n音源只供试听,不涉及商业用途,请支持正版。",
            "link": "bilibili://video/113245151040342",
            "media_list_link": "bilibili://music/playlist/playpage/1934419845?page_type=3&oid=113245151040342&otype=2",
            "ogv": null,
            "page": 1,
            "pubtime": 1727984463,
            "season": null,
            "title": "【中日字幕/OP完整版】超自然武装当哒当 OP「オトノケ」Creepy Nuts",
            "type": 2,
            "ugc": {
              "first_cid": 26129861934
            },
            "upper": {
              "face": "https://i1.hdslb.com/bfs/face/1097af3450ab90dbbd85381c7d073c7eccdbccf7.jpg",
              "jump_link": "",
              "mid": 1592191,
              "name": "百億_光年"
            }
          },
          {
            "attr": 0,
            "bv_id": "BV1az4ceJERf",
            "bvid": "BV1az4ceJERf",
            "cnt_info": {
              "collect": 32772,
              "danmaku": 11486,
              "play": 1001042,
              "play_switch": 0,
              "reply": 0,
              "view_text_1": "100.1万",
              "vt": 0
            },
            "cover": "http://i2.hdslb.com/bfs/archive/4298bed9a0960c6d5458a2e634d466f5ed812b0b.jpg",
            "ctime": 1728024148,
            "duration": 27,
            "fav_time": 1728734915,
            "id": 113247785059668,
            "intro": "你最喜欢的动漫是孤独摇滚,最喜欢的动漫角色是后藤一里,开战前你悄悄将波奇酱贴纸贴在了枪身上不明显的地方,开战后在废墟转角遇到一名敌人,你毫不犹豫的开了枪,子弹瞬间击穿他的心脏,也击穿了他开战前放在胸前口袋的山田凉徽章",
            "link": "bilibili://video/113247785059668",
            "media_list_link": "bilibili://music/playlist/playpage/1934419845?page_type=3&oid=113247785059668&otype=2",
            "ogv": null,
            "page": 1,
            "pubtime": 1728024165,
            "season": null,
            "title": "子弹贯穿了我的胸膛,让我迎接另一个世界的新娘",
            "type": 2,
            "ugc": {
              "first_cid": 26135365772
            },
            "upper": {
              "face": "https://i0.hdslb.com/bfs/face/223eabe0bbef3fbbceea5f089e3c20a684314b26.jpg",
              "jump_link": "",
              "mid": 2126152533,
              "name": "xmm消失的那天"
            }
          },
          {
            "attr": 0,
            "bv_id": "BV1nw411j7fV",
            "bvid": "BV1nw411j7fV",
            "cnt_info": {
              "collect": 30363,
              "danmaku": 243,
              "play": 766674,
              "play_switch": 0,
              "reply": 0,
              "view_text_1": "76.7万",
              "vt": 0
            },
            "cover": "http://i1.hdslb.com/bfs/archive/b57ba2f1dfb6584da5b0edce20c1099e948ff407.jpg",
            "ctime": 1706080176,
            "duration": 289,
            "fav_time": 1727416842,
            "id": 326723004,
            "intro": "BGM:Shootout Izzamuzzic/Julien Marchal",
            "link": "bilibili://video/326723004",
            "media_list_link": "bilibili://music/playlist/playpage/1934419845?page_type=3&oid=326723004&otype=2",
            "ogv": null,
            "page": 1,
            "pubtime": 1706080176,
            "season": null,
            "title": "我今年二十九岁,活不到三十岁了。",
            "type": 2,
            "ugc": {
              "first_cid": 1417587261
            },
            "upper": {
              "face": "https://i0.hdslb.com/bfs/face/ef94d733542df22cbee8816257ba29faf1c6f985.jpg",
              "jump_link": "",
              "mid": 335047530,
              "name": "S2Z7"
            }
          },

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

folder_id
string · required
pn
integer · optional

Access

Provider
Bilibili
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/bilibili/web/user-collection-videos
Authentication
Bearer API key

API README

Bilibili User Collection Folder Videos API

Query videos inside a user collection folder by specifying folder_id. Use pn to navigate across multiple pages of results.

Use cases

  • List videos saved in a specific Bilibili collection folder.
  • Track media items curated within user collection directories.
  • Paginate through large folders of saved video content.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-collection-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"folder_id": "<folder_id>"}'

Parameters

NameTypeRequiredDescription
folder_idstringYescollection folder id
pnintegerNoPage number

Notes

  • Specify the target collection using folder_id.
  • Use pn to set the page number for paginated results.

Related APIs

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/bilibili/web/user-collection-videos
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-collection-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "folder_id": "1756059545"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Bilibili$0.0015 per callJSONJul 31, 2026
Bilibili$0.0015 per callJSONJul 31, 2026
Bilibili$0.0015 per callJSONJul 31, 2026
Bilibili$0.0015 per callJSONJul 31, 2026
Bilibili$0.0015 per callJSONJul 31, 2026
Bilibili$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Bilibili User Collection Folder Videos API?

Send a POST request to https://api.sandbase.ai/v1/api/bilibili/web/user-collection-videos with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Bilibili User Collection Folder Videos API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Bilibili User Collection Folder Videos API accept?

Required: folder_id (string). Optional: pn (integer). The Parameters table and the Playground on this page list every field.

What does the Bilibili User Collection Folder Videos API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a Bilibili developer account or API key?

No. Bilibili User Collection Folder Videos runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Bilibili API access separately.