List a Weibo post's comments
apify.weibo.post.commentsComments on Weibo posts with no login, hot-first or newest-first, optionally with each comment's reply thread — text, likes, reply count, floor, IP region and commenter per row
- Price
- $0.005/resultAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- 26 sept 2026Verified working
POSThttps://toolswitch.dev/v1/tools/apify.weibo.post.comments?memory=1024&timeout=90&maxItems=1&maxTotalChargeUsd=0.05Preview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
the response is the dataset items array directly — no run envelope, no polling. No login and no cookies needed from the caller. The same actor serves apify.weibo.search.posts, .trending.hot_search, .user.posts, .user.profile, .post.detail and .post.comments; `mode` selects which, and a field that belongs to another mode is rejected rather than ignored. Each row carries comment_id, post_mid, root_id, is_reply, reply_to_id, floor_number, created_at, text/text_raw, source (IP region), like_count, reply_count, liked_by_author and the commenter (user_id, screen name, verification). Replies also answer weibo.comment.replies
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
memory | entero | Opcional | MB of run memory. treg's key requires 1024, which fixes the actor-start charge; your own key may set any size | 1024 |
timeout | entero | Opcional | run timeout in seconds. treg's key requires 90 so the run and its rows arrive before any wait gives up; a larger pull should use your own key and the async web.scrape.job.* pair above | 90 |
maxItems | entero | Opcional | optional row cap; pay-per-event actors that take the row count from their own input ignore it, so maxTotalChargeUsd is the spend limit | 50 |
maxTotalChargeUsd | número | Opcional | the spend cap Apify enforces on every event this run bills, in dollars. treg's key requires it, above 0 and at most 1, and holds it for the call | 0.5 |
- Parámetros de consulta
memoryenteroOpcionalMB of run memory. treg's key requires 1024, which fixes the actor-start charge; your own key may set any size
Ejemplo:
1024timeoutenteroOpcionalrun timeout in seconds. treg's key requires 90 so the run and its rows arrive before any wait gives up; a larger pull should use your own key and the async web.scrape.job.* pair above
Ejemplo:
90maxItemsenteroOpcionaloptional row cap; pay-per-event actors that take the row count from their own input ignore it, so maxTotalChargeUsd is the spend limit
Ejemplo:
50maxTotalChargeUsdnúmeroOpcionalthe spend cap Apify enforces on every event this run bills, in dollars. treg's key requires it, above 0 and at most 1, and holds it for the call
Ejemplo:
0.5
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X POST 'https://toolswitch.dev/v1/tools/apify.weibo.post.comments?memory=1024&timeout=90&maxItems=1&maxTotalChargeUsd=0.05' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"mode":"comments","post_ids":["https://weibo.com/2803301701/Rjuwfpy8d"],"max_items":1}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/apify.weibo.post.comments?memory=1024&timeout=90&maxItems=1&maxTotalChargeUsd=0.05",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"mode\":\"comments\",\"post_ids\":[\"https://weibo.com/2803301701/Rjuwfpy8d\"],\"max_items\":1}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/apify.weibo.post.comments?memory=1024&timeout=90&maxItems=1&maxTotalChargeUsd=0.05", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"mode\":\"comments\",\"post_ids\":[\"https://weibo.com/2803301701/Rjuwfpy8d\"],\"max_items\":1}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.005/result, incluida la tarifa de servicio.