Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Weibo Post Comments

Documentación de la 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.

Precio
$0.014286USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 2 opcionales

Entorno de pruebas

Entrada
Weibo post mid.
Sort order for the result set.
Pagination cursor returned by the previous response.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Weibo$0.014286 por llamadaJSON
Weibo$0.001 por llamadaJSON
Weibo$0.001 por llamadaJSON
Weibo$0.001 por llamadaJSON
Weibo$0.001 por llamadaJSON
Weibo$0.001 por llamadaJSON

Guías:Best Weibo API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Weibo Post Comments?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/weibo/post-comments con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Weibo Post Comments?

$0.014286 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Weibo Post Comments?

Requeridos: mid (string). Opcionales: sort (una de TIME, HOT) y maxId (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Weibo Post Comments?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Weibo?

No. Weibo Post Comments funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Weibo por separado.