Xiaohongshu note comments by note id or share link
tikhub.x.xiaohongshu-app-v2-get-note-commentsXiaohongshu: get note comments (app_v2)
- Price
- $0.01/successAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- 28 jul 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.xiaohongshu-app-v2-get-note-comments?index=0¬e_id=697c0eee000000000a03c308&pageArea=UNFOLDED&share_text=http%3A%2F%2Fxhslink.com%2Fo%2F8GqargIxrko&sort_strategy=latest_v2PreviewTry onlinePróximamenteProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
index | entero | Opcional | Comment index, pass 0 for first request | 0 |
cursor | cadena | Opcional | Pagination cursor, leave empty for first request | |
note_id | cadena | Opcional | Note ID | 697c0eee000000000a03c308 |
pageArea | cadena | Opcional | 折叠状态: UNFOLDED(默认-展开), FOLDED(折叠) | UNFOLDED |
share_text | cadena | Opcional | Share link | http://xhslink.com/o/8GqargIxrko |
sort_strategy | cadena | Opcional | Sort strategy: default, latest_v2, like_count | latest_v2 |
- Parámetros de consulta
indexenteroOpcionalComment index, pass 0 for first request
Ejemplo:
0cursorcadenaOpcionalPagination cursor, leave empty for first request
note_idcadenaOpcionalNote ID
Ejemplo:
697c0eee000000000a03c308pageAreacadenaOpcional折叠状态: UNFOLDED(默认-展开), FOLDED(折叠)
Ejemplo:
UNFOLDEDshare_textcadenaOpcionalShare link
Ejemplo:
http://xhslink.com/o/8GqargIxrkosort_strategycadenaOpcionalSort strategy: default, latest_v2, like_count
Ejemplo:
latest_v2
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.xiaohongshu-app-v2-get-note-comments?index=0¬e_id=697c0eee000000000a03c308&pageArea=UNFOLDED&share_text=http%3A%2F%2Fxhslink.com%2Fo%2F8GqargIxrko&sort_strategy=latest_v2' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.xiaohongshu-app-v2-get-note-comments?index=0¬e_id=697c0eee000000000a03c308&pageArea=UNFOLDED&share_text=http%3A%2F%2Fxhslink.com%2Fo%2F8GqargIxrko&sort_strategy=latest_v2",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.xiaohongshu-app-v2-get-note-comments?index=0¬e_id=697c0eee000000000a03c308&pageArea=UNFOLDED&share_text=http%3A%2F%2Fxhslink.com%2Fo%2F8GqargIxrko&sort_strategy=latest_v2", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
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.01/success, incluida la tarifa de servicio.