keywordstringbắt buộc
Search keyword.
https://api.sandbase.ai/v1/api/xiaohongshu/search-noteSearch Xiaohongshu (RedNote) notes by keyword with page-based pagination, sorting and note-type filters. The V2 noteTime filter may return notes outside the selected time range.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns a page of Xiaohongshu (RedNote) notes that match a search keyword. Each item carries engagement counts and a publish date tag. The only required input is keyword.
美食 and how many saves and comments they have.popularity_descending or collect_descending to find the most saved notes on a topic.query_intent flags to see how the platform reads a search term.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/search-note" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword. |
noteTime | string | No | Note publish time filter. Results may include notes published outside the selected time range. |
noteType | string | No | Note type filter. |
page | integer | No | Page number for pagination. Start at 1, then increment page while keeping the keyword and filters unchanged. |
sort | string | No | Sort order for the result set. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"ai_mode_enable": false,
"can_cut": false,
"cur_cut_number": 0,
"dqa_authorized_user_by_shared": false,
"extra_info": {
"atmosphere_v3_enable": "0"
},
"is_broad_query": true,
"items": [
{
"mix_track_id": "NOTE__6ab3ef24000000001800736f__2h3wq0ok0fiwx58b9zpt7__美食",
"model_type": "note",
"new_help_style": false,
"note": {
"advanced_widgets_groups": {
"groups": [
{
"fetch_types": [
"guos_test"
],
"mode": 1
}
]
},
"click_score": 0.018783261999487877,
"collected": false,
"collected_count": 16088,
"comments_count": 140,
"corner_tag_info": [
{
"icon": "",
"location": -1,
"style": 0,
"text": "RAhtMWDRZPq2iZ25x+orCX1alSUCEVI1eumvzosCK6L+dOYtbzjL4CMGmwv9jddH5SqVbyfSraRcvdSX…",
"text_en": "",
"type": "ubt_sig_token"
}
],
"cover_image_index": 0,
"debug_info_str": ""
}
}
],
"query_debug_info": {
"is_forbidden": false
},
"query_intent": {
"goodsIntent": 3,
"low_supply_intent": false,
"search_ask_intent": true
},
"query_type": 0,
"request_dqa": 0,
"request_dqa_instant": false
}
| Field | Meaning |
|---|---|
items[] | One search result. Page through this list to read the notes for the keyword. |
items[].model_type | Type of result card. The value note marks a note. |
items[].mix_track_id | Tracking string for the result. It contains the note ID after NOTE__, followed by the search request token and the keyword. |
items[].note.collected_count | Number of times users saved the note. |
items[].note.comments_count | Number of comments on the note. |
items[].note.collected | Whether the note is saved by the requesting account. It is false in this response. |
items[].note.corner_tag_info[].text | Tag text. For the entry with type set to publish_time, this is the publish date in MM-DD form, such as 09-24. |
items[].note.at_user_list[] | Users mentioned in the note, with nickname and user_id. Present only on some notes. |
search_request_id | ID of this search request. |
query_intent | Flags describing the search intent, such as goodsIntent and search_ask_intent. |
page starting at 1 and increase it by 1 while keeping keyword, sort, noteType and noteTime the same.noteTime filter can return notes published outside the chosen range, so check the publish_time tag in each item.mix_track_id, between NOTE__ and the next __. Pass it to Xiaohongshu Note Details or Xiaohongshu Note Comments.$0.021429 per successful call. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/search-note" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"sort": "general",
"keyword": "美食",
"noteType": "_0"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
keywordstringbắt buộcSearch keyword.
pageintegerPage number for pagination. Start at 1, then increment page while keeping the keyword and filters unchanged.
Mặc định: 1
sortstringSort order for the result set.
Mặc định: "general"
Giá trị có thể dùng: general, popularity_descending, time_descending, comment_descending, collect_descending
noteTypestringNote type filter.
Mặc định: "_0"
Giá trị có thể dùng: _0, _1, _2
noteTimestringNote publish time filter. Results may include notes published outside the selected time range.
Giá trị có thể dùng: ONE_DAY, ONE_WEEK, HALF_YEAR
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Xiaohongshu | $0.021429 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/xiaohongshu/search-note với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.021429 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: keyword (string). Tùy chọn: page (integer), sort (một trong số general, popularity_descending, time_descending, comment_descending, collect_descending), noteType (một trong số _0, _1, _2) và noteTime (một trong số ONE_DAY, ONE_WEEK, HALF_YEAR). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Xiaohongshu Keyword Note Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Xiaohongshu.