user_idstringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
user_idstringwajibBlogger user ID
page_numberintegerPage number, from 1
Default: 1
page_sizeintegerPage size, 1-8 (fixed at 8 on PGY web)
Default: 8
note_typeintegerNote type
Default: 0
Nilai yang mungkin: 0, 1, 2
order_typeintegerSort
Default: 1
Nilai yang mungkin: 1, 2, 3
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-notes-v2 dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.02 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: user_id (string). Opsional: page_number (integer), page_size (integer), note_type (salah satu dari 0, 1, 2) dan order_type (salah satu dari 1, 2, 3). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Xiaohongshu PGY blogger note cases v2 (cross-platform) berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Xiaohongshu secara terpisah.