dynamic_idstringbắt buộc
Dynamic id
https://api.sandbase.ai/v1/api/bilibili/web/dynamic-detail-v2Returns detailed data for a specific Bilibili dynamic post using its dynamic ID. Designed for video dynamics, providing author modules and engagement metrics such as comments, shares, and likes.
[
{
"data": {
"code": 0,
"data": {
"item": {
"basic": {
"like_icon": {},
"rid_str": "385887198",
"rtype": 2
},
"id_str": "1172584638000922630",
"modules": [
{
"module_author": {
"decorate_card": null,
"more": {
"three_point_items": [
{
"label": "复制动态地址",
"params": {
"link": "https://t.bilibili.com/1172584638000922630?share_source=pc_native"
},
"type": "THREE_POINT_COPY"
},
{
"label": "举报",
"type": "THREE_POINT_REPORT"
}
]
},
"pub_text": "2026年02月23日 21:07",
"pub_ts": 1771852036,
"relation": {},
"show_follow": false,
"user": {
"face": "https://i2.hdslb.com/bfs/face/6b2ade215ea603b495648875c925172a863d16d4.jpg",
"face_nft": false,
"mid": 17819768,
"name": "电影最TOP",
"official": {
"desc": "",
"role": 1,
"title": "2025百大UP主、2024百大UP主、知名影视UP主",
"type": 0
},
"pendant": {
"expire": 0,
"image": "",
"image_enhance": "",
"image_enhance_frame": "",
"n_pid": 0,
"name": "",
"pid": 0
},
"vip": {
"avatar_icon": {
"icon_resource": {},
"icon_type": 1
},
"avatar_subscript": 1,
"avatar_subscript_url": "",
"due_date": 1795881600000,
"label": {
"bg_color": "#FB7299",
"bg_style": 1,
"border_color": "",
"img_label_uri_hans": "",
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/8d4f8bfc713826a5412a0a27eaaac4d6b9ede1d9.png",
"img_label_uri_hant": "",
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/VEW8fCC0hg.png",
"label_theme": "annual_vip",
"path": "http://i0.hdslb.com/bfs/vip/label_annual.png",
"text": "年度大会员",
"text_color": "#FFFFFF",
"use_img_label": true
},
"nickname_color": "#FB7299",
"role": 3,
"status": 1,
"theme_type": 0,
"tv_due_date": 1693929600,
"tv_vip_pay_type": 0,
"tv_vip_status": 0,
"type": 2,
"vip_pay_type": 1
}
}
},
"module_type": "MODULE_TYPE_AUTHOR"
},
{
"module_desc": {
"rich_text_nodes": [
{
"orig_text": "新一期唠嗑节目已发布,夕阳(他又改名了)回归聊幕后趣闻,仍然薅小片片当嘉宾,除了初四限定上映的《夜王》,春节档新片都聊到,还有春晚、冬奥、中戏反腐、seedance2.0等话题,赶在上班前剪出来,三个小时同学们回家路上听!(电影最TOP公号放出)",
"text": "新一期唠嗑节目已发布,夕阳(他又改名了)回归聊幕后趣闻,仍然薅小片片当嘉宾,除了初四限定上映的《夜王》,春节档新片都聊到,还有春晚、冬奥、中戏反腐、seedance2.0等话题,赶在上班前剪出来,三个小时同学们回家路上听!(电影最TOP公号放出)",
"type": "RICH_TEXT_NODE_TYPE_TEXT"
}
],
"text": "新一期唠嗑节目已发布,夕阳(他又改名了)回归聊幕后趣闻,仍然薅小片片当嘉宾,除了初四限定上映的《夜王》,春节档新片都聊到,还有春晚、冬奥、中戏反腐、seedance2.0等话题,赶在上班前剪出来,三个小时同学们回家路上听!(电影最TOP公号放出)"
},
"module_type": "MODULE_TYPE_DESC"
},
{
"module_dynamic": {
"dyn_draw": {
"id": 385887198,
"items": [
{
"height": 717,
"size": 66.254,
"src": "http://i0.hdslb.com/bfs/new_dyn/034439a51898af0461e61ec42d3cbe5317819768.png",
"width": 689
}
]
},
"type": "MDL_DYN_TYPE_DRAW"
},
"module_type": "MODULE_TYPE_DYNAMIC"
},
"… 1 more items in the full response"
],
"type": "DYNAMIC_TYPE_DRAW",
"visible": true
}
},
"message": "0",
"ttl": 1
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns the details of one Bilibili dynamic post, including the author module, the text description and any attached images. It needs one input, the dynamic_id of the post.
mid and verification title of the account that posted a dynamic.curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/dynamic-detail-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"dynamic_id": "1172584638000922630"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
dynamic_id | string | Yes | Dynamic id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"item": {
"basic": {
"like_icon": {},
"rid_str": "385887198",
"rtype": 2
},
"id_str": "1172584638000922630",
"modules": [
{
"module_author": {
"decorate_card": null,
"more": {
"three_point_items": [
{
"label": "复制动态地址",
"params": {
"link": "https://t.bilibili.com/1172584638000922630?share_source=pc_native"
},
"type": "THREE_POINT_COPY"
}
]
},
"pub_text": "2026年02月23日 21:07",
"pub_ts": 1771852036,
"relation": null,
"show_follow": false,
"user": {
"face": "https://i2.hdslb.com/bfs/face/6b2ade215ea603b495648875c925172a863d16d4.jpg",
"face_nft": false,
"mid": 17819768,
"name": "电影最TOP",
"official": {
"desc": "",
"role": 1,
"title": "2025百大UP主、2024百大UP主、知名影视UP主",
"type": 0
},
"pendant": {
"expire": 0,
"image": "",
"image_enhance": "",
"image_enhance_frame": "",
"n_pid": 0,
"name": "",
"pid": 0
},
"vip": {
"avatar_icon": {
"icon_resource": {},
"icon_type": 1
},
"avatar_subscript": 1,
"avatar_subscript_url": "",
"due_date": 1828022400000,
"label": {
"bg_color": "#FB7299",
"bg_style": 1,
"border_color": "",
"img_label_uri_hans": "https://i0.hdslb.com/bfs/activity-plat/static/20220608/e369244d0b14644f5e1a06431…",
"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/e369244d0b14644f5e1a06431…",
"label_theme": "annual_vip"
},
"nickname_color": "#FB7299",
"role": 3,
"status": 1
}
}
},
"module_type": "MODULE_TYPE_AUTHOR"
}
],
"type": "DYNAMIC_TYPE_DRAW",
"visible": true
}
},
"message": "0",
"ttl": 1
}
| Field | Meaning |
|---|---|
data.item.id_str | The dynamic ID as a string. It matches the dynamic_id you sent. |
data.item.type | The dynamic type, for example DYNAMIC_TYPE_DRAW for an image post. |
data.item.basic.rid_str / data.item.basic.rtype | The resource ID of the post content and its numeric resource type. |
data.item.modules[].module_type | Names the module in each list entry. Values seen are MODULE_TYPE_AUTHOR, MODULE_TYPE_DESC and MODULE_TYPE_DYNAMIC. |
data.item.modules[].module_author.user.mid / data.item.modules[].module_author.user.name | The numeric user ID and display name of the author. |
data.item.modules[].module_author.pub_ts / data.item.modules[].module_author.pub_text | The publish time as a Unix timestamp and as formatted text. |
data.item.modules[].module_author.user.official.title | The verification title shown on the author's account. |
data.item.modules[].module_desc.text | The plain text of the post. |
data.item.modules[].module_dynamic.dyn_draw.items[].src | The URL of each attached image. width, height and size sit beside it. |
data.item.modules[].module_author.more.three_point_items[].params.link | The share link of the dynamic, found in the item of type THREE_POINT_COPY. |
modules list holds one object per module. Find each one by its module_type and do not rely on its position.DYNAMIC_TYPE_DRAW), so the response has dyn_draw and no engagement counts. Other dynamic types may return different modules.dynamic_id as a string. It is a long number and the response returns it as id_str.pub_ts is a Unix timestamp. pub_text shows the same time as text.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/dynamic-detail-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dynamic_id": "1172584638000922630"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
dynamic_idstringbắt buộcDynamic id
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"code": 0,
"data": {
"item": {
"basic": {
"like_icon": {},
"rid_str": "385887198",
"rtype": 2
},
"id_str": "1172584638000922630",
"modules": [
{
"module_author": {
"decorate_card": null,
"more": {
"three_point_items": [
{
"label": "复制动态地址",
"params": {
"link": "https://t.bilibili.com/1172584638000922630?share_source=pc_native"
},
"type": "THREE_POINT_COPY"
},
{
"label": "举报",
"type": "THREE_POINT_REPORT"
}
]
},
"pub_text": "2026年02月23日 21:07",
"pub_ts": 1771852036,
"relation": {},
"show_follow": false,
"user": {
"face": "https://i2.hdslb.com/bfs/face/6b2ade215ea603b495648875c925172a863d16d4.jpg",
"face_nft": false,
"mid": 17819768,
"name": "电影最TOP",
"official": {
"desc": "",
"role": 1,
"title": "2025百大UP主、2024百大UP主、知名影视UP主",
"type": 0
},
"pendant": {
"expire": 0,
"image": "",
"image_enhance": "",
"image_enhance_frame": "",
"n_pid": 0,
"name": "",
"pid": 0
},
"vip": {
"avatar_icon": {
"icon_resource": {},
"icon_type": 1
},
"avatar_subscript": 1,
"avatar_subscript_url": "",
"due_date": 1795881600000,
"label": {
"bg_color": "#FB7299",
"bg_style": 1,
"border_color": "",
"img_label_uri_hans": "",
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/8d4f8bfc713826a5412a0a27eaaac4d6b9ede1d9.png",
"img_label_uri_hant": "",
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/VEW8fCC0hg.png",
"label_theme": "annual_vip",
"path": "http://i0.hdslb.com/bfs/vip/label_annual.png",
"text": "年度大会员",
"text_color": "#FFFFFF",
"use_img_label": true
},
"nickname_color": "#FB7299",
"role": 3,
"status": 1,
"theme_type": 0,
"tv_due_date": 1693929600,
"tv_vip_pay_type": 0,
"tv_vip_status": 0,
"type": 2,
"vip_pay_type": 1
}
}
},
"module_type": "MODULE_TYPE_AUTHOR"
},
{
"module_desc": {
"rich_text_nodes": [
{
"orig_text": "新一期唠嗑节目已发布,夕阳(他又改名了)回归聊幕后趣闻,仍然薅小片片当嘉宾,除了初四限定上映的《夜王》,春节档新片都聊到,还有春晚、冬奥、中戏反腐、seedance2.0等话题,赶在上班前剪出来,三个小时同学们回家路上听!(电影最TOP公号放出)",
"text": "新一期唠嗑节目已发布,夕阳(他又改名了)回归聊幕后趣闻,仍然薅小片片当嘉宾,除了初四限定上映的《夜王》,春节档新片都聊到,还有春晚、冬奥、中戏反腐、seedance2.0等话题,赶在上班前剪出来,三个小时同学们回家路上听!(电影最TOP公号放出)",
"type": "RICH_TEXT_NODE_TYPE_TEXT"
}
],
"text": "新一期唠嗑节目已发布,夕阳(他又改名了)回归聊幕后趣闻,仍然薅小片片当嘉宾,除了初四限定上映的《夜王》,春节档新片都聊到,还有春晚、冬奥、中戏反腐、seedance2.0等话题,赶在上班前剪出来,三个小时同学们回家路上听!(电影最TOP公号放出)"
},
"module_type": "MODULE_TYPE_DESC"
},
{
"module_dynamic": {
"dyn_draw": {
"id": 385887198,
"items": [
{
"height": 717,
"size": 66.254,
"src": "http://i0.hdslb.com/bfs/new_dyn/034439a51898af0461e61ec42d3cbe5317819768.png",
"width": 689
}
]
},
"type": "MDL_DYN_TYPE_DRAW"
},
"module_type": "MODULE_TYPE_DYNAMIC"
},
"… 1 more items in the full response"
],
"type": "DYNAMIC_TYPE_DRAW",
"visible": true
}
},
"message": "0",
"ttl": 1
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/bilibili/web/dynamic-detail-v2 với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: dynamic_id (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Bilibili Dynamic Details (V2) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Bilibili.