Social

Query Bilibili Replies

0calls
4 credits / call

Want to analyse a Bilibili video's comment section? This endpoint makes it easy to fetch reply data — including hot replies and newest replies — with pagination support.

Overview

Given a video's oid (typically the video's aid), the endpoint returns the video's replies page by page. Choose a sort order and pagination parameters to fetch exactly the data you need.

Parameters

  • sort (sort order)
    • 0 or time: sort by time
    • 1 or like: sort by likes
    • 2 or reply: sort by reply count
    • 3 or hot (also hottest, Newest): sort by hotness

Response fields

  • hots (hot replies): Returned only on page 1; may contain a hot-replies list whose items share the same shape as items in replies.
  • replies (reply list): An array of replies for the current page. Inside each item:
    • root: ID of the root reply. 0 when the reply itself is top-level.
    • parent: ID of the reply being replied to. Also 0 when the comment is the root.

Query parameters

oid
stringrequired

Free Bilibili Live Room API - Real-time live status and popularity

sort
stringoptional

Sort order. Supports 0/time (by time), 1/like (by likes), 2/reply (by reply count), and 3/hot/hottest/Newest (by hotness). Defaults to 0/time.

ps
stringoptional

QQ User Info API - Fetch avatar, nickname, and level in one call

pn
stringoptional

Page number to fetch, starting at 1. Defaults to 1.

Response

200 / OK

Success. Returns the reply list for the requested page and sort order.

JSON