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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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
}'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.
searchWordstringKeyword for note search. Empty string searches all notes.
pageNumintegerPage number for results.
Default: 1
bizTypestringBusiness category.
Default: "XIAOHONGSHU_HOT"
Nilai yang mungkin: XIAOHONGSHU_HOT, PRODUCT_SEEDING, ECOMMERCE_PROMOTION, PUGONGYING_COOPERATION, LEAD_COLLECTION, ECOMMERCE_HOT, SEEDING_DIRECT, APP_PROMOTION
orderBystringRanking metric.
Default: "premium_imp_num"
Nilai yang mungkin: 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.
Default: "DAY_7"
Nilai yang mungkin: DAY_3, DAY_7, DAY_14, DAY_30
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.021429 per panggilan | JSON |
Xiaohongshu | $0.021429 per panggilan | JSON |
Xiaohongshu | $0.071429 per panggilan | JSON |
Xiaohongshu | $0.021429 per panggilan | JSON |
Xiaohongshu | $0.021429 per panggilan | JSON |
Xiaohongshu | $0.021429 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/content-square-search-note-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.021429 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Tidak ada parameter yang wajib. Opsional: searchWord (string), pageNum (integer), bizType (salah satu dari XIAOHONGSHU_HOT, PRODUCT_SEEDING, ECOMMERCE_PROMOTION, PUGONGYING_COOPERATION, LEAD_COLLECTION, ECOMMERCE_HOT, SEEDING_DIRECT, APP_PROMOTION), orderBy (salah satu dari 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) dan nd (salah satu dari DAY_3, DAY_7, DAY_14, DAY_30). 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 Pugongying Content Square Notes 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.