noteIdstringobligatoire
Note's unique ID.
https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/note-id-detailGet Xiaohongshu Pugongying details for a known note ID. Use it to review an individual note during creator or campaign research.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns details for one Xiaohongshu note listed on the Pugongying (PGY) platform. The response covers the note text, engagement counts, images or video, the linked brand, and a summary of the creator who posted it. It needs one input, noteId.
reportBrandName and reportBrandUserId.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/note-id-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"noteId": "6abccf9c000000000a02609a"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
noteId | string | Yes | Note's unique ID. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"agentName": null,
"atUserList": null,
"cmtNum": 7311,
"compClickData": {
"commentTag": null,
"content": "较高",
"engage": "-",
"hover": "正常:0-2%,较高:2%-10%,极高:10%+",
"noteBottom": "-",
"noteComment": "-"
},
"content": "晚上好啊宝宝们,最近换季加上熬夜,皮肤真的状况百出。今天收工赶紧来分享我的“回春”神器2.0版,就是百雀羚灵玉面霜!\n淡淡花香超治愈,走的是中式养肤路线,由内养…",
"contentItemList": null,
"createTime": "2026-10-08 11:09",
"favNum": 25405,
"featureTags": null,
"followCnt": 10935,
"goodCaseCollect": false,
"headPhoto": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo32206nlg5n2004a17jb2vl5roop6fpu0…"
}
| Field | Meaning |
|---|---|
title / content | Title and body text of the note. Long body text may contain hashtags such as #百雀羚灵玉面霜[话题]#. |
likeNum / favNum / cmtNum / shareNum | Counts of likes, saves (favorites), comments and shares on the note. |
readNum / impNum | Read count and impression count for the note. |
compClickData.content / compClickData.hover | A rating label for the note (here 较高) and the hover text that explains the bands: normal 0-2%, higher 2%-10%, very high 10%+. |
reportBrandName / reportBrandUserId | Name and user ID of the brand reported for this note. |
time.createTime / time.updateTime | Timestamps in milliseconds since the Unix epoch. createTime at the top level is the same moment as a formatted string. |
userInfo.nickName / userInfo.userId / userInfo.fansNum | Name, user ID and follower count of the creator who posted the note. |
userInfo.videoPrice / userInfo.picturePrice | Prices listed for this creator for video notes and image notes. |
imagesList[].url | Image URL for each image in the note, with width and height in pixels. |
videoInfo.videoUrl / videoInfo.meta.duration | Direct URL of the video file and its metadata. The URL carries a sign and t query parameter. |
noteId is a 24-character hex string, like 6abccf9c000000000a02609a. It also appears in noteLink.noteLink is a full note URL that includes an xsec_token.userInfo.userId with Xiaohongshu Pugongying Creator Profile.$0.021429 per successful call. Failed calls are not charged.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/note-id-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"noteId": "6abccf9c000000000a02609a"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
noteIdstringobligatoireNote's unique ID.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Xiaohongshu Pugongying Note DetailsCette API Xiaohongshu | $0.021429 par appel | JSON |
Xiaohongshu | $0.021429 par appel | JSON |
Xiaohongshu | $0.071429 par appel | JSON |
Xiaohongshu | $0.021429 par appel | JSON |
Xiaohongshu | $0.021429 par appel | JSON |
Xiaohongshu | $0.021429 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/note-id-detail avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.021429 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : noteId (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Xiaohongshu Pugongying Note Details fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Xiaohongshu séparément.