Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Weibo Post Comments

API 文件
https://api.sandbase.ai/v1/api/weibo/web-v2/post-comments

Get the first-level comments on a Weibo post: comment text, author, time, likes and reply counts, with cursor pagination.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 2 個選填
每天 100 次免費呼叫每天前 100 次呼叫免費(按組織共用)· 於 UTC 00:00 重設。之後按次收費。

Playground

輸入
Weibo post ID (required)
Number of comments (default 10)
Pagination cursor, pass empty for first request, use returned max_id for subsequent requests
輸出範例
回應outputs · 34.2 KB · 751 行
[
  {
    "data": {
      "data": [
        {
          "allow_follow": false,
          "analysis_extra": "author_uid:1727858283|mid:5350554563773695|rid:164215643652145150",
          "biz_mark_type": 0,
          "cmt_ext": "level_type:1",
          "comment_bubble": {
            "end_color": "#1AFEAD3A",
            "end_color_dark": "#33FEAD3A",
            "icon_url": "https://h5.sinaimg.cn/upload/100/1720/2023/06/14/commentbubble_jin_FEAD3A.png",
            "id": "jin_0001",
            "name": "金粉专属",
            "obtain_type": 3,
            "start_color": "#00FEAD3A",
            "start_color_dark": "#00FEAD3A"
          },
          "comments": [
            {
              "allow_follow": false,
              "analysis_extra": "author_uid:1727858283|mid:5350554563773695|rid:164215643652145150",
              "biz_mark_type": 0,
              "blogger_icons": [
                {
                  "actionlog": {
                    "act_code": "3671",
                    "ext": "status:author"
                  },
                  "length": "1.33",
                  "name": "blogger",
                  "url": "https://h5.sinaimg.cn/upload/116/1347/2020/12/15/bozhu.png"
                }
              ],
              "cmt_ext": "level_type:2",
              "created_at": "Mon Oct 05 07:49:58 +0800 2026",
              "degrade_type": "normal",
              "disable_reply": 0,
              "floor_number": 0,
              "gid": 5350565966251040,
              "id": 5350565966251040,
              "idstr": "5350565966251040",
              "is_mblog_author": true,
              "is_sub_cmt": true,
              "item_category": "comment",
              "like_count": 3,
              "like_counts": 3,
              "liked": false,
              "match_ai_play_picture": false,
              "mid": "5350565966251040",
              "pic_num": 0,
              "readtimetype": "comment_reply",
              "reply_comment": {
                "allow_follow": false,
                "biz_mark_type": 0,
                "comment_badge": [
                  {
                    "actionlog": {
                      "act_code": "3671",
                      "ext": "status:fans"
                    },
                    "length": 1.33,
                    "name": "loyal_fans",
                    "new_icon": true,
                    "pic_url": "https://h5.sinaimg.cn/upload/114/962/2022/07/08/member_0_bigfan2_3.png",
                    "scheme": "https://kefu.weibo.com/faqdetail?id=20848",
                    "type_and_level": "2_3"
                  }
                ],
                "created_at": "Mon Oct 05 07:09:09 +0800 2026",
                "disable_reply": 0,
                "floor_number": 2,
                "id": 5350555695188006,
                "idstr": "5350555695188006",
                "item_category": "comment",
                "match_ai_play_picture": false,
                "mid": "5350555695188006",
                "pic_num": 0,
                "restrictOperate": 0,
                "restrict_state": 0,
                "rid": "0_0_0_164215643652145150_0_0_0",
                "rootid": 5350555695188006,
                "rootidstr": "5350555695188006",
                "scheme": "sinaweibo://detail?mblogid=&anchor_id=5350555695188006&is_show_bulletin=",
                "text": "也就是28天每天要么上新一个新功能/重置一次吗? 还挺好的![打call]刚开了Pro会员又可以尽情蹬了[打call]",
                "url_objects": [],
                "user": {
                  "avatar_hd": "https://tvax4.sinaimg.cn/crop.0.0.828.828.1024/df82fe49ly8gf2p7ewq9uj20n00n0ab1.jpg?KID=imgbed,tva&Expires=1791294558&ssig=Z0CQLsk3PX",
                  "avatar_large": "https://tvax4.sinaimg.cn/crop.0.0.828.828.180/df82fe49ly8gf2p7ewq9uj20n00n0ab1.jpg?KID=imgbed,tva&Expires=1791294558&ssig=HPgOjINfJ%2B",
                  "cover_image_phone": "https://wx3.sinaimg.cn/crop.0.0.640.640.640/df82fe49ly1gzinquca07j20u00u0tat.jpg",
                  "description": "出兵缉拿关于哆啦A梦的黑帖 势在必得!🗝",
                  "domain": "",
                  "follow_me": false,
                  "followers_count": 6232,
                  "followers_count_str": "6232",
                  "following": false,
                  "friends_count": 1063,
                  "gender": "m",
                  "icon_list": [],
                  "id": 3749903945,
                  "idstr": "3749903945",
                  "location": "其他",
                  "mbrank": 7,
                  "mbtype": 2,
                  "pc_new": 7,
                  "planet_video": false,
                  "profile_image_url": "https://tvax4.sinaimg.cn/crop.0.0.828.828.50/df82fe49ly8gf2p7ewq9uj20n00n0ab1.jpg?KID=imgbed,tva&Expires=1791294558&ssig=5P1F54qYkt",
                  "profile_url": "/u/3749903945",
                  "screen_name": "哆啦A梦反黑站",
                  "status_total_counter": {
                    "comment_cnt": "1,746",
                    "like_cnt": "2,931",
                    "repost_cnt": "68",
                    "total_cnt": "4,745",
                    "total_cnt_format": 4745
                  },
                  "statuses_count": 880,
                  "svip": 0,
                  "url": "",
                  "user_ability": 3408904,
                  "v_plus": 0,
                  "verified": false,
                  "verified_type": -1,
                  "vvip": 0,
                  "weihao": ""
                }
              },
              "report_scheme": "sinaweibo://mpdialog?scheme=sinaweibo%3A%2F%2Fwbox%3Fid%3Dt8wto09182%26page%3Dpages%2Fcomplaint%2Fcomplaint%26comment%3D%25E5%259B%259E%25E5%25A4%258D%2540%25E5%2593%2586%25E5%2595%25A6A%25E6%25A2%25A6%25E5%258F%258D%25E9%25BB%2591%25E7%25AB%2599%253A%25E5%25A6%2582%25E6%259E%259C%25E4%25B8%258D%25E4%25B8%258A%25E6%2589%258D%25E9%2587%258D%25E7%25BD%25AE%26nickname%3D%25E5%25AE%259D%25E7%258E%2589xp%26ct_type%3D2%26rid%3D5350565966251040%26ct_time%3D1791283758291%26ct_sign%3D1263918780%26luicode%3D",
              "restrictOperate": 1,
              "restrict_state": 0,
              "rid": "0_0_0_164215643652145150_0_0_0",
              "rootid": 5350555695188006,
              "rootidstr": "5350555695188006",
              "safe_tags": 4294967296,
              "shouldShowColon": 1,
              "source": "来自 美国",
              "source_allowclick": 0,
              "source_type": 4,
              "text": "如果不上才重置",
              "text_raw": "如果不上才重置",
              "url_objects": [],
              "user": {
                "avatar_hd": "https://tva3.sinaimg.cn/crop.0.0.180.180.1024/66fd066bjw1e8qgp5bmzyj2050050aa8.jpg?KID=imgbed,tva&Expires=1791294558&ssig=ywWC4cJ6h0",
                "avatar_large": "https://tva3.sinaimg.cn/crop.0.0.180.180.180/66fd066bjw1e8qgp5bmzyj2050050aa8.jpg?KID=imgbed,tva&Expires=1791294558&ssig=Cs7VBM21l2",
                "cover_image_phone": "https://ww1.sinaimg.cn/crop.0.0.640.640.640/549d0121tw1egm1kjly3jj20hs0hsq4f.jpg",
                "description": "传播技术。不争论,只拉黑。个人网站:https://baoyu.io",
                "domain": "dotey",
                "follow_me": false,
                "followers_count": 1151752,
                "followers_count_str": "115.2万",
                "following": false,
                "friends_count": 563,
                "gender": "m",
                "icon_list": [
                  {
                    "data": {
                      "mbrank": 2,
                      "mbtype": 12,
                      "svip": 1,
                      "vvip": 1
                    },
                    "type": "vip"
                  }
                ],
                "id": 1727858283,
                "idstr": "1727858283",
                "location": "海外 美国",
                "mbrank": 2,
                "mbtype": 12,
                "pc_new": 7,
                "planet_video": false,
                "profile_image_url": "https://tva3.sinaimg.cn/crop.0.0.180.180.50/66fd066bjw1e8qgp5bmzyj2050050aa8.jpg?KID=imgbed,tva&Expires=1791294558&ssig=d7%2FRN4IPBa",
                "profile_url": "/u/1727858283",
                "screen_name": "宝玉xp",
                "status_total_counter": {
                  "comment_cnt": "237,053",
                  "like_cnt": "1,923,416",
                  "repost_cnt": "1,982,297",
                  "total_cnt": "4,142,766",
                  "total_cnt_format": "414.3万"
                },
                "statuses_count": 60742,
                "svip": 1,
                "url": "http://www.openlab.net.cn",
                "user_ability": 11799048,
                "v_plus": 0,
                "verified": true,
                "verified_reason": "前微软Asp.Net最有价值专家  2025微博年度新知博主 科技博主",
                "verified_type": 0,
                "verified_type_ext": 1,
                "vvip": 1,
                "weihao": ""
              }
            },
            {
              "allow_follow": false,
              "analysis_extra": "author_uid:1727858283|mid:5350554563773695|rid:164215643652145150",
              "biz_mark_type": 0,
              "cmt_ext": "level_type:2",
              "created_at": "Mon Oct 05 10:05:48 +0800 2026",
              "degrade_type": "normal",
              "disable_reply": 0,
              "floor_number": 0,
              "gid": 5350600151928779,
              "id": 5350600151928779,
              "idstr": "5350600151928779",
              "is_sub_cmt": true,
              "item_category": "comment",
              "like_count": 5,
              "like_counts": 5,
              "liked": false,
              "match_ai_play_picture": false,
              "mid": "5350600151928779",
              "pic_num": 0,
              "readtimetype": "comment_reply",
              "reply_comment": {
                "allow_follow": false,
                "biz_mark_type": 0,
                "comment_badge": [
                  {
                    "actionlog": {
                      "act_code": "3671",
                      "ext": "status:fans"
                    },
                    "length": 1.33,
                    "name": "loyal_fans",
                    "new_icon": true,
                    "pic_url": "https://h5.sinaimg.cn/upload/114/962/2022/07/08/member_0_bigfan2_3.png",
                    "scheme": "https://kefu.weibo.com/faqdetail?id=20848",
                    "type_and_level": "2_3"
                  }
                ],
                "created_at": "Mon Oct 05 07:50:25 +0800 2026",
                "disable_reply": 0,
                "floor_number": 0,
                "id": 5350566081333267,
                "idstr": "5350566081333267",
                "item_category": "comment",
                "match_ai_play_picture": false,
                "mid": "5350566081333267",
                "pic_num": 0,
                "restrictOperate": 0,
                "restrict_state": 0,
                "rid": "0_0_0_164215643652145150_0_0_0",
                "rootid": 5350555695188006,
                "rootidstr": "5350555695188006",
                "scheme": "sinaweibo://detailbulletincomment?comment_id=5350555695188006&anchor_id=5350566081333267&is_show_bulletin=2",
                "text": "回复@宝玉xp:可别每天都上一个无关痛痒的小功能🙏🏻",
                "url_objects": [],
                "user": {
                  "avatar_hd": "https://tvax4.sinaimg.cn/crop.0.0.828.828.1024/df82fe49ly8gf2p7ewq9uj20n00n0ab1.jpg?KID=imgbed,tva&Expires=1791294558&ssig=Z0CQLsk3PX",
                  "avatar_large": "https://tvax4.sinaimg.cn/crop.0.0.828.828.180/df82fe49ly8gf2p7ewq9uj20n00n0ab1.jpg?KID=imgbed,tva&Expires=1791294558&ssig=HPgOjINfJ%2B",
                  "cover_image_phone": "https://wx3.sinaimg.cn/crop.0.0.640.640.640/df82fe49ly1gzinquca07j20u00u0tat.jpg",
                  "description": "出兵缉拿关于哆啦A梦的黑帖 势在必得!🗝",
                  "domain": "",
                  "follow_me": false,
                  "followers_count": 6232,
                  "followers_count_str": "6232",
                  "following": false,
                  "friends_count": 1063,
                  "gender": "m",
                  "icon_list": [],
                  "id": 3749903945,
                  "idstr": "3749903945",
                  "location": "其他",
                  "mbrank": 7,
                  "mbtype": 2,
                  "pc_new": 7,
                  "planet_video": false,
                  "profile_image_url": "https://tvax4.sinaimg.cn/crop.0.0.828.828.50/df82fe49ly8gf2p7ewq9uj20n00n0ab1.jpg?KID=imgbed,tva&Expires=1791294558&ssig=5P1F54qYkt",
                  "profile_url": "/u/3749903945",
                  "screen_name": "哆啦A梦反黑站",
                  "status_total_counter": {
                    "comment_cnt": "1,746",
                    "like_cnt": "2,931",
                    "repost_cnt": "68",
                    "total_cnt": "4,745",
                    "total_cnt_format": 4745
                  },
                  "statuses_count": 880,
                  "svip": 0,
                  "url": "",
                  "user_ability": 3408904,
                  "v_plus": 0,
                  "verified": false,
                  "verified_type": -1,
                  "vvip": 0,
                  "weihao": ""
                }
              },
              "reply_original_text": "只要把下一次的更新拆成28个小版本就行了[doge]",
              "report_scheme": "sinaweibo://mpdialog?scheme=sinaweibo%3A%2F%2Fwbox%3Fid%3Dt8wto09182%26page%3Dpages%2Fcomplaint%2Fcomplaint%26comment%3D%25E5%259B%259E%25E5%25A4%258D%2540%25E5%2593%2586%25E5%2595%25A6A%25E6%25A2%25A6%25E5%258F%258D%25E9%25BB%2591%25E7%25AB%2599%253A%25E5%258F%25AA%25E8%25A6%2581%25E6%258A%258A%25E4%25B8%258B%25E4%25B8%2580%25E6%25AC%25A1%25E7%259A%2584%25E6%259B%25B4%25E6%2596%25B0%25E6%258B%2586%25E6%2588%259028%25E4%25B8%25AA%25E5%25B0%258F%25E7%2589%2588%25E6%259C%25AC%25E5%25B0%25B1%25E8%25A1%258C%25E4%25BA%2586%255Bdoge%255D%26nickname%3D%25E6%2599%25BA%25E5%2595%2586%25E5%25B7%25B2%25E…",
              "restrictOperate": 0,
              "restrict_state": 0,
              "rid": "0_0_0_164215643652145150_0_0_0",
              "rootid": 5350555695188006,
              "rootidstr": "5350555695188006",
              "shouldShowColon": 0,
              "source": "来自 天津",

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Weibo Post Comments API

Returns the first-level comments on a Weibo post, with comment text, author, time, like count and reply count. It needs the Weibo post id. Results come in pages that you walk through with the max_id cursor.

Use cases

  • Read the most recent reactions to a brand post on Weibo.
  • Rank comments by like_counts to find the most supported opinions on a post.
  • Export comment text and author follower counts for sentiment analysis.
  • Find comments with replies and fetch those replies in a second call.

Request

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

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

Parameters

NameTypeRequiredDescription
idstringYesWeibo post ID (required)
countintegerNoNumber of comments (default 10)
max_idstringNoPagination cursor, pass empty for first request, use returned max_id for subsequent requests

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:1727858283|mid:5350554563773695|rid:162412728022526544",
      "biz_mark_type": 0,
      "cmt_ext": "level_type:1",
      "comment_bubble": {
        "end_color": "#1AFEAD3A",
        "end_color_dark": "#33FEAD3A",
        "icon_url": "https://h5.sinaimg.cn/upload/100/1720/2023/06/14/commentbubble_jin_FEAD3A.png",
        "id": "jin_0001",
        "name": "金粉专属",
        "obtain_type": 3,
        "start_color": "#00FEAD3A",
        "start_color_dark": "#00FEAD3A"
      },
      "comments": [
        {
          "allow_follow": false,
          "analysis_extra": "author_uid:1727858283|mid:5350554563773695|rid:162412728022526544",
          "biz_mark_type": 0,
          "blogger_icons": [
            {
              "actionlog": {
                "act_code": "3671",
                "ext": "status:author"
              },
              "length": "1.33",
              "name": "blogger",
              "url": "https://h5.sinaimg.cn/upload/116/1347/2020/12/15/bozhu.png"
            }
          ],
          "cmt_ext": "level_type:2",
          "created_at": "Mon Oct 05 07:49:58 +0800 2026",
          "degrade_type": "normal",
          "disable_reply": 0
        }
      ],
      "created_at": "Mon Oct 05 07:09:09 +0800 2026",
      "degrade_type": "normal",
      "disable_reply": 0,
      "floor_number": 2,
      "id": 5350555695188006,
      "idstr": "5350555695188006"
    }
  ],
  "filter_group": [
    {
      "isDefault": 1,
      "param": "flow=0",
      "scheme": "",
      "title": "按热度"
    }
  ],
  "max_id": 138895166347417,
  "ok": 1,
  "rootComment": [],
  "tip_msg": "",
  "total_number": 36,
  "trendsText": "已加载全部评论"
}

Response fields

FieldMeaning
data[].text_rawPlain text of the comment. Emoji appear as bracket tags such as [打call]. The text field holds the same comment as HTML with image tags.
data[].id / data[].idstrID of the comment, as a number and as a string. Use the string form to avoid number precision loss.
data[].created_atTime the comment was posted, in a format like Mon Oct 05 07:09:09 +0800 2026.
data[].like_countsNumber of likes on the comment.
data[].total_numberNumber of replies to this comment. The data[].comments[] list holds a few of those replies, and data[].more_info.text shows a label such as 共3条回复.
data[].sourceLocation label shown with the comment, for example 来自 上海.
data[].user.followers_countFollower count of the commenter. data[].user.description holds the commenter's profile bio and data[].user.avatar_large holds the avatar URL.
data[].floor_numberFloor position of the comment in the thread.
max_idCursor for the next page. Pass it as max_id in the next request.
total_numberTotal comment count reported for the post. trendsText holds a status message such as 已加载全部评论.

Notes

  • Leave max_id empty on the first call. For later pages, pass the top-level max_id from the previous response.
  • count sets how many comments to return per page and defaults to 10.
  • The filter_group list shows two sort modes, flow=0 (by heat, the default) and flow=1 (by time).
  • To read all replies under a comment, call Weibo Post Sub-Comments. For the post itself, use Weibo Post Detail.

Pricing

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

探索更多

相關 APIs

所有 APIs
API價格回應
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON

指南:Best Weibo API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Weibo Post Comments API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/weibo/web-v2/post-comments。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Weibo Post Comments API 的費用是多少?

每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。

Weibo Post Comments API 接受哪些參數?

必要:id (string)。 選填:count (integer) 和 max_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Weibo Post Comments API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Weibo 開發者帳號或 API 金鑰嗎?

不需要。Weibo Post Comments 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Weibo API 存取權。