Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Xiaohongshu (RED) Note Search

Dokumentasi 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.

Harga
$0.01USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 8 opsional

Playground

Input
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
OutputContoh
Responsoutputs · 21.7 KB · 448 baris
[
  {
    "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"

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Xiaohongshu$0.01 per panggilanJSON
Xiaohongshu$0.01 per panggilanJSON
Xiaohongshu$0.01 per panggilanJSON
Xiaohongshu$0.01 per panggilanJSON
Xiaohongshu$0.01 per panggilanJSON
Xiaohongshu$0.01 per panggilanJSON

Panduan:Best Xiaohongshu API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Xiaohongshu (RED) Note Search?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes 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.

Berapa biaya API Xiaohongshu (RED) Note Search?

$0.01 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Xiaohongshu (RED) Note Search?

Wajib: keyword (string). Opsional: ai_mode (integer), note_type (string), page (integer), search_id (string), search_session_id (string) dan sort_type (string) dan 2 lainnya. Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Xiaohongshu (RED) Note Search?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Xiaohongshu?

Tidak. Xiaohongshu (RED) Note Search 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.

Apa yang harus disertakan pada permintaan pencarian kata kunci pertama saya?

Gunakan keyword yang tidak kosong, page 1, dan search_id/search_session_id kosong. Default saat ini mencakup ai_mode 0 dan sort_type general. Pertahankan default yang terdokumentasi, bukan mengarang nilai filter. Panduan ini membuat satu permintaan dan tidak otomatis membuka hasil atau menjalankan analisis.

Apakah hasil pencarian membuktikan popularitas atau penjualan?

Tidak. Hasil yang diamati berisi note card dan dapat berisi tipe card lain. Tinjau relevance, model_type, dan note type sebelum menggunakannya. Jumlah engagement yang dikembalikan adalah sampel lama; jumlah yang hilang tetap tidak diketahui, dan sampel pencarian bukan peringkat seluruh pasar atau pengukuran penjualan.

Apakah saya harus mengirim xsec_token yang dikembalikan ke Note Comments?

Skema app-v2/note-comments yang dipilih tidak memiliki parameter xsec_token. Periksa endpoint yang persis itu dan gunakan input note_id atau share_text yang didukung dengan autentikasi SandBase Bearer. Jangan menambahkan field yang tidak terdokumentasi atau mengganti token note yang dikembalikan sebagai API key Anda.