Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Xiaohongshu (RED) Note Search

API 文件
https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes

Search Xiaohongshu (RED / Little Red Book) notes by keyword and get titles, authors, cover images and like, collect, comment and share counts, with sort, note-type and time filters.

價格
$0.01美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 8 個選填

Playground

輸入
Search keyword
AI mode, 0=off, 1=on
Note type filter
Page number, start from 1
Search ID, pass value from first search response for pagination
Search session ID, pass value from first search response for pagination
Sort type
Source, default "explore_feed"
Time filter
輸出範例
回應outputs · 21.7 KB · 448 行
[
  {
    "data": {
      "code": 0,
      "data": {
        "ai_mode_enable": false,
        "can_cut": false,
        "cur_cut_number": 0,
        "dqa_authorized_user_by_shared": false,
        "dqa_instant_sid": "d0KrngIV2V",
        "is_broad_query": true,
        "items": [
          {
            "mix_track_id": "NOTE__6a818c80000000003302c0c4__ee63929105554d24__OpenAI",
            "model_type": "note",
            "new_help_style": false,
            "note": {
              "advanced_widgets_groups": {
                "groups": [
                  {
                    "fetch_types": [
                      "guos_test",
                      "note_next_step",
                      "second_jump_bar",
                      "… 31 more items in the full response"
                    ],
                    "mode": 1
                  },
                  {
                    "fetch_types": [
                      "guos_test",
                      "vote_stickers",
                      "bullet_comment_lead",
                      "… 12 more items in the full response"
                    ],
                    "mode": 0
                  }
                ]
              },
              "click_score": 0.23010969161987305,
              "collected": false,
              "collected_count": 4,
              "comments_count": 0,
              "corner_tag_info": [
                {
                  "icon": "",
                  "location": -1,
                  "style": 0,
                  "text": "RAGQ9cSiIlL40KiG/B2+BeCOL641ik4+WFewIeW4v+4h8kYBxvlzLGKcryvYmDsf1zV0dJxPUWxZF8s8ePIP7NoMa1j7TzlIdd",
                  "text_en": "",
                  "type": "ubt_sig_token"
                }
              ],
              "cover_image_index": 0,
              "debug_info_str": "",
              "desc": "全球顶级生成式AI巨头扩招,总部核心AppliedAI团队加码旧金山湾区,定向面向美本美硕在读开放岗位,项目经历匹配者优",
              "extract_text_enabled": 0,
              "geo_info": {
                "distance": ""
              },
              "has_music": false,
              "id": "6a818c80000000003302c0c4",
              "images_list": [
                {
                  "fileid": "notes_pre_post/1040g3k8323u6jcmt7acg5qftbbbg8v00gjiil80",
                  "height": 1410,
                  "need_load_original_image": false,
                  "original": "",
                  "trace_id": "notes_pre_post/1040g3k8323u6jcmt7acg5qftbbbg8v00gjiil80",
                  "url": "https://sns-na-i11.xhscdn.com/notes_pre_post/1040g3k8323u6jcmt7acg5qftbbbg8v00gjiil80?imageView2/2/w/576/format/webp/q/87%7CimageMogr2/strip&redImage/frame/0&ap=5&sc=SRH_PRV&sign=5ba3099e14215a8ac40b0392d41e58fb&t=6a86cbb8",
                  "url_size_large": "https://sns-na-i11.xhscdn.com/notes_pre_post/1040g3k8323u6jcmt7acg5qftbbbg8v00gjiil80?imageView2/2/w/1440/format/webp&ap=5&sc=SRH_DTL&sign=5ba3099e14215a8ac40b0392d41e58fb&t=6a86cbb8",
                  "width": 1116
                }
              ],
              "interaction_area": {
                "status": false,
                "text": "6",
                "type": 1
              },
              "last_update_time": 0,
              "liked": false,
              "liked_count": 6,
              "nice_count": 0,
              "niced": false,
              "note_attributes": [],
              "result_from": "",
              "shared_count": 4,
              "tag_info": {
                "title": "",
                "type": ""
              },
              "timestamp": 1786903920,
              "title": "🇺🇸OpenAI湾区:We're hiring",
              "type": "normal",
              "update_time": 1786903920000,
              "user": {
                "followed": false,
                "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo323fqddc0nu6g5qftbbbg8v00bietpj8?imageView2/2/w/80/format/jpg",
                "nickname": "Delia",
                "red_id": "49338218856",
                "red_official_verified": false,
                "red_official_verify_type": 0,
                "show_red_official_verify_icon": false,
                "track_duration": 0,
                "userid": "69fd5ad70000000001007c00"
              },
              "widgets_context": "{\"flags\":{},\"author_id\":\"69fd5ad70000000001007c00\",\"author_name\":\"Delia\"}",
              "xsec_token": "YBOAIA50BFzVbnly2rjKCrOFV8EqhxEJBum7g0VIzKjCE="
            }
          },
          {
            "mix_track_id": "NOTE__6a6c688000000000060041d4__ee63929105554d24__OpenAI",
            "model_type": "note",
            "new_help_style": false,
            "note": {
              "advanced_widgets_groups": {
                "groups": [
                  {
                    "fetch_types": [
                      "guos_test",
                      "note_next_step",
                      "second_jump_bar",
                      "… 31 more items in the full response"
                    ],
                    "mode": 1
                  },
                  {
                    "fetch_types": [
                      "guos_test",
                      "vote_stickers",
                      "bullet_comment_lead",
                      "… 12 more items in the full response"
                    ],
                    "mode": 0
                  }
                ]
              },
              "click_score": 0.20319239795207977,
              "collected": false,
              "collected_count": 67,
              "comments_count": 44,
              "corner_tag_info": [
                {
                  "icon": "",
                  "location": -1,
                  "style": 0,
                  "text": "RAdtYqP8ddxjXPPOtHPLpDF4OiFFf1ysWmnF3GtJfTH3em2TtOsaWjbphXbc4E+m2xOain3B6jB80A0EQGAn1eUXL9MAD6ecyk",
                  "text_en": "",
                  "type": "ubt_sig_token"
                }
              ],
              "cover_image_index": 0,
              "debug_info_str": "",
              "desc": "🇺🇸刚结束OpenAI Machine Learning Engineer面试,最大的感受是:这场面试考察的并不是会",
              "extract_text_enabled": 0,
              "geo_info": {
                "distance": ""
              },
              "has_music": false,
              "id": "6a6c688000000000060041d4",
              "images_list": [
                {
                  "fileid": "spectrum/1040g34o3239hvpqj701g5pon4eqne2i9a7t4538",
                  "height": 1447,
                  "need_load_original_image": false,
                  "original": "",
                  "trace_id": "spectrum/1040g34o3239hvpqj701g5pon4eqne2i9a7t4538",
                  "url": "https://sns-na-i11.xhscdn.com/spectrum/1040g34o3239hvpqj701g5pon4eqne2i9a7t4538?imageView2/2/w/576/format/webp/q/87%7CimageMogr2/strip&redImage/frame/0&ap=5&sc=SRH_PRV&sign=120f934430919b7e825be4ebaff4a07f&t=6a86cbb8",
                  "url_size_large": "https://sns-na-i11.xhscdn.com/spectrum/1040g34o3239hvpqj701g5pon4eqne2i9a7t4538?imageView2/2/w/1440/format/webp&ap=5&sc=SRH_DTL&sign=120f934430919b7e825be4ebaff4a07f&t=6a86cbb8",
                  "width": 1087
                },
                {
                  "fileid": "spectrum/1040g0k03239hvt6v70005pon4eqne2i9a3v5un8",
                  "height": 1660,
                  "need_load_original_image": false,
                  "original": "",
                  "trace_id": "spectrum/1040g0k03239hvt6v70005pon4eqne2i9a3v5un8",
                  "url": "",
                  "url_size_large": "https://sns-na-i11.xhscdn.com/spectrum/1040g0k03239hvt6v70005pon4eqne2i9a3v5un8?imageView2/2/w/1440/format/webp&ap=5&sc=SRH_DTL&sign=f8a11a9101758948184f134624a44af3&t=6a86cbb8",
                  "width": 1242
                }
              ],
              "interaction_area": {
                "status": false,
                "text": "80",
                "type": 1
              },
              "last_update_time": 0,
              "liked": false,
              "liked_count": 80,
              "nice_count": 0,
              "niced": false,
              "note_attributes": [],
              "result_from": "",
              "shared_count": 21,
              "tag_info": {
                "title": "",
                "type": ""
              },
              "timestamp": 1785489536,
              "title": "我发现我真的很会面OpenAI的MLE(已上岸",
              "type": "normal",
              "update_time": 1785846718000,
              "user": {
                "followed": false,
                "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31joi7ebm3q6g5pon4eqne2i96v6tsg0?imageView2/2/w/80/format/jpg",
                "nickname": "Ida Career",
                "red_id": "63034691881",
                "red_official_verified": false,
                "red_official_verify_type": 0,
                "show_red_official_verify_icon": false,
                "track_duration": 0,
                "userid": "671723b5000000001d030a49"
              },
              "widgets_context": "{\"flags\":{},\"author_id\":\"671723b5000000001d030a49\",\"author_name\":\"Ida Career\"}",
              "xsec_token": "YBH5CLeaPIJNlWaDfqwrlDrR8kEC56KxBV5LfA17zFx6c="
            }
          },
          {
            "mix_track_id": "NOTE__6a754bb60000000032022710__ee63929105554d24__OpenAI",
            "model_type": "note",
            "new_help_style": false,
            "note": {
              "advanced_widgets_groups": {
                "groups": [
                  {
                    "fetch_types": [
                      "guos_test",
                      "note_next_step",
                      "second_jump_bar",
                      "… 31 more items in the full response"
                    ],
                    "mode": 1
                  },
                  {
                    "fetch_types": [
                      "guos_test",
                      "vote_stickers",
                      "bullet_comment_lead",
                      "… 12 more items in the full response"
                    ],
                    "mode": 0
                  }
                ]
              },
              "click_score": 0.1785041242837906,
              "collected": false,
              "collected_count": 18,
              "comments_count": 8,
              "corner_tag_info": [
                {
                  "icon": "",
                  "location": -1,
                  "style": 0,
                  "text": "RArWzbbwEbnsPXc17619r/IqG1QXrIK/Koi2bSK9rMUi1neeySfUcOIWr5qzYs9VpT2cmZRDrJAHDPTc1jvZrLisWgzNYpbTQx",
                  "text_en": "",
                  "type": "ubt_sig_token"
                }
              ],
              "cover_image_index": 0,
              "debug_info_str": "",
              "desc": "我:终于又来贵司蹭饭了! 朋友:你不是天天研究OpenAI吗? 我:研究模型和研究食堂能一样吗👀 上次来感觉OpenA",
              "extract_text_enabled": 0,
              "geo_info": {
                "distance": ""
              },
              "has_music": false,
              "id": "6a754bb60000000032022710",
              "images_list": [
                {
                  "fileid": "notes_pre_post/1040g3k0323i7ng2t724g49metfhpp63ru9ollpg",
                  "height": 2560,
                  "need_load_original_image": false,
                  "original": "",
                  "trace_id": "notes_pre_post/1040g3k0323i7ng2t724g49metfhpp63ru9ollpg",
                  "url": "https://sns-na-i11.xhscdn.com/notes_pre_post/1040g3k0323i7ng2t724g49metfhpp63ru9ollpg?imageView2/2/w/576/format/webp/q/87%7CimageMogr2/strip&redImage/frame/0&ap=5&sc=SRH_PRV&sign=6ee2ff4142af58fb091c36a07078c247&t=6a86cbb8",
                  "url_size_large": "https://sns-na-i11.xhscdn.com/notes_pre_post/1040g3k0323i7ng2t724g49metfhpp63ru9ollpg?imageView2/2/w/1440/format/webp&ap=5&sc=SRH_DTL&sign=6ee2ff4142af58fb091c36a07078c247&t=6a86cbb8",
                  "width": 1920
                },
                {
                  "fileid": "notes_pre_post/1040g3k0323i7ng2t726049metfhpp63r50lja4g",
                  "height": 1636,
                  "need_load_original_image": false,
                  "original": "",
                  "trace_id": "notes_pre_post/1040g3k0323i7ng2t726049metfhpp63r50lja4g",
                  "url": "",
                  "url_size_large": "https://sns-na-i11.xhscdn.com/notes_pre_post/1040g3k0323i7ng2t726049metfhpp63r50lja4g?imageView2/2/w/1440/format/webp&ap=5&sc=SRH_DTL&sign=38ff606d1db9704b950706c47b2012db&t=6a86cbb8",
                  "width": 1180
                },
                {
                  "fileid": "notes_pre_post/1040g3k0323i7ng2t727049metfhpp63rlf2p5r8",
                  "height": 4877,
                  "need_load_original_image": false,
                  "original": "",
                  "trace_id": "notes_pre_post/1040g3k0323i7ng2t727049metfhpp63rlf2p5r8",
                  "url": "",
                  "url_size_large": "https://sns-na-i11.xhscdn.com/notes_pre_post/1040g3k0323i7ng2t727049metfhpp63rlf2p5r8?imageView2/2/w/1440/format/webp&ap=5&sc=SRH_DTL&sign=c887bd218aef0dde891c97b1dbd78396&t=6a86cbb8",
                  "width": 3658
                },
                "… 4 more items in the full response"

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Xiaohongshu (RED) Note Search API

Search Xiaohongshu (RedNote) notes by keyword, with sorting, note type and time filters. Each note comes with title, text, author, likes, saves, comments and shares, and an observed xsec_token field. Check the selected follow-up endpoint for its actual inputs.

Use cases

  • Research what users say about a product or brand on Xiaohongshu.
  • Find popular notes for a keyword sorted by likes or recency.
  • Collect note IDs for detail and comment APIs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword
ai_modeintegerNoAI mode, 0=off, 1=on
note_typestringNoNote type filter
pageintegerNoPage number, start from 1
search_idstringNoSearch ID, pass value from first search response for pagination
search_session_idstringNoSearch session ID, pass value from first search response for pagination
sort_typestringNoSort type
sourcestringNoSource, default "explore_feed"
time_filterstringNoTime filter

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "code": 0,
  "data": {
    "items": [
      {
        "model_type": "note",
        "note": {
          "id": "68417e340000000012005009",
          "title": "在OpenAI工作一年是什么体验?",
          "desc": "今天是Kay在@openai一周年纪念日。就像所有美好的事物一样,感觉就像一辈子那么长,又像只有一周那么长。 在过去的一",
          "type": "normal",
          "liked_count": 1710,
          "collected_count": 436,
          "comments_count": 45,
          "shared_count": 63,
          "timestamp": 1749122612,
          "xsec_token": "YBInGnHNhG3Mpg74EPpAit_uooczsdD7_5qKSMlc2sqWE=",
          "user": {
            "nickname": "科技漫步者",
            "userid": "60c73fb9000000000101fef2"
          }
        }
      }
    ]
  }
}

Response fields

FieldMeaning
data.items[].note.idNote ID.
data.items[].note.title / descTitle and text.
data.items[].note.typenormal (image) or video.
data.items[].note.liked_count / collected_count / comments_count / shared_countEngagement counts.
data.items[].note.userAuthor nickname and userid.
data.items[].note.xsec_tokenToken observed in this search response. The selected app-v2/note-comments schema does not declare this input; inspect each follow-up variant separately.

Notes

  • Pages start at 1. Pass the search_id from the first response when you request page 2 and later.
  • sort_type and time_filter follow the app's options.

Pricing

$0.01 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

Search one page of public notes

Use Note Search for a topic or product keyword, not a known note identifier. Begin with page 1 and empty search_id and search_session_id. The current defaults are ai_mode 0, sort_type general, source explore_feed, and the literal value 不限 for note_type and time_filter. Keep those defaults unless the exact endpoint reference supports the alternative you need; this guide does not invent filter enums or start an AI analysis step.

The observed data.items array may contain different card types. Confirm model_type and the nested note before treating a card as a note. Review relevance and note type manually; likes and saves from a search sample do not establish market demand, a stable ranking or sales. Do not automatically choose the highest-liked result and fetch its details or comments.

Have already selected a note? Use Note Comments as a separate first request. The search reference includes xsec_token in a note card, but the selected app-v2/note-comments input schema does not declare an xsec_token parameter. Do not invent that parameter or treat a returned token as your SandBase API key.

Later search pages require the matching search_id and search_session_id according to the current descriptions. This first-request guide does not revalidate continuation or reuse identifiers across different keywords.

Give your agent one research question

Already have a SandBase key? Keep SANDBASE_API_KEY in your local environment and use this page's API tab for the POST /v1/api/ route and Bearer authentication. For an agent already connected, provide the exact endpoint and your keyword or known note identifier. Starting a project? Give the agent the setup Skill, Markdown quickstart and your task, then ask for one request with a saved response.

Read outputs[0].data from a completed SandBase response. The selected app-v2 reference samples use integer code 0; the comments sample also carries success: true. Validate the provider result and expected data.items or data.comments array. Do not turn a provider error or missing array into an empty result. Empty arrays and missing fields mean different things, and missing engagement counts are not zero.

Pricing checked on 2026-11-08: both endpoints list $0.01 per call and eligibility for 100 daily data API calls shared across eligible APIs in the organization, resetting at 00:00 UTC. Eligibility does not establish remaining allowance. Review current pricing and quota before running. No new business query was made for this update. See the Xiaohongshu Python first-request guide for bounded examples and separately dated historical research.

探索更多

相關 APIs

所有 APIs
API價格回應
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON

指南:Best Xiaohongshu API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Xiaohongshu (RED) Note Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Xiaohongshu (RED) Note Search API 的費用是多少?

每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Xiaohongshu (RED) Note Search API 接受哪些參數?

必要:keyword (string)。 選填:ai_mode (integer), note_type (string), page (integer), search_id (string), search_session_id (string) 和 sort_type (string),以及另外 2 個。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Xiaohongshu (RED) Note Search API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Xiaohongshu 開發者帳號或 API 金鑰嗎?

不需要。Xiaohongshu (RED) Note Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Xiaohongshu API 存取權。

我的第一個關鍵字搜尋請求應包含什麼?

請使用非空 keyword、page 1,以及空的 search_id/search_session_id。目前預設包含 ai_mode 0 和 sort_type general。請保留文件所述的預設值,不要自行發明篩選值。指南只發出一個請求,不會自動開啟結果或執行分析。

搜尋結果能證明熱度或銷售嗎?

不能。觀察到的結果包含筆記卡片,也可能包含其他卡片類型。請先檢查相關性、model_type 與筆記類型,再加以使用。回傳的互動數是某一時間點的樣本;缺少的數值仍屬未知,而搜尋樣本也不是整體市場排名或銷售指標。

我必須把回傳的 xsec_token 傳給 Note Comments 嗎?

所選的 app-v2/note-comments schema 沒有 xsec_token 參數。請檢查那個確切端點,並使用其 note_id 或支援的 share_text 輸入搭配 SandBase Bearer 驗證。不要新增未記錄欄位,也不要把回傳的 note token 當成您的 API key。