Bilibili Video Comments (Web)
https://api.sandbase.ai/v1/api/bilibili/web/video-commentsReturns comment threads and reply metadata for a specific Bilibili video. Query by video ID with optional page numbering.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 1 optional
Try the model
Playground
[
{
"data": {
"code": 0,
"data": {
"assist": 0,
"blacklist": 0,
"config": {
"read_only": false,
"show_up_flag": true,
"showtopic": 1
},
"control": {
"answer_guide_android_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=6",
"answer_guide_icon_url": "http://i0.hdslb.com/bfs/emote/96940d16602cacbbac796245b7bb99fa9b5c970c.png",
"answer_guide_ios_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=12",
"answer_guide_text": "需要升级成为lv2会员后才可以评论,先去答题转正吧!",
"bg_text": "",
"child_input_text": "与其赞同别人的话语,不如自己畅所欲言。",
"disable_jump_emote": false,
"empty_page": null,
"enable_charged": false,
"enable_cm_biz_helper": false,
"giveup_input_text": "不发没关系,请继续友善哦~",
"input_disable": false,
"preload_resources": null,
"root_input_text": "与其赞同别人的话语,不如自己畅所欲言。",
"screenshot_icon_state": 1,
"show_text": "",
"show_type": 1,
"upload_picture_icon_state": 1,
"web_selection": false
},
"folder": {
"has_folded": false,
"is_folded": false,
"rule": ""
},
"mode": 3,
"page": {
"acount": 2276,
"count": 2276,
"num": 1,
"size": 20
},
"replies": [
{
"action": 0,
"assist": 0,
"attr": 134217728,
"content": {
"emote": {
"[星星眼]": {
"attr": 0,
"id": 1956,
"jump_title": "星星眼",
"meta": {
"size": 1,
"suggest": [
""
]
},
"mtime": 1668688325,
"package_id": 1,
"state": 0,
"text": "[星星眼]",
"type": 1,
"url": "https://i0.hdslb.com/bfs/emote/63c9d1a31c0da745b61cdb35e0ecb28635675db2.png"
}
},
"jump_url": {},
"max_line": 6,
"members": [],
"message": "比基尼[星星眼]",
"picture_scale": 1,
"pictures": [
{
"img_height": 1468,
"img_size": 244,
"img_src": "http://i0.hdslb.com/bfs/new_dyn/2da1197a6620fb4735f60084e5bb4915457009018.jpg",
"img_width": 1180
}
]
},
"count": 33,
"ctime": 1790937028,
"dialog": 0,
"dialog_str": "0",
"dynamic_id": 1254554054531481600,
"dynamic_id_str": "1254554054531481624",
"fansgrade": 0,
"folder": {
"has_folded": false,
"is_folded": false,
"rule": ""
},
"invisible": false,
"like": 605,
"member": {
"avatar": "https://i1.hdslb.com/bfs/face/f75ac0424c94a4d56abdc7dde0e05b5a2a5283b1.jpg",
"avatar_item": {
"container_size": {
"height": 1.8,
"width": 1.8
},
"fallback_layers": {
"is_critical_group": true,
"layers": [
{
"general_spec": {
"pos_spec": {
"axis_x": 0.9,
"axis_y": 0.9,
"coordinate_pos": 2
},
"render_spec": {
"opacity": 1
},
"size_spec": {
"height": 1,
"width": 1
}
},
"layer_config": {
"is_critical": true,
"tags": {
"AVATAR_LAYER": {},
"GENERAL_CFG": {
"config_type": 1,
"general_config": {
"web_css_style": {
"borderRadius": "50%"
}
}
}
}
},
"resource": {
"res_image": {
"image_src": {
"placeholder": 6,
"remote": {
"bfs_style": "widget-layer-avatar",
"url": "https://i1.hdslb.com/bfs/face/f75ac0424c94a4d56abdc7dde0e05b5a2a5283b1.jpg"
},
"src_type": 1
}
},
"res_type": 3
},
"visible": true
}
]
},
"mid": "457009018"
},
"contract_desc": "",
"face_nft_new": 0,
"fans_detail": null,
"handle": "",
"is_contractor": false,
"is_senior_member": 0,
"level_info": {
"current_exp": 0,
"current_level": 6,
"current_min": 0,
"next_exp": 0
},
"mid": "457009018",
"nameplate": {
"condition": "",
"image": "",
"image_small": "",
"level": "",
"name": "",
"nid": 0
},
"nft_interaction": null,
"official_verify": {
"desc": "",
"type": -1
},
"pendant": {
"expire": 0,
"image": "",
"image_enhance": "",
"image_enhance_frame": "",
"n_pid": 0,
"name": "",
"pid": 0
},
"rank": "10000",
"senior": {},
"sex": "男",
"sign": "",
"tribee": null,
"uname": "-酸菜禹-",
"user_sailing": {
"cardbg": null,
"cardbg_with_focus": null,
"pendant": null
},
"user_sailing_v2": {},
"vip": {
"accessStatus": 0,
"avatar_subscript": 0,
"dueRemark": "",
"label": {
"bg_color": "",
"bg_style": 0,
"border_color": "",
"img_label_uri_hans": "",
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/d7b702ef65a976b20ed854cbd04cb9e27341bb79.png",
"img_label_uri_hant": "",
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/KJunwh19T5.png",
"img_label_uri_i18n": "",
"img_label_uri_i18n_static": "",
"label_goto": null,
"label_id": 0,
"label_theme": "",
"label_type": 0,
"path": "",
"text": "",
"text_color": "",
"use_img_label": true
},
"nickname_color": "",
"themeType": 0,
"vipDueDate": 1764259200000,
"vipStatus": 0,
"vipStatusWarn": "",
"vipType": 1
}
},
"mid": 457009018,
"mid_str": "457009018",
"note_cvid_str": "0",
"oid": 117370098157454,
"oid_str": "117370098157454",
"parent": 0,
"parent_str": "0",
"rcount": 23,
"replies": [
{
"action": 0,
"assist": 0,
"attr": 0,
"content": {
"emote": {
"[doge]": {
"attr": 0,
"id": 26,
"jump_title": "doge",
"meta": {
"size": 1,
"suggest": [
""
]
},
"mtime": 1668688325,
"package_id": 1,
"state": 0,
"text": "[doge]",
"type": 1,
"url": "https://i0.hdslb.com/bfs/emote/3087d273a78ccaff4bb1e9972e2ba2a7583c9f11.png"
}
},
"jump_url": {},
"max_line": 6,
"members": [],
"message": "小心烧机[doge]"
},
"count": 0,
"ctime": 1790940692,
"dialog": 315782823201,
"dialog_str": "315782823201",
"dynamic_id_str": "0",
"fansgrade": 0,
"folder": {
"has_folded": false,
"is_folded": false,
"rule": ""
},
"invisible": false,
"like": 32,
"member": {
"avatar": "https://i0.hdslb.com/bfs/face/4c22b27799ccf56d781091760d5e109a0852458a.jpg",
"avatar_item": {
"container_size": {
"height": 1.8,
"width": 1.8
},
"fallback_layers": {
"is_critical_group": true,
"layers": [
{
"general_spec": {
"pos_spec": {
"axis_x": 0.9,
"axis_y": 0.9,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
- bv_id
- string · required
- pn
- integer · optional
Access
- Provider
- Bilibili
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/bilibili/web/video-comments
- Authentication
- Bearer API key
API README
Bilibili Video Comments (Web) API
Retrieve user comments and replies for a specific Bilibili video using bv_id. You can paginate through comment threads using the pn parameter.
Use cases
- Analyze viewer feedback and engagement on a video.
- Monitor top comments and user interactions on specific content.
- Collect discussion data across multiple video comment pages.
Request
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/video-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"bv_id": "BV1M1421t7hT"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bv_id | string | Yes | Video id |
pn | integer | No | Page number |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"data": {
"replies": [
{
"count": 47,
"ctime": 1723373621,
"dynamic_id_str": "0",
"like": 2301,
"rcount": 34,
"type": 1,
"member": {
"rank": "10000",
"uname": "笑chu腹肌"
},
"reply_control": {
"sub_reply_entry_text": "共34条回复",
"sub_reply_title_text": "相关回复共34条",
"time_desc": "786天前发布"
},
"up_action": {
"like": false
}
}
]
}
}
Notes
- Specify the target video using its identifier in
bv_id. - Use
pnto paginate through comment results.
Related APIs
- Bilibili Streaming Areas: Returns the complete list of streaming broadcast areas and categories on Bilibili.
- Bilibili BV to AID Converter: Converts a Bilibili BV identifier to its corresponding numeric AID value.
- Bilibili User Collection Folders: Returns the collection folders owned by a specific Bilibili user.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# 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/video-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"pn": 1,
"bv_id": "BV13eam6MEmV"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Bilibili Video Comments (Web)This API Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Bilibili Video Comments (Web) API?
Send a POST request to https://api.sandbase.ai/v1/api/bilibili/web/video-comments 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 Video Comments (Web) 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 Video Comments (Web) API accept?
Required: bv_id (string). Optional: pn (integer). The Parameters table and the Playground on this page list every field.
What does the Bilibili Video Comments (Web) API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a Bilibili developer account or API key?
No. Bilibili Video Comments (Web) 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.
