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

Weibo Post Comments

API 文档
https://api.sandbase.ai/v1/api/weibo/post-comments

Get comments for a Weibo post identified by MID, with optional maxId cursor pagination and time or hot sorting.

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

Playground

输入
Weibo post mid.
Sort order for the result set.
Pagination cursor returned by the previous response.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Weibo Post Comments API

Returns the comments on a Weibo post. It needs the post mid and returns a page of comments with text, author, like count and posting time. You can sort by TIME or HOT and page through results with a cursor.

Use cases

  • Collect public reactions to a Weibo post for sentiment analysis.
  • Track how many comments a post has gathered and which ones get the most likes.
  • Study where commenters are posting from using the source field.
  • Export comment text and author details for moderation or research.

Request

curl -X POST "https://api.sandbase.ai/v1/api/weibo/post-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mid": "5359793518938198"}'

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

Parameters

NameTypeRequiredDescription
midstringYesWeibo post mid.
maxIdstringNoPagination cursor returned by the previous response.
sortstringNoSort order for the result set.

Example response

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

{
  "data": [
    {
      "allow_follow": false,
      "analysis_extra": "author_uid:2803301701|mid:5359793518938198|rid:2022842004866702828",
      "biz_mark_type": 0,
      "cmt_ext": "level_type:1",
      "comment_bubble": {
        "end_color": "#1AA55DAB",
        "end_color_dark": "#33A55DAB",
        "icon_url": "https://h5.sinaimg.cn/upload/100/1720/2023/06/14/commentbubble_zuan_A55DAB.png",
        "id": "zuan_0001",
        "name": "钻粉专属",
        "obtain_type": 3,
        "start_color": "#00A55DAB",
        "start_color_dark": "#00A55DAB"
      },
      "comments": [],
      "created_at": "Fri Oct 30 19:21:31 +0800 2026",
      "degrade_type": "normal",
      "disable_reply": 0,
      "floor_number": 79,
      "hasvisible": false,
      "id": 5359799699247641
    }
  ],
  "filter_group": [
    {
      "isDefault": 0,
      "param": "flow=0",
      "scheme": "",
      "title": "按热度"
    }
  ],
  "header_text": "以下为博主精选评论 ",
  "max_id": 0,
  "ok": 1,
  "rootComment": [],
  "tip_msg": "",
  "total_number": 384,
  "trendsText": "博主已开启评论精选"
}

Response fields

FieldMeaning
data[]The list of comments on this page. Each item is one top-level comment.
data[].text_raw / data[].textThe comment text as written by the user.
data[].created_atWhen the comment was posted, in a format like Fri Oct 30 19:21:31 +0800 2026.
data[].like_countsNumber of likes on the comment.
data[].floor_numberThe comment's floor number in the thread.
data[].idstr / data[].midThe comment's own ID as a string. It differs from the mid of the post you requested.
data[].sourceWhere the comment was posted from, such as a province name with a 来自 prefix.
data[].user.followers_countFollower count of the commenter. The user object also holds avatar URLs and the profile description.
data[].commentsNested replies to the comment. It is empty in this response.
total_numberTotal number of comments reported for the post.
max_idCursor for the next page. A value of 0 means the response gives no further cursor.

Notes

  • Take the post mid from a post detail or user feed response. Weibo Post Detail returns post data.
  • For the next page, pass the max_id value from the response as maxId. Stop when max_id is 0.
  • sort accepts TIME (default) or HOT.
  • To read replies under a comment, call Weibo Post Sub-Comments.

Pricing

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

探索更多

相关 APIs

全部 APIs
API价格响应
Weibo$0.014286 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON

指南:Best Weibo API in 2026: Pricing Compared

问题

常见问题

如何使用 Weibo Post Comments API?

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

Weibo Post Comments API 的价格是多少?

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

Weibo Post Comments API 接受哪些参数?

必填:mid (string)。 可选:sort(TIME, HOT 之一) 和 maxId (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Weibo Post Comments API 返回什么?

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

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

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