Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Bilibili Video Comments

API 문서
https://api.sandbase.ai/v1/api/bilibili/video-comment

Get comments for a Bilibili video identified by AID, with optional cursor pagination. Use it to review audience discussion, continue through comment pages, or support comment moderation and analysis.

가격
$0.014286USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 1개

Playground

입력
Bilibili Archive ID (AID).
Pagination cursor.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

Bilibili Video Comments API

Returns a page of comments for a Bilibili video. It needs the video's aid and accepts an optional cursor to fetch the next page.

Use cases

  • Read the newest comments on a video to see what viewers are saying right now.
  • Page through all comments of a video to build a dataset for sentiment or topic analysis.
  • Check comments for spam or unwanted content as part of a moderation workflow.
  • Collect commenter IDs and locations to study who takes part in the discussion.

Request

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

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

Parameters

NameTypeRequiredDescription
aidstringYesBilibili Archive ID (AID).
cursorstringNoPagination cursor.

Example response

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

{
  "code": 0,
  "data": {
    "assist": 0,
    "blacklist": 0,
    "callbacks": {},
    "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
    },
    "cursor": {
      "all_count": 239733,
      "is_begin": true,
      "is_end": false,
      "mode": 2,
      "mode_text": "",
      "name": "最新评论",
      "next": 203073,
      "pagination_reply": {
        "next_offset": "CAESEDE4MzY3Mzk0MzQ1OTM4MjEaOAo2wdWey6QJ8c6+y6QJkOSpt7IJkKLKt7IJwInnt7IJgPGnurIJ…"
      },
      "prev": 0,
      "session_id": "",
      "support_mode": [
        2
      ]
    },
    "effects": {
      "preloading": ""
    },
    "note": 1,
    "replies": [
      {
        "action": 0,
        "all_count": 239733,
        "assist": 0,
        "attr": 0,
        "content": {
          "jump_url": {},
          "max_line": 6,
          "members": [],
          "message": "测试一下,马上删。"
        },
        "count": 0,
        "ctime": 1793685983,
        "cursor": "CAESEDE4MzY3Mzk0MzQ1OTM4MjEaOAo2wdWey6QJ8c6+y6QJkOSpt7IJkKLKt7IJwInnt7IJgPGnurIJ…",
        "dialog": 0,
        "dialog_str": "0",
        "dynamic_id_str": "0",
        "fansgrade": 0
      }
    ],
    "top": {
      "admin": null,
      "upper": null,
      "vote": null
    },
    "top_replies": [],
    "upper": {
      "mid": 486906719
    }
  },
  "message": "OK",
  "ttl": 1
}

Response fields

FieldMeaning
data.replies[].content.messageText of the comment. Emotes appear as text such as [星星眼], and @mentions appear as @name.
data.replies[].rpid / data.replies[].rpid_strID of the comment, as a number and as a string. Use the string form to avoid number precision loss.
data.replies[].ctimeTime the comment was posted, as a Unix timestamp in seconds.
data.replies[].like / data.replies[].rcountNumber of likes on the comment, and the number of replies under it.
data.replies[].mid_strID of the user who wrote the comment, as a string. The same ID appears in data.replies[].member.mid.
data.replies[].member.avatarURL of the commenter's avatar image.
data.replies[].reply_control.locationLocation label shown with the comment, for example IP属地:湖南.
data.replies[].content.members[]Profiles of users mentioned in the comment, with mid, avatar and level_info.current_level.
data.cursor.all_countTotal comment count reported for the video.
data.cursor.is_end / data.cursor.nextFlags whether this is the last page, and gives a paging value for the next one.
data.cursor.pagination_reply.next_offsetOffset string for the next page of comments.

Notes

  • Pass aid as a string, for example 80433022. If you only have a BV ID, convert it first with Bilibili BV to AID Converter.
  • For the next page, send the cursor parameter. The response shows data.cursor.pagination_reply.next_offset and a cursor string on each comment. Stop when data.cursor.is_end is true.
  • Each comment has oid equal to the video aid, parent and root set to 0 for top-level comments, and rcount for the number of replies. To read replies to a comment, use Bilibili Comment Replies.
  • data.data.top_replies is an empty list in this response, so pinned comments are not always present.

Pricing

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

더 살펴보기

관련 API

모든 API
API가격응답
Bilibili$0.014286 / 호출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

질문

FAQ

Bilibili Video Comments API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/bilibili/video-comment에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Bilibili Video Comments API 비용은 얼마인가요?

호출당 $0.014286, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Bilibili Video Comments API는 어떤 매개변수를 받나요?

필수: aid (string). 선택: cursor (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Bilibili Video Comments API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Bilibili 개발자 계정이나 API 키가 필요한가요?

아니요. Bilibili Video Comments은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Bilibili API 액세스를 별도로 신청할 필요는 없습니다.