Xiaohongshu note comments by note id or share link
tikhub.x.xiaohongshu-app-v2-get-note-commentsXiaohongshu: get note comments (app_v2)
- 价格
- $0.01/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年7月28日实测可用
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_v2预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
index | 整数 | 可选 | Comment index, pass 0 for first request | 0 |
cursor | 字符串 | 可选 | Pagination cursor, leave empty for first request | |
note_id | 字符串 | 可选 | Note ID | 697c0eee000000000a03c308 |
pageArea | 字符串 | 可选 | 折叠状态: UNFOLDED(默认-展开), FOLDED(折叠) | UNFOLDED |
share_text | 字符串 | 可选 | Share link | http://xhslink.com/o/8GqargIxrko |
sort_strategy | 字符串 | 可选 | Sort strategy: default, latest_v2, like_count | latest_v2 |
- 查询参数
index整数可选Comment index, pass 0 for first request
示例:
0cursor字符串可选Pagination cursor, leave empty for first request
note_id字符串可选Note ID
示例:
697c0eee000000000a03c308pageArea字符串可选折叠状态: UNFOLDED(默认-展开), FOLDED(折叠)
示例:
UNFOLDEDshare_text字符串可选Share link
示例:
http://xhslink.com/o/8GqargIxrkosort_strategy字符串可选Sort strategy: default, latest_v2, like_count
示例:
latest_v2
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.01/success 计费,已含服务费。