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/successプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- 2026/07/28Verified 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 online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
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 をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.01/success です。サービス料を含みます。