user_idstringobligatoire
Blogger user ID
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-notes-v2Get PGY blogger note cases v2 (cross-platform) on Xiaohongshu. Returns the platform data as structured JSON.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns a paged list of note cases for one blogger on Xiaohongshu's PGY (Pugongying) creator platform. Each item has note metrics, a cover image URL and a short blogger summary. The only required input is the blogger's user_id.
noteInfo.isAdNote and noteInfo.cooperNote.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-notes-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "5c668b3e0000000012021605", "page_number": 1, "page_size": 8, "note_type": 0, "order_type": 1}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Blogger user ID |
note_type | integer | No | Note type |
order_type | integer | No | Sort |
page_number | integer | No | Page number, from 1 |
page_size | integer | No | Page size, 1-8 (fixed at 8 on PGY web) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"highlightWords": [
"白菜"
],
"noteList": [
{
"brandInfo": null,
"noteInfo": {
"content": null,
"cooperNote": 0,
"engageNum": 154,
"favNum": 58,
"imageUrl": "http://ci.xiaohongshu.com/1040g2sg32701l0ef70705n36hcv4k5g5ti3p138?imageView2/2/…",
"impNum": 2249,
"isAdNote": 0,
"noteId": "6ae5be8f000000000e036b30"
},
"userInfo": {
"advertiserId": null,
"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31hpod1vijs705n36hcv4k5g5f8fn40g…",
"clickMidNum": 1050,
"contentTags": [
{
"taxonomy1Tag": "美食",
"taxonomy2Tags": [
"美食探店"
]
}
],
"cooperType": 1,
"currentLevel": 2,
"fansNum": 10177,
"featureTags": [
"探店"
]
}
}
],
"total": 43,
"trackId": null
},
"guid": null,
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.noteList[].noteInfo.noteId | ID of the note. Use it to look up the note in other note APIs. |
data.noteList[].noteInfo.impNum | Impression count for the note. |
data.noteList[].noteInfo.engageNum / data.noteList[].noteInfo.favNum | Engagement count and favorite count for the note. |
data.noteList[].noteInfo.isAdNote / data.noteList[].noteInfo.cooperNote | Flags that mark whether the note is an ad or a cooperation note. The sample shows 0 for both. |
data.noteList[].noteInfo.imageUrl | URL of the note's cover image. |
data.noteList[].userInfo.fansNum | Follower count of the blogger. |
data.noteList[].userInfo.currentLevel / data.noteList[].userInfo.cooperType | Blogger level value and cooperation type code, as returned by PGY. |
data.noteList[].userInfo.contentTags[].taxonomy1Tag | Top-level content category of the blogger. The matching taxonomy2Tags list holds the sub-categories. |
data.noteList[].userInfo.featureTags | Short style tags that describe the blogger. |
data.total | Total number of note cases for this blogger across all pages. |
user_id from a blogger search such as Xiaohongshu (RED) PGY Blogger Search.page_number (starts at 1) and page_size (1 to 8). Compare data.total with the number of items you have fetched to know when to stop.note_type accepts 0, 1 or 2, and order_type accepts 1, 2 or 3. The defaults are 0 and 1.$0.02 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/blogger-notes-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "5c668b3e0000000012021605",
"note_type": 0,
"page_size": 8,
"order_type": 1,
"page_number": 1
}'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.
user_idstringobligatoireBlogger user ID
page_numberintegerPage number, from 1
Par défaut : 1
page_sizeintegerPage size, 1-8 (fixed at 8 on PGY web)
Par défaut : 8
note_typeintegerNote type
Par défaut : 0
Valeurs possibles : 0, 1, 2
order_typeintegerSort
Par défaut : 1
Valeurs possibles : 1, 2, 3
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 | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-notes-v2 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.02 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : user_id (string). Facultatif : page_number (integer), page_size (integer), note_type (l’un de 0, 1, 2) et order_type (l’un de 1, 2, 3). 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 PGY blogger note cases v2 (cross-platform) 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.