user_idstringआवश्यक
Blogger user ID
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-core-dataReturns Pugongying core performance metrics and daily trend data for a specified Xiaohongshu blogger, filterable by date range, note type, and traffic source.
[
{
"data": {
"code": 0,
"data": {
"dailyData": [
{
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-09-06",
"engage": 10,
"imp": 1371,
"read": 171,
"thirdUserNum": 0
},
{
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-09-07",
"engage": 10,
"imp": 1390,
"read": 170,
"thirdUserNum": 0
},
{
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-09-08",
"engage": 10,
"imp": 1379,
"read": 169,
"thirdUserNum": 0
},
"… 27 more items in the full response"
],
"sumData": {
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-10-05",
"engage": 10,
"imp": 1488,
"read": 139,
"thirdUserNum": 0
}
},
"msg": "成功",
"success": true
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns core performance metrics for a Xiaohongshu blogger on the Pugongying (PGY) platform. The response has a list of daily values and one summary object. The only required input is the blogger user_id.
advertise_switch.note_type.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-core-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "60b137080000000001000301"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Blogger user ID |
advertise_switch | integer | No | Traffic type, 1=all (incl. ads), 0=organic only |
date_type | integer | No | Date range (~1=7d, 2=30d, 3=90d) |
note_type | integer | No | Note type, 1=image, 2=video, 3=all (default) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"dailyData": [
{
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-10-04",
"engage": 10,
"imp": 1467,
"read": 138,
"thirdUserNum": 0
}
],
"sumData": {
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-11-02",
"engage": 9,
"imp": 1577,
"read": 115,
"thirdUserNum": 0
}
},
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.dailyData[].dateKey | Date of the daily row, in YYYY-MM-DD format. |
data.dailyData[].imp | Impressions for that day. |
data.dailyData[].read | Reads for that day. |
data.dailyData[].engage | Engagement count for that day. |
data.dailyData[].cpm / data.dailyData[].cpv / data.dailyData[].cpe / data.dailyData[].cpuv | Cost metrics for that day. The sample shows 0 for all of them. |
data.dailyData[].thirdUserNum | Count named thirdUserNum. The sample shows 0. |
data.sumData.imp / data.sumData.read / data.sumData.engage | Summary values for impressions, reads and engagement over the selected range. |
data.sumData.dateKey | Date attached to the summary object. |
data.sumData.cpm / data.sumData.cpv / data.sumData.cpe / data.sumData.cpuv | Cost metrics in the summary object. The sample shows 0 for all of them. |
user_id is a 24-character hex string, for example 60b137080000000001000301.date_type takes a value from 1 to 12. The documented values are 1 for 7 days, 2 for 30 days and 3 for 90 days.note_type accepts 1 for image, 2 for video and 3 for all notes. advertise_switch accepts 1 for all traffic including ads and 0 for organic only.user_id, use Xiaohongshu (RED) PGY Blogger Search. For profile data, call Xiaohongshu (RED) PGY Blogger Details.$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-core-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "60b137080000000001000301"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
user_idstringआवश्यकBlogger user ID
advertise_switchintegerTraffic type, 1=all (incl. ads), 0=organic only
संभावित मान: 0, 1
date_typeintegerDate range (~1=7d, 2=30d, 3=90d)
note_typeintegerNote type, 1=image, 2=video, 3=all (default)
संभावित मान: 1, 2, 3
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"code": 0,
"data": {
"dailyData": [
{
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-09-06",
"engage": 10,
"imp": 1371,
"read": 171,
"thirdUserNum": 0
},
{
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-09-07",
"engage": 10,
"imp": 1390,
"read": 170,
"thirdUserNum": 0
},
{
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-09-08",
"engage": 10,
"imp": 1379,
"read": 169,
"thirdUserNum": 0
},
"… 27 more items in the full response"
],
"sumData": {
"cpe": 0,
"cpm": 0,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-10-05",
"engage": 10,
"imp": 1488,
"read": 139,
"thirdUserNum": 0
}
},
"msg": "成功",
"success": true
}
}
]और जानें
| 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-core-data पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.02 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: user_id (string)। वैकल्पिक: advertise_switch (0, 1 में से एक), date_type (integer) और note_type (1, 2, 3 में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Xiaohongshu (RED) Blogger Core Data SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Xiaohongshu API access के लिए आवेदन करने की आवश्यकता नहीं है।