user_idstringआवश्यक
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.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
user_idstringआवश्यकBlogger user ID
page_numberintegerPage number, from 1
डिफ़ॉल्ट: 1
page_sizeintegerPage size, 1-8 (fixed at 8 on PGY web)
डिफ़ॉल्ट: 8
note_typeintegerNote type
डिफ़ॉल्ट: 0
संभावित मान: 0, 1, 2
order_typeintegerSort
डिफ़ॉल्ट: 1
संभावित मान: 1, 2, 3
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Xiaohongshu | $0.02 प्रति कॉल | JSON |
Xiaohongshu | $0.02 प्रति कॉल | JSON |
Xiaohongshu | $0.02 प्रति कॉल | JSON |
Xiaohongshu | $0.02 प्रति कॉल | JSON |
Xiaohongshu | $0.02 प्रति कॉल | JSON |
Xiaohongshu | $0.02 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-notes-v2 पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.02 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: user_id (string)। वैकल्पिक: page_number (integer), page_size (integer), note_type (0, 1, 2 में से एक) और order_type (1, 2, 3 में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Xiaohongshu PGY blogger note cases v2 (cross-platform) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Xiaohongshu API access के लिए आवेदन करने की आवश्यकता नहीं है।