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/successPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- 28 de jul. de 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 onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
index | inteiro | Opcional | Comment index, pass 0 for first request | 0 |
cursor | string | Opcional | Pagination cursor, leave empty for first request | |
note_id | string | Opcional | Note ID | 697c0eee000000000a03c308 |
pageArea | string | Opcional | 折叠状态: UNFOLDED(默认-展开), FOLDED(折叠) | UNFOLDED |
share_text | string | Opcional | Share link | http://xhslink.com/o/8GqargIxrko |
sort_strategy | string | Opcional | Sort strategy: default, latest_v2, like_count | latest_v2 |
- Parâmetros de consulta
indexinteiroOpcionalComment index, pass 0 for first request
Exemplo:
0cursorstringOpcionalPagination cursor, leave empty for first request
note_idstringOpcionalNote ID
Exemplo:
697c0eee000000000a03c308pageAreastringOpcional折叠状态: UNFOLDED(默认-展开), FOLDED(折叠)
Exemplo:
UNFOLDEDshare_textstringOpcionalShare link
Exemplo:
http://xhslink.com/o/8GqargIxrkosort_strategystringOpcionalSort strategy: default, latest_v2, like_count
Exemplo:
latest_v2
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.01/success, incluindo a taxa de serviço.