user_idstringzorunlu
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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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 anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
user_idstringzorunluBlogger user ID
page_numberintegerPage number, from 1
Varsayılan: 1
page_sizeintegerPage size, 1-8 (fixed at 8 on PGY web)
Varsayılan: 8
note_typeintegerNote type
Varsayılan: 0
Olası değerler: 0, 1, 2
order_typeintegerSort
Varsayılan: 1
Olası değerler: 1, 2, 3
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-notes-v2 adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.02, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: user_id (string). İsteğe bağlı: page_number (integer), page_size (integer), note_type (0, 1, 2 arasından biri) ve order_type (1, 2, 3 arasından biri). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Xiaohongshu PGY blogger note cases v2 (cross-platform), SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Xiaohongshu API erişimi için ayrıca başvuru yapmanız gerekmez.