Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Bilibili Comprehensive Popular Videos

API 文件
https://api.sandbase.ai/v1/api/bilibili/web/com-popular

Returns a comprehensive list of trending videos on Bilibili, including video metadata, author details, and engagement statistics across pages.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 1 個選填

Playground

輸入
Page number
輸出範例
回應outputs · 7.9 KB · 259 行
[
  {
    "data": {
      "code": 0,
      "data": {
        "list": [
          {
            "ai_rcmd": null,
            "aid": 117393753899831,
            "attribute_v3": 5,
            "bvid": "BV1Uppw6yEMr",
            "cid": 42513074607,
            "copyright": 1,
            "cover43": "http://i0.hdslb.com/bfs/archive/229838b5c05e9b28f35eb29cf90a02ab0c0225c4.jpg",
            "ctime": 1791286688,
            "current_state": 0,
            "desc": "嘻嘻嘻嘻我就是想看你这个表情啊嘻嘻嘻嘻我就是想看你这个表情啊嘻嘻嘻嘻我就是想看你这个表情啊嘻嘻嘻嘻我就是想看你这个表情啊嘻嘻嘻嘻我就是想看你这嘻嘻嘻嘻我就是想看你这个表情啊嘻嘻嘻嘻我就是想看你这个表情啊2026年七月新番完结吐槽嘻嘻嘻嘻我就是想看你这个表情啊嘻嘻嘻嘻我就是想看你这个表情啊嘻嘻嘻嘻我就是2026年7月新番完结吐槽想看你这个表情啊嘻嘻嘻嘻我就是想看你这个表情啊",
            "dimension": {
              "height": 1080,
              "rotate": 0,
              "width": 1920
            },
            "duration": 962,
            "dynamic": "泛式队长,完结吐槽!",
            "enable_vt": 0,
            "first_frame": "http://i0.hdslb.com/bfs/storyff/_00002j1xqhmyb6ypx29o0pvqz9bq0hb_firsti.jpg",
            "global_state": 0,
            "is_ogv": false,
            "ogv_info": null,
            "owner": {
              "face": "https://i0.hdslb.com/bfs/face/2608aaa45309c77ac88fbfaa40e160b8c7892985.jpg",
              "mid": 63231,
              "name": "泛式"
            },
            "pic": "http://i2.hdslb.com/bfs/archive/41d3e001cdd357a5ba03d1db1ea863c8a529551c.jpg",
            "pid_name_v2": "二次元",
            "pid_v2": 1005,
            "pub_location": "上海",
            "pubdate": 1791286688,
            "rcmd_reason": {
              "content": "",
              "corner_mark": 0
            },
            "rights": {
              "arc_pay": 0,
              "autoplay": 1,
              "bp": 0,
              "download": 0,
              "elec": 0,
              "hd5": 0,
              "is_cooperation": 0,
              "movie": 0,
              "no_background": 0,
              "no_reprint": 1,
              "pay": 0,
              "pay_free_watch": 0,
              "ugc_pay": 0,
              "ugc_pay_preview": 0
            },
            "season_id": 19833,
            "season_type": 0,
            "short_link_v2": "https://b23.tv/BV1Uppw6yEMr",
            "stat": {
              "aid": 117393753899831,
              "coin": 27696,
              "danmaku": 2387,
              "dislike": 0,
              "fav_g": 6,
              "favorite": 10423,
              "his_rank": 0,
              "like": 31112,
              "like_g": 0,
              "now_rank": 0,
              "reply": 2082,
              "share": 2615,
              "view": 180230,
              "vt": 0,
              "vv": 180230
            },
            "state": 0,
            "tid": 253,
            "tidv2": 2042,
            "title": "啊啊7月新番你到底给我下了什么药啊!!【泛式】",
            "tname": "动漫杂谈",
            "tnamev2": "动漫评论",
            "videos": 1
          },
          {
            "ai_rcmd": null,
            "aid": 117393636526517,
            "attribute_v3": 4,
            "bvid": "BV13Lpw6nEsv",
            "cid": 42512548651,
            "copyright": 1,
            "cover43": "",
            "ctime": 1791285330,
            "current_state": 0,
            "desc": "回应视频",
            "dimension": {
              "height": 1440,
              "rotate": 0,
              "width": 2560
            },
            "duration": 569,
            "dynamic": "回应视频",
            "enable_vt": 0,
            "first_frame": "http://i0.hdslb.com/bfs/storyff/_00001zxu0yrhcx93y229ao9ivl0fqyb_firsti.jpg",
            "global_state": 0,
            "is_ogv": false,
            "ogv_info": null,
            "owner": {
              "face": "https://i1.hdslb.com/bfs/face/ab4e057142209e966ae69e2bf6b549df229b131f.jpg",
              "mid": 79453258,
              "name": "拉杰l"
            },
            "pic": "http://i1.hdslb.com/bfs/archive/7c7154849a397c616a7edae77b82cc0260a73896.jpg",
            "pid_name_v2": "游戏",
            "pid_v2": 1008,
            "pub_location": "湖南",
            "pubdate": 1791285330,
            "rcmd_reason": {
              "content": "",
              "corner_mark": 0
            },
            "rights": {
              "arc_pay": 0,
              "autoplay": 1,
              "bp": 0,
              "download": 0,
              "elec": 0,
              "hd5": 0,
              "is_cooperation": 0,
              "movie": 0,
              "no_background": 0,
              "no_reprint": 0,
              "pay": 0,
              "pay_free_watch": 0,
              "ugc_pay": 0,
              "ugc_pay_preview": 0
            },
            "season_type": 0,
            "short_link_v2": "https://b23.tv/BV13Lpw6nEsv",
            "stat": {
              "aid": 117393636526517,
              "coin": 11204,
              "danmaku": 1340,
              "dislike": 0,
              "fav_g": 0,
              "favorite": 4635,
              "his_rank": 0,
              "like": 21724,
              "like_g": 0,
              "now_rank": 0,
              "reply": 9447,
              "share": 1316,
              "view": 123137,
              "vt": 0,
              "vv": 123137
            },
            "state": 0,
            "tid": 21,
            "tidv2": 2073,
            "title": "回应视频",
            "tname": "日常",
            "tnamev2": "动作竞技游戏",
            "up_from_v2": 16,
            "videos": 1
          },
          {
            "ai_rcmd": null,
            "aid": 117393586128724,
            "attribute_v3": 4,
            "bvid": "BV1SJpw62E5y",
            "cid": 42512289196,
            "copyright": 3,
            "cover43": "http://i1.hdslb.com/bfs/archive/6371f48a27e55cc3383f6210f5691bc00357a694.jpg",
            "ctime": 1791284631,
            "current_state": 0,
            "desc": "-",
            "dimension": {
              "height": 3840,
              "rotate": 0,
              "width": 2160
            },
            "duration": 304,
            "dynamic": "",
            "enable_vt": 0,
            "first_frame": "http://i0.hdslb.com/bfs/storyff/_00002irpdhgsbwlbg2o910rxcqgvrwb_firsti.jpg",
            "global_state": 0,
            "is_ogv": false,
            "mission_id": 4069921,
            "ogv_info": null,
            "owner": {
              "face": "https://i1.hdslb.com/bfs/face/1367615bfd41b079eae1ac1225dbefcc260acbbb.jpg",
              "mid": 373388923,
              "name": "脱缰凯Kk"
            },
            "pic": "http://i2.hdslb.com/bfs/archive/1fb6967bf1a3c9dd55b9fcf379b63bd46d2d65fb.jpg",
            "pid_name_v2": "小剧场",
            "pid_v2": 1021,
            "pub_location": "辽宁",
            "pubdate": 1791284631,
            "rcmd_reason": {
              "content": "",
              "corner_mark": 0
            },
            "rights": {
              "arc_pay": 0,
              "autoplay": 1,
              "bp": 0,
              "download": 0,
              "elec": 0,
              "hd5": 0,
              "is_cooperation": 0,
              "movie": 0,
              "no_background": 0,
              "no_reprint": 0,
              "pay": 0,
              "pay_free_watch": 0,
              "ugc_pay": 0,
              "ugc_pay_preview": 0
            },
            "season_type": 0,
            "short_link_v2": "https://b23.tv/BV1SJpw62E5y",
            "stat": {
              "aid": 117393586128724,
              "coin": 1127,
              "danmaku": 2389,
              "dislike": 0,
              "fav_g": 28,
              "favorite": 2427,
              "his_rank": 0,
              "like": 17890,
              "like_g": 11,
              "now_rank": 0,
              "reply": 722,
              "share": 164,
              "view": 150480,
              "vt": 0,
              "vv": 150480
            },
            "state": 0,
            "tid": 85,
            "tidv2": 2154,
            "title": "破案",
            "tname": "小剧场",
            "tnamev2": "剧情演绎",
            "up_from_v2": 36,
            "videos": 1
          },
          "… 17 more items in the full response"
        ],
        "no_more": false
      },
      "message": "OK",
      "ttl": 1
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Bilibili Comprehensive Popular Videos API

Returns one page of trending videos on Bilibili. Each item has video metadata, author details, category names and engagement counts. The only input is the optional page number pn, which defaults to 1.

Use cases

  • Build a daily snapshot of which videos are trending on Bilibili and track how stat.his_rank changes.
  • Compare stat.like, stat.coin and stat.favorite across trending videos to see which content earns the most engagement.
  • Group trending videos by pid_name_v2 or tnamev2 to see which categories dominate the list.
  • Collect creator owner.mid values from trending videos to find authors worth tracking.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/com-popular" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
pnintegerNoPage number

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "code": 0,
  "data": {
    "list": [
      {
        "ai_rcmd": null,
        "aid": 117547651307164,
        "attribute_v3": 4,
        "bvid": "BV19b4A6PECX",
        "cid": 43272309199,
        "copyright": 1,
        "cover43": "http://i0.hdslb.com/bfs/archive/9f5f456a7fb8b8ab9a3517ff21edbec7d4c3ca67.jpg",
        "ctime": 1793635087,
        "current_state": 0,
        "desc": "与能源相关的实验都存在一定的危险性,所以工作人员需要时刻保持谨慎的态度。\n不妨多问问自己:有日程可控的预期吗?有数据稳定的可能吗?有提前完成的风险吗?\n\n中文C…",
        "dimension": {
          "height": 1080,
          "rotate": 0,
          "width": 2560
        },
        "duration": 681
      }
    ],
    "no_more": false
  },
  "message": "OK",
  "ttl": 1
}

Response fields

FieldMeaning
data.list[].bvid / data.list[].aidThe video's BV ID and its numeric AID. Both identify the same video.
data.list[].title / data.list[].descThe video title and its description text. Long descriptions are cut in this sample.
data.list[].owner.mid / data.list[].owner.name / data.list[].owner.faceThe author's numeric ID, display name and avatar image URL.
data.list[].stat.like / data.list[].stat.coin / data.list[].stat.favorite / data.list[].stat.danmakuEngagement counts for the video: likes, coins, favorites and danmaku (on-screen comments).
data.list[].stat.his_rankA rank value for the video. It is 0 for videos without a rank.
data.list[].pid_name_v2 / data.list[].tnamev2The top-level category name and the finer sub-category name of the video.
data.list[].pubdate / data.list[].ctimeUnix timestamps in seconds. pubdate is the publish time and ctime is the creation time.
data.list[].duration / data.list[].dimension.width / data.list[].dimension.heightThe video length (in the value's own unit, seconds by the sample values) and the frame width and height in pixels.
data.list[].rcmd_reason.contentA short recommendation label such as a like count badge. It is an empty string when there is none.
data.list[].short_link_v2A short b23.tv link to the video page.
data.no_moreA boolean that shows whether more pages remain. false means more pages may be available.

Notes

  • Set pn to request later pages. Start at 1 and increase by one while data.no_more is false.
  • Video IDs come as bvid (a string starting with BV) and aid (a number). Use Bilibili BV to AID Converter to convert a BV ID to an AID.
  • Pass a bvid from this list to Bilibili Video Details to get details for one video.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON

指南:Best Bilibili API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Bilibili Comprehensive Popular Videos API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/bilibili/web/com-popular。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Bilibili Comprehensive Popular Videos API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Bilibili Comprehensive Popular Videos API 接受哪些參數?

不需要任何參數。 選填:pn (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Bilibili Comprehensive Popular Videos API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Bilibili 開發者帳號或 API 金鑰嗎?

不需要。Bilibili Comprehensive Popular Videos 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Bilibili API 存取權。