Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Bilibili Web Video Details

API 文档
https://api.sandbase.ai/v1/api/bilibili/web/video-detail

Returns detailed metadata, season sections, and episode listings for a specific Bilibili video using its unique video identifier.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
Video id
输出示例
响应outputs · 30.0 KB · 914 行
[
  {
    "data": {
      "code": 0,
      "data": {
        "Card": {
          "archive_count": 215,
          "article_count": 0,
          "card": {
            "DisplayRank": "0",
            "Official": {
              "desc": "",
              "role": 1,
              "title": "bilibili 知名军事UP主",
              "type": 0
            },
            "approve": false,
            "article": 0,
            "attention": 273,
            "attentions": [],
            "birthday": "",
            "description": "",
            "face": "https://i0.hdslb.com/bfs/face/11e43339714fff1f8005c2b96bb29a889cee4cfb.jpg",
            "face_nft": 0,
            "face_nft_type": 0,
            "fans": 247371,
            "friend": 273,
            "is_senior_member": 0,
            "level_info": {
              "current_exp": 0,
              "current_level": 6,
              "current_min": 0,
              "next_exp": 0
            },
            "mid": "317063106",
            "name": "HonorDW",
            "name_render": null,
            "nameplate": {
              "condition": "转载视频投稿通过总数>=100,数据次日更新",
              "image": "https://i0.hdslb.com/bfs/face/a9af39ab7ed08e078c45d58dd96a6411aba1a9d3.png",
              "image_small": "https://i1.hdslb.com/bfs/face/46e5aae4667c72c379b46b51fac4b4426d9214e7.png",
              "level": "高级勋章",
              "name": "高级搬运工",
              "nid": 6
            },
            "official_verify": {
              "desc": "bilibili 知名军事UP主",
              "type": 0
            },
            "pendant": {
              "expire": 0,
              "image": "",
              "image_enhance": "",
              "image_enhance_frame": "",
              "n_pid": 0,
              "name": "",
              "pid": 0
            },
            "place": "",
            "rank": "10000",
            "regtime": 0,
            "sex": "男",
            "sign": "主要翻译GT的视频,也会翻译些我在油管上看到比较有意思的视频",
            "spacesta": 0,
            "vip": {
              "avatar_icon": {
                "icon_resource": {},
                "icon_type": 1
              },
              "avatar_subscript": 1,
              "avatar_subscript_url": "",
              "due_date": 1815580800000,
              "label": {
                "bg_color": "#FB7299",
                "bg_style": 1,
                "border_color": "",
                "img_label_uri_hans": "https://i0.hdslb.com/bfs/activity-plat/static/20220608/e369244d0b14644f5e1a06431e22a4d5/0DFy9BHgwE.gif",
                "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/8d7e624d13d3e134251e4174a7318c19a8edbd71.png",
                "img_label_uri_hant": "",
                "img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/uckjAv3Npy.png",
                "img_label_uri_i18n": "",
                "img_label_uri_i18n_static": "",
                "label_goto": {
                  "mobile": "https://big.bilibili.com/mobile/index?navhide=1&from_spmid=vipicon",
                  "pc_web": "https://account.bilibili.com/big?from_spmid=vipicon"
                },
                "label_id": -22,
                "label_theme": "annual_vip",
                "label_type": 2,
                "path": "http://i0.hdslb.com/bfs/vip/label_annual.png",
                "text": "年度大会员",
                "text_color": "#FFFFFF",
                "use_img_label": true
              },
              "nickname_color": "#FB7299",
              "ott_info": {
                "overdue_time": 1813680000,
                "pay_channel_id": "wechat",
                "pay_type": 1,
                "status": 1,
                "vip_type": 1
              },
              "role": 3,
              "status": 1,
              "super_vip": {
                "is_super_vip": true
              },
              "theme_type": 0,
              "tv_due_date": 1813680000,
              "tv_vip_pay_type": 1,
              "tv_vip_status": 1,
              "type": 2,
              "vipStatus": 1,
              "vipType": 2,
              "vip_pay_type": 1
            }
          },
          "follower": 247371,
          "following": false,
          "like_num": 1318116,
          "space": {
            "l_img": "https://i1.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png",
            "s_img": "https://i2.hdslb.com/bfs/activity-plat/static/LRjqHhi0wL.png"
          }
        },
        "Related": [
          {
            "ai_rcmd": null,
            "aid": 113032147502448,
            "attribute_v3": 4,
            "bvid": "BV19csse1E6H",
            "cid": 500001663747414,
            "copyright": 2,
            "cover43": "",
            "ctime": 1724733826,
            "desc": "原视频标题:Full Auto G3",
            "dimension": {
              "height": 1080,
              "rotate": 0,
              "width": 1920
            },
            "duration": 25,
            "dynamic": "",
            "enable_vt": 0,
            "first_frame": "http://i1.hdslb.com/bfs/storyff/n240827sa3fiulk379hr8y35qw3dxwx8_firsti.jpg",
            "is_ogv": false,
            "ogv_info": null,
            "owner": {
              "face": "https://i0.hdslb.com/bfs/face/be261c6d8a803dfc7efae29fe8a3752c2032fb61.jpg",
              "mid": 1986160533,
              "name": "roger_taney"
            },
            "pic": "http://i2.hdslb.com/bfs/archive/4035a065ae744a58772dcb93d2ff24a15115e31f.jpg",
            "pid_name_v2": "科技数码",
            "pid_v2": 1012,
            "pub_location": "广东",
            "pubdate": 1724733825,
            "rcmd_reason": "",
            "rights": {
              "arc_pay": 0,
              "autoplay": 1,
              "bp": 0,
              "download": 0,
              "elec": 0,
              "hd5": 1,
              "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/BV19csse1E6H",
            "stat": {
              "aid": 113032147502448,
              "coin": 5,
              "danmaku": 12,
              "dislike": 0,
              "fav_g": 0,
              "favorite": 625,
              "his_rank": 0,
              "like": 750,
              "like_g": 0,
              "now_rank": 0,
              "reply": 38,
              "share": 68,
              "view": 76749,
              "vt": 0,
              "vv": 76749
            },
            "state": 0,
            "tid": 232,
            "tidv2": 2103,
            "title": "G3全自动射击",
            "tname": "科工机械",
            "tnamev2": "工程机械",
            "videos": 1
          },
          {
            "ai_rcmd": null,
            "aid": 869247382,
            "attribute_v3": 4,
            "bvid": "BV1rV4y1z7By",
            "cid": 1147068169,
            "copyright": 2,
            "cover43": "",
            "ctime": 1685441588,
            "desc": "源于油管\n【中字】冷战时期战斗步枪之终极对决:FAL vs G3(MAC)",
            "dimension": {
              "height": 1080,
              "rotate": 0,
              "width": 1920
            },
            "duration": 2103,
            "dynamic": "",
            "enable_vt": 0,
            "first_frame": "http://i2.hdslb.com/bfs/storyff/n230530qn1khuz6mco3lij3lvfyen78o_firsti.jpg",
            "is_ogv": false,
            "ogv_info": null,
            "owner": {
              "face": "https://i0.hdslb.com/bfs/face/65141829d8606019f0d985fea6506ececb6548bd.jpg",
              "mid": 1731827829,
              "name": "多邊型射手"
            },
            "pic": "http://i2.hdslb.com/bfs/archive/9e655123c65479a9f9c536431c1fb01bf1846455.jpg",
            "pid_name_v2": "科技数码",
            "pid_v2": 1012,
            "pub_location": "加拿大",
            "pubdate": 1685502000,
            "rcmd_reason": "",
            "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/BV1rV4y1z7By",
            "stat": {
              "aid": 869247382,
              "coin": 369,
              "danmaku": 145,
              "dislike": 0,
              "fav_g": 0,
              "favorite": 8513,
              "his_rank": 0,
              "like": 3520,
              "like_g": 3,
              "now_rank": 0,
              "reply": 328,
              "share": 101,
              "view": 277638,
              "vt": 0,
              "vv": 277638
            },
            "state": 0,
            "tid": 122,
            "tidv2": 2103,
            "title": "【中字】冷战时期战斗步枪之终极对决:FAL vs G3(MAC)",
            "tname": "野生技能协会",
            "tnamev2": "工程机械",
            "videos": 1
          },
          {
            "ai_rcmd": null,
            "aid": 114998336554377,
            "attribute_v3": 4,
            "bvid": "BV1xVtbz5EKQ",
            "cid": 31587500720,
            "copyright": 2,
            "cover43": "http://i1.hdslb.com/bfs/archive/7150c5ee1805d1826748a138f10dd70a48f6a5bb.jpg",
            "ctime": 1754735730,
            "desc": "https://m.youtube.com/watch?v=_ikUvRtXsk8&pp=ygUFaGs0MzM%3D\n原视频发布于2025年6月1日\n我翻译这个视频不是因为我没事干,而是我想恶心大家\n(炸鸡叔远哭6装备背手摆领带)",
            "dimension": {
              "height": 1080,
              "rotate": 0,
              "width": 1920
            },
            "duration": 701,
            "dynamic": "",
            "enable_vt": 0,
            "first_frame": "http://i1.hdslb.com/bfs/storyff/n250809tx2ux1gov5cem9v3kuwpyawh3_firsti.jpg",
            "is_ogv": false,
            "ogv_info": null,
            "owner": {
              "face": "https://i2.hdslb.com/bfs/face/3db16eacab93fd9d03626787249b12681e944387.jpg",
              "mid": 292941413,

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Bilibili Web Video Details API

Returns metadata for one Bilibili video: title-level details, uploader card, tags, stats, and a list of related videos. It needs the numeric video id as aid.

Use cases

  • Pull the view counts, like, coin and favorite numbers for a single Bilibili video.
  • Read the uploader's follower count and total likes next to a video to judge a creator.
  • Collect the tags and related videos of a video to map a topic cluster.
  • Get the part list and durations of a multi-part upload before fetching play data.

Request

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

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

Parameters

NameTypeRequiredDescription
aidstringYesVideo id

Example response

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

{
  "code": 0,
  "data": {
    "Card": {
      "archive_count": 222,
      "article_count": 0,
      "card": {
        "DisplayRank": "0",
        "Official": {
          "desc": "",
          "role": 1,
          "title": "bilibili 知名军事UP主",
          "type": 0
        },
        "approve": false,
        "article": 0,
        "attention": 273,
        "attentions": [],
        "birthday": "",
        "description": ""
      },
      "follower": 251245,
      "following": false,
      "like_num": 1345184,
      "space": {
        "l_img": "https://i0.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png",
        "s_img": "https://i1.hdslb.com/bfs/activity-plat/static/LRjqHhi0wL.png"
      }
    },
    "Related": [
      {
        "ai_rcmd": {
          "goto": "av",
          "id": 113548684496734,
          "trackid": "web_related_0.router-related-2479604-s7xkd.1793690888895.501",
          "uniq_id": ""
        },
        "aid": 113548684496734,
        "attribute_v3": 4,
        "bvid": "BV1K4zGYHEzk",
        "cid": 27040352696,
        "copyright": 1,
        "cover43": "",
        "ctime": 1732615519,
        "current_state": 0,
        "desc": "-",
        "dimension": {
          "height": 1920,
          "rotate": 0,
          "width": 1080
        },
        "duration": 12
      }
    ],
    "Reply": {
      "page": null,
      "replies": [
        {
          "action": 0,
          "assist": 0,
          "attr": 0,
          "content": null,
          "count": 0,
          "ctime": 0,
          "dialog": 0,
          "fansgrade": 0
        }
      ]
    },
    "Spec": null,
    "Tags": [
      {
        "jump_url": "",
        "music_id": "",
        "tag_id": 59110,
        "tag_name": "枪械",
        "tag_type": "old_channel"
      }
    ],
    "View": {
      "aid": 114902186396822,
      "argue_info": {
        "argue_link": "",
        "argue_msg": "",
        "argue_type": 0
      },
      "bvid": "BV12f8wz1Eit",
      "cid": 31230396201,
      "copyright": 2,
      "ctime": 1753269413,
      "desc": "https://youtu.be/UbNuAmhqer0?si=ntYRKNqVeOoRc_od",
      "desc_v2": [
        {
          "biz_id": 0,
          "raw_text": "https://youtu.be/UbNuAmhqer0?si=ntYRKNqVeOoRc_od",
          "type": 1
        }
      ],
      "dimension": {
        "height": 2160,
        "rotate": 0,
        "width": 3840
      },
      "disable_show_up_info": false,
      "duration": 2447,
      "dynamic": ""
    },
    "elec": null,
    "emergency": {
      "no_coin": false,
      "no_fav": false,
      "no_like": false,
      "no_share": false
    },
    "guide": null,
    "hot_share": {
      "list": [],
      "show": false
    },
    "is_hit_labour_day_activity": false,
    "module_ctrl": null
  },
  "message": "OK",
  "ttl": 1
}

Response fields

FieldMeaning
data.View.bvid / data.View.aid / data.View.cidThe video's BV id, numeric aid, and the cid of its first part.
data.View.owner.name / data.View.owner.midName and numeric user id of the uploader.
data.View.pubdate / data.View.ctimePublish time and creation time of the video, as Unix timestamps in seconds.
data.View.durationVideo length. For this example the value is 2447.
data.View.stat.like / data.View.stat.coin / data.View.stat.favorite / data.View.stat.danmakuCounts of likes, coins, favorites and danmaku comments for the video.
data.View.pages[].partTitle of each part of the video. Each row also has cid, page and duration.
data.View.season_idId of the season the video belongs to.
data.Card.follower / data.Card.like_num / data.Card.archive_countUploader's follower count, total likes received, and number of uploaded videos.
data.Tags[].tag_nameTags attached to the video.
data.Related[].bvid / data.Related[].title / data.Related[].stat.likeBV id, title and like count of each related video. Each row also has owner, duration and pubdate.

Notes

  • The aid is the numeric video id. If you only have a BV id such as BV12f8wz1Eit, convert it first with Bilibili BV to AID Converter.
  • The request has no pagination parameters. The response holds one video and a short data.Related list.
  • To read comments on the video, call Bilibili Video Comments (Web).

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.001 每次调用JSON
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON

指南:Best Bilibili API in 2026: Pricing Compared

问题

常见问题

如何使用 Bilibili Web Video Details API?

向 https://api.sandbase.ai/v1/api/bilibili/web/video-detail 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Bilibili Web Video Details API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Bilibili Web Video Details API 接受哪些参数?

必填:aid (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Bilibili Web Video Details API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Bilibili 开发者账户或 API key 吗?

不需要。Bilibili Web Video Details 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Bilibili API 访问权限。