searchWordstring
Keyword for note search. Empty string searches all notes.
https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/content-square-search-note-v2Search Xiaohongshu Pugongying Content Square notes by keyword or browse all notes, with business-category, ranking, time-window, and page controls. Use it to discover high-performing campaign content.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
This API returns a page of notes from the Xiaohongshu Pugongying Content Square. Each result has note engagement counts, note images, and the author's profile summary. All inputs are optional. Send searchWord to filter by keyword, or leave it empty to browse all notes.
premium_engage_num over the last 7 or 30 days to spot campaign content that is gaining traction.userId values from top notes to build a list of creators to review.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/content-square-search-note-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
bizType | string | No | Business category. |
nd | string | No | Time range in days. |
orderBy | string | No | Ranking metric. |
pageNum | integer | No | Page number for results. |
searchWord | string | No | Keyword for note search. Empty string searches all notes. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"noteList": [
{
"noteInfo": {
"bindType": 4,
"bizType": 0,
"cmtNum": 489,
"favNum": 3285,
"isAdNote": 0,
"likeNum": 56359,
"noteId": "6ae00b99000000001200a9f9",
"noteImages": [
{
"imageHeight": 2400,
"imageUrl": "http://ci.xiaohongshu.com/spectrum/1040g34o326qfkfqpl8105p5oj0ol6up1kacjbf8?imag…",
"imageWidth": 1440
}
]
},
"userInfo": {
"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31qobul3rgm005p5oj0ol6up1tu11gg8…",
"currentLevel": 0,
"fansNum": 567283,
"nickName": "潇湘晨报",
"userId": "64b898310000000014037b21",
"userType": 1
}
}
],
"pageInfoDto": {
"pageNum": 1,
"pageSize": 10,
"total": 100,
"totalPage": 0
},
"total": 100
}
| Field | Meaning |
|---|---|
noteList[].noteInfo.noteId | ID of the note. Pass it to a note detail API for more data. |
noteList[].noteInfo.likeNum / favNum / cmtNum | Like, favorite and comment counts for the note. |
noteList[].noteInfo.noteImages[].imageUrl | URL of one image in the note. |
noteList[].noteInfo.noteImages[].imageWidth / imageHeight | Width and height of that image. |
noteList[].noteInfo.isAdNote | Ad flag for the note. The sample values are 0. |
noteList[].userInfo.userId | ID of the note's author. |
noteList[].userInfo.nickName | Display name of the author. |
noteList[].userInfo.fansNum | Follower count of the author. |
pageInfoDto.pageNum / pageSize | Current page number and the number of notes per page. |
total | Total number of matching notes reported for the query. |
pageNum to move through results. The sample response shows pageSize of 10.pageInfoDto.totalPage returned 0 in the sample even though total was 100, so rely on total and pageSize to work out the page count.noteList[].noteInfo.noteId to Xiaohongshu Pugongying Note Details for a single note.noteList[].userInfo.userId to Xiaohongshu Pugongying Creator Profile to look at the author.$0.021429 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/content-square-search-note-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"nd": "DAY_7",
"bizType": "XIAOHONGSHU_HOT",
"orderBy": "premium_imp_num",
"pageNum": 1
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
searchWordstringKeyword for note search. Empty string searches all notes.
pageNumintegerPage number for results.
預設:1
bizTypestringBusiness category.
預設:"XIAOHONGSHU_HOT"
可能值:XIAOHONGSHU_HOT, PRODUCT_SEEDING, ECOMMERCE_PROMOTION, PUGONGYING_COOPERATION, LEAD_COLLECTION, ECOMMERCE_HOT, SEEDING_DIRECT, APP_PROMOTION
orderBystringRanking metric.
預設:"premium_imp_num"
可能值:premium_imp_num, premium_good_read_rate, premium_read_num, premium_engage_num, premium_engage_rate, premium_like_num, premium_fav_num, premium_cmt_num
ndstringTime range in days.
預設:"DAY_7"
可能值:DAY_3, DAY_7, DAY_14, DAY_30
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Xiaohongshu | 每次呼叫 $0.021429 | JSON |
Xiaohongshu | 每次呼叫 $0.021429 | JSON |
Xiaohongshu | 每次呼叫 $0.071429 | JSON |
Xiaohongshu | 每次呼叫 $0.021429 | JSON |
Xiaohongshu | 每次呼叫 $0.021429 | JSON |
Xiaohongshu | 每次呼叫 $0.021429 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/content-square-search-note-v2。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.021429,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
不需要任何參數。 選填:searchWord (string), pageNum (integer), bizType(XIAOHONGSHU_HOT, PRODUCT_SEEDING, ECOMMERCE_PROMOTION, PUGONGYING_COOPERATION, LEAD_COLLECTION, ECOMMERCE_HOT, SEEDING_DIRECT, APP_PROMOTION 之一), orderBy(premium_imp_num, premium_good_read_rate, premium_read_num, premium_engage_num, premium_engage_rate, premium_like_num, premium_fav_num, premium_cmt_num 之一) 和 nd(DAY_3, DAY_7, DAY_14, DAY_30 之一)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Xiaohongshu Pugongying Content Square Notes 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Xiaohongshu API 存取權。