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.01 每次调用JSON
Xiaohongshu$0.01 每次调用JSON
Xiaohongshu$0.01 每次调用JSON
Xiaohongshu$0.01 每次调用JSON
Xiaohongshu$0.01 每次调用JSON
Xiaohongshu$0.01 每次调用JSON

指南:Best Xiaohongshu API in 2026: Pricing Compared

问题

常见问题

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

向 https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 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 key 吗?

不需要。Xiaohongshu (RED) Note Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Xiaohongshu API 访问权限。

我的第一条关键词搜索请求应该包含什么?

使用非空 keyword、page 1,以及空的 search_id/search_session_id。当前默认值包括 ai_mode 0 和 sort_type general。请保持文档中的默认值,不要自行发明筛选条件。指南只发起一次请求,不会自动打开结果或运行分析。

搜索结果能证明热度或销量吗?

不能。观察到的结果包含 note 卡片,也可能包含其他卡片类型。使用前请检查 relevance、model_type 和 note type。返回的互动数只是某个时间点的样本;缺失的计数仍然未知,而搜索样本也不是全市场排名或销量指标。

我必须把返回的 xsec_token 发送到 Note Comments 吗?

所选的 app-v2/note-comments schema 没有 xsec_token 参数。请检查该确切端点,并使用其 note_id 或 share_text 输入,以及 SandBase Bearer 认证。不要添加未文档化字段,也不要把返回的 note token 当作您的 API key。