Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Weibo Post Comments

Dokumentacja 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.

Cena
$0.014286USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 2 opcjonalnych

Playground

Wejście
Weibo post mid.
Sort order for the result set.
Pagination cursor returned by the previous response.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Weibo$0.014286 za wywołanieJSON
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON

Przewodniki:Best Weibo API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Weibo Post Comments?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/weibo/post-comments z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Weibo Post Comments?

$0.014286 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Weibo Post Comments?

Wymagane: mid (string). Opcjonalne: sort (jedna z opcji: TIME, HOT) i maxId (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Weibo Post Comments?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Weibo lub klucza API?

Nie. Weibo Post Comments działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Weibo.