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/successAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- 28 juil. 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 onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
index | entier | Facultatif | Comment index, pass 0 for first request | 0 |
cursor | chaîne | Facultatif | Pagination cursor, leave empty for first request | |
note_id | chaîne | Facultatif | Note ID | 697c0eee000000000a03c308 |
pageArea | chaîne | Facultatif | 折叠状态: UNFOLDED(默认-展开), FOLDED(折叠) | UNFOLDED |
share_text | chaîne | Facultatif | Share link | http://xhslink.com/o/8GqargIxrko |
sort_strategy | chaîne | Facultatif | Sort strategy: default, latest_v2, like_count | latest_v2 |
- Paramètres de requête
indexentierFacultatifComment index, pass 0 for first request
Exemple :
0cursorchaîneFacultatifPagination cursor, leave empty for first request
note_idchaîneFacultatifNote ID
Exemple :
697c0eee000000000a03c308pageAreachaîneFacultatif折叠状态: UNFOLDED(默认-展开), FOLDED(折叠)
Exemple :
UNFOLDEDshare_textchaîneFacultatifShare link
Exemple :
http://xhslink.com/o/8GqargIxrkosort_strategychaîneFacultatifSort strategy: default, latest_v2, like_count
Exemple :
latest_v2
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.01/success, frais de service inclus.