Xiaohongshu Pugongying note details
tikhub.x.xiaohongshu-pgy-get-note-detailXiaohongshu: get note detail (pgy)
- Prix
- $0.02/successAu prix catalogue
- Taux de réussite
- —Aucune donnée de taux de réussite pour le moment30 derniers jours · 1 appels
- Latence p50
- ——
- Dernière vérification
- —Pas encore vérifié
POSThttps://toolswitch.dev/v1/tools/tikhub.x.xiaohongshu-pgy-get-note-detailBeta- Utilise le quota de la plateforme
- Réponse synchrone
- Lit des données publiques
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Corps (JSON) | ||||
note_id | chaîne | Obligatoire | Note ID | 6a20edfa0000000021020951 |
- Corps (JSON)
note_idchaîneObligatoireNote ID
Exemple :
6a20edfa0000000021020951
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.xiaohongshu-pgy-get-note-detail' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"note_id":"6a20edfa0000000021020951"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tikhub.x.xiaohongshu-pgy-get-note-detail",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"note_id\":\"6a20edfa0000000021020951\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.xiaohongshu-pgy-get-note-detail", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"note_id\":\"6a20edfa0000000021020951\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.02/success, frais de service inclus.