Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Weibo Post Comments

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

Prix
$0.014286USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs

Bac à sable

Entrée
Weibo post mid.
Sort order for the result set.
Pagination cursor returned by the previous response.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Weibo$0.014286 par appelJSON
Weibo$0.001 par appelJSON
Weibo$0.001 par appelJSON
Weibo$0.001 par appelJSON
Weibo$0.001 par appelJSON
Weibo$0.001 par appelJSON

Guides :Best Weibo API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Weibo Post Comments ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/weibo/post-comments avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Weibo Post Comments ?

$0.014286 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Weibo Post Comments accepte-t-elle ?

Obligatoire : mid (string). Facultatif : sort (l’un de TIME, HOT) et maxId (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Weibo Post Comments ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Weibo ?

Non. Weibo Post Comments fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Weibo séparément.