Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Xiaohongshu (RED) Image Search

Dokumentacja API
https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-images

Returns image notes and matching post metadata for a specified search keyword. Results include image URLs, engagement metrics, note identifiers, and author information.

Cena
$0.01USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 5 opcjonalnych

Playground

Wejście
Search keyword
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
Source, default "explore_feed"
Word request ID, pass value from first search response for pagination
WyjściePrzykład
Odpowiedźoutputs · 12.1 KB · 240 wierszy
[
  {
    "data": {
      "code": 0,
      "data": {
        "filter_items": [
          {
            "filter_tags": [
              {
                "icon_tail_url": "",
                "icon_tail_url_night": "",
                "icon_url": "",
                "icon_url_night": "",
                "id": "综合",
                "name": "Top",
                "need_location_info": false,
                "origin_text": "",
                "selected": false,
                "show_type": 2
              },
              {
                "icon_tail_url": "",
                "icon_tail_url_night": "",
                "icon_url": "",
                "icon_url_night": "",
                "id": "最新",
                "name": "Latest",
                "need_location_info": false,
                "origin_text": "openai",
                "selected": false,
                "show_type": 2
              },
              {
                "icon_tail_url": "",
                "icon_tail_url_night": "",
                "icon_url": "",
                "icon_url_night": "",
                "id": "硬件",
                "name": "硬件",
                "need_location_info": false,
                "origin_text": "openai硬件",
                "selected": false,
                "show_type": 2
              },
              "… 9 more items in the full response"
            ],
            "group_show_type": 1,
            "id": "filter_hot",
            "name": "热门词",
            "type": "single",
            "word_request_id": "3ab4f4b8-2cde-48e6-ab21-d00e52fd8d2f"
          }
        ],
        "items": [
          {
            "image_info": {
              "fileid": "spectrum/1040g0k030ua64rtp56005o5h6s4080o1j0fbkl8",
              "height": 1232,
              "need_load_original_image": true,
              "original": "https://sns-na-i11.xhscdn.com/spectrum/1040g0k030ua64rtp56005o5h6s4080o1j0fbkl8?imageView2/2/w/5000/h/5000/format/webp/q/90&ap=5&sc=IMGTAB_ZOOM&sign=640b75edbc86c4fdb1709dc655d22a48&t=6a86cc2c",
              "trace_id": "spectrum/1040g0k030ua64rtp56005o5h6s4080o1j0fbkl8",
              "url": "https://sns-na-i11.xhscdn.com/spectrum/1040g0k030ua64rtp56005o5h6s4080o1j0fbkl8?imageView2/2/w/576/format/webp/q/87%7CimageMogr2/strip&redImage/frame/0&ap=5&sc=IMGTAB_PRV&sign=640b75edbc86c4fdb1709dc655d22a48&t=6a86cc2c",
              "url_size_large": "https://sns-na-i11.xhscdn.com/spectrum/1040g0k030ua64rtp56005o5h6s4080o1j0fbkl8?imageView2/2/w/5000/h/5000/format/webp/q/90&ap=5&sc=IMGTAB_ZOOM&sign=640b75edbc86c4fdb1709dc655d22a48&t=6a86cc2c",
              "width": 928
            },
            "note_info": {
              "collected": false,
              "collected_count": 226,
              "comments_count": 47,
              "cover_image_index": 0,
              "desc": "关键词[微笑R]\nlino cut of large crowd of people energetically moves towards a giant squere, each person in the crowd expresses their uniqueness and individuality.    Dressed in vibrant colors, they create a bright and colorful scene, before people a bright light,colorful, textured, patterned, fine art print, --chaos 12 --ar 3:4 --stylize 185 --v 6\n\t\n一大群人气势汹汹地走向一个巨大的广场,人群中的每一个人都表达着自己的独特性和个性。\n\t\n#人工智能[话题]#  #OpenAI[话题]#  #midjourney[话题]#  #midjourney学习[话题]#  #midjourney关键词[话题]#  #户外登山徒步[话题]#  #人潮汹涌[话题]#\n#人潮汹涌你是人间心动[话题]#",
              "liked": false,
              "liked_count": 392,
              "model_type": "image_card",
              "note_id": "65b0a37a000000002c014b93",
              "publish_time": {
                "icon": "http://picasso-static.xiaohongshu.com/fe-platform/e9b67af62f67d9d6cfac936f96ad10a85fdb868e.png",
                "text": "2024-01-24"
              },
              "shared_count": 0,
              "title": "Midjourney绘图 | 人潮汹涌"
            },
            "share_info": {
              "content": "关键词[微笑R] lino cut of large crowd of people energetically mov",
              "function_entries": [
                {
                  "type": "generate_image"
                },
                {
                  "type": "copy_link"
                },
                {
                  "type": "dislike"
                },
                "… 1 more items in the full response"
              ],
              "guide_audited": true,
              "image": "http://ci.xiaohongshu.com/spectrum/1040g0k030ua64rtp56005o5h6s4080o1j0fbkl8?imageView2/2/w/1080/format/jpg",
              "link": "https://www.xiaohongshu.com/discovery/item/65b0a37a000000002c014b93?app_platform=ios&app_version=9.32.2&share_from_user_hidden=true&type=NORMAL",
              "title": "Midjourney绘图 | 人潮汹涌"
            },
            "user_info": {
              "images": "https://sns-avatar-qc.xhscdn.com/avatar/64354610ec2be016c1cf5f6a.jpg?imageView2/2/w/80/format/jpg",
              "nickname": "快乐小欢",
              "red_id": "9549661040",
              "red_official_verified": false,
              "red_official_verify_type": 0,
              "show_red_official_verify_icon": false,
              "user_id": "60b137080000000001000301"
            }
          },
          {
            "image_info": {
              "fileid": "1040g2sg31dhrsvh30kcg5oa8360gkojknkgkc5o",
              "height": 1130,
              "need_load_original_image": true,
              "original": "https://sns-na-i11.xhscdn.com/1040g2sg31dhrsvh30kcg5oa8360gkojknkgkc5o?imageView2/2/w/5000/h/5000/format/webp/q/90&ap=5&sc=IMGTAB_ZOOM&sign=358b87929941563754ed2a56a8865e46&t=6a86cc2c",
              "trace_id": "1040g2sg31dhrsvh30kcg5oa8360gkojknkgkc5o",
              "url": "https://sns-na-i11.xhscdn.com/1040g2sg31dhrsvh30kcg5oa8360gkojknkgkc5o?imageView2/2/w/576/format/webp/q/87%7CimageMogr2/strip&redImage/frame/0&ap=5&sc=IMGTAB_PRV&sign=358b87929941563754ed2a56a8865e46&t=6a86cc2c",
              "url_size_large": "https://sns-na-i11.xhscdn.com/1040g2sg31dhrsvh30kcg5oa8360gkojknkgkc5o?imageView2/2/w/5000/h/5000/format/webp/q/90&ap=5&sc=IMGTAB_ZOOM&sign=358b87929941563754ed2a56a8865e46&t=6a86cc2c",
              "width": 848
            },
            "note_info": {
              "collected": false,
              "collected_count": 49,
              "comments_count": 3,
              "cover_image_index": 0,
              "desc": "2月4日,全球领先的人工智能科技公司 OpenAI 发布了全新的标志和品牌形象。\n.\n本次品牌重塑的设计团队,由 OpenAI 设计主管 Veit Moeller 和 设计总监 Shannon Jager 领导,柏林字体工作室 ABC Dinamo 和荷兰登贝工作室(Studio Dumbar)动效团队也参与了合作。Moeller 曾在梅赛德斯奔驰(Mercedes-Benz)、WhatsApp 和 Instagram 担任创意总监。\n.\n本次品牌重塑旨在打造更加有机、更加人性化的形象,内容包括:\n.\n全新字体 OpenAI Sans,融合几何精度和人性化设计。\n更强调 OpenAI 文字标志,弱化原有“花瓣”标志。\n重新设计的“花瓣”标志,优化几何形态和线条。\n全新配色方案与网格系统,更规范的应用指导。\n“情感点”符号:一个脉动的蓝色圆盘,象征用户与 AI 的互动。\n.\n全新品牌形象,OpenAI 将风格在原来简约的基础上继续往极简靠拢,多余的元素坚决不用。\n.\n#品牌设计[话题]# #logo设计[话题]# #极简设计极尽思考[话题]# #AI人工智能[话题]# #设计灵感[话题]# #VI设计[话题]# #科技品牌设计[话题]# #OpenAI[话题]# #deepseek[话题]# #品牌美[话题]#",
              "liked": false,
              "liked_count": 81,
              "model_type": "image_card",
              "note_id": "67a405de0000000029010942",
              "publish_time": {
                "icon": "http://picasso-static.xiaohongshu.com/fe-platform/e9b67af62f67d9d6cfac936f96ad10a85fdb868e.png",
                "text": "2025-02-06"
              },
              "shared_count": 0,
              "title": "爱死OpenAI的极简了🖤"
            },
            "share_info": {
              "content": "2月4日,全球领先的人工智能科技公司 OpenAI 发布了全新的标志和品牌形象。 . 本次品牌重塑的设计团队,由 Ope",
              "function_entries": [
                {
                  "type": "generate_image"
                },
                {
                  "type": "copy_link"
                },
                {
                  "type": "dislike"
                },
                "… 1 more items in the full response"
              ],
              "guide_audited": true,
              "image": "http://ci.xiaohongshu.com/1040g2sg31dhrsvh30kcg5oa8360gkojknkgkc5o?imageView2/2/w/1080/format/jpg",
              "link": "https://www.xiaohongshu.com/discovery/item/67a405de0000000029010942?app_platform=ios&app_version=9.32.2&share_from_user_hidden=true&type=NORMAL",
              "title": "爱死OpenAI的极简了"
            },
            "user_info": {
              "images": "https://sns-avatar-qc.xhscdn.com/avatar/614819810000000002026274.jpg?imageView2/2/w/80/format/jpg",
              "nickname": "品牌美",
              "red_id": "pinpaimei",
              "red_official_verified": false,
              "red_official_verify_type": 0,
              "show_red_official_verify_icon": false,
              "user_id": "614819810000000002026274"
            }
          },
          {
            "image_info": {
              "fileid": "1040g00831fhka8r7g4304a1ftkh09fl657ldq70",
              "height": 1365,
              "need_load_original_image": true,
              "original": "https://sns-na-i11.xhscdn.com/1040g00831fhka8r7g4304a1ftkh09fl657ldq70?imageView2/2/w/5000/h/5000/format/webp/q/90&ap=5&sc=IMGTAB_ZOOM&sign=118dde7a042c4cd489cd83f8838f395c&t=6a86cc2c",
              "trace_id": "1040g00831fhka8r7g4304a1ftkh09fl657ldq70",
              "url": "https://sns-na-i11.xhscdn.com/1040g00831fhka8r7g4304a1ftkh09fl657ldq70?imageView2/2/w/576/format/webp/q/87%7CimageMogr2/strip&redImage/frame/0&ap=5&sc=IMGTAB_PRV&sign=118dde7a042c4cd489cd83f8838f395c&t=6a86cc2c",
              "url_size_large": "https://sns-na-i11.xhscdn.com/1040g00831fhka8r7g4304a1ftkh09fl657ldq70?imageView2/2/w/5000/h/5000/format/webp/q/90&ap=5&sc=IMGTAB_ZOOM&sign=118dde7a042c4cd489cd83f8838f395c&t=6a86cc2c",
              "width": 1024
            },
            "note_info": {
              "collected": false,
              "collected_count": 378,
              "comments_count": 118,
              "cover_image_index": 0,
              "desc": "4o更新!做了一些卡通版ootd,还得是openai啊\n小猫咪怎么这么可爱!\n\t\n#分享一张可爱动物[话题]# #ChatGPT4o[话题]# #我和AI有话说[话题]# #AI画图[话题]# #分享你的今日穿搭ootd[话题]# #ootd[话题]# #ChatGPT[话题]#",
              "liked": false,
              "liked_count": 1072,
              "model_type": "image_card",
              "note_id": "67e56653000000001d019a34",
              "publish_time": {
                "icon": "http://picasso-static.xiaohongshu.com/fe-platform/e9b67af62f67d9d6cfac936f96ad10a85fdb868e.png",
                "text": "2025-03-27"
              },
              "shared_count": 0,
              "title": "ChatGPT可太会了"
            },
            "share_info": {
              "content": "4o更新!做了一些卡通版ootd,还得是openai啊 小猫咪怎么这么可爱! #分享一张可爱动物  #ChatGPT4o",
              "function_entries": [
                {
                  "type": "generate_image"
                },
                {
                  "type": "copy_link"
                },
                {
                  "type": "dislike"
                },
                "… 1 more items in the full response"
              ],
              "guide_audited": true,
              "image": "http://ci.xiaohongshu.com/1040g00831fhka8r7g4304a1ftkh09fl657ldq70?imageView2/2/w/1080/format/jpg",
              "link": "https://www.xiaohongshu.com/discovery/item/67e56653000000001d019a34?app_platform=ios&app_version=9.32.2&share_from_user_hidden=true&type=NORMAL",
              "title": "ChatGPT可太会了"
            },
            "user_info": {
              "images": "https://sns-avatar-qc.xhscdn.com/avatar/62938cbd00028cb1215c153d.jpg?imageView2/2/w/80/format/jpg",
              "nickname": "Shakie",
              "red_id": "951231854",
              "red_official_verified": false,
              "red_official_verify_type": 0,
              "show_red_official_verify_icon": false,
              "user_id": "5a85a2044eacab616a62bea6"
            }
          },
          "… 17 more items in the full response"
        ]
      },
      "debug_id": "95b2d9a9",
      "debug_info": "gAAAAABqhswtuFx-nzRs9LEHKUGVq_9MZlXPpsW1L78apvwOaTL0Ewpvou5rC78pPa8F4NhO6gbTS7yE9W6TvD03a_sb9XgV18ZgusyhSlnGuZiBcZ8pQ-BA04c0pAAQPBrWcp7Hklu9z_muwibN-zYo6N51oJOVp_uAfYJBmsWV0GAnNryQy6S9LstCZvDnFc-vjI7eVMaNUfGsAnyqi37OB7RdiT90RvYjeFDUHi7cJ5qyOrDGSWcQK6weMRP2OyyCsJ4A6oQNCSRZZyE54k_u2ikZ_YzZaORYhu9SqsD7Z3jFVLoAo4ZBe3-u41Ptqgk9z9KR_YPOTm-32-26ZBVwSU2vYSSMojoWfWI4Ba_m1s-JRy-hMMgBniDJO5LUJCPX9npMIGf0PS204mgbIvileuVu7CDmUKt_BXsGL-Q3gLxmR4DN5Xw=",
      "msg": "成功",
      "next_page": 2,
      "page": 1,
      "search_id": "23fb3b8ce407406c",
      "search_session_id": "f577878d954f4f1dbfbd821767bb9ff6",
      "success": true,
      "word_request_id": "287b2f2b3dce43ef8296f5cd0b848523"
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

README API

Xiaohongshu (RED) Image Search API

Returns image notes from Xiaohongshu (RED) that match a search keyword. Each result has image URLs, like, collect and comment counts, share link and author details. The only required input is keyword.

Use cases

  • Collect image notes about a brand or topic, such as OpenAI, with their cover image URLs.
  • Compare liked_count, collected_count and comments_count across notes to spot posts that get the most engagement.
  • Build a list of creators who post about a topic using user_info.user_id and user_info.red_id.
  • Pull the share link of each note to open or store the original post.

Request

curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-images" \
  -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
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
sourcestringNoSource, default "explore_feed"
word_request_idstringNoWord request ID, pass value from first search response for pagination

Example response

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

{
  "code": 0,
  "data": {
    "filter_items": [
      {
        "filter_tags": [
          {
            "icon_tail_url": "",
            "icon_tail_url_night": "",
            "icon_url": "",
            "icon_url_night": "",
            "id": "综合",
            "name": "Top",
            "need_location_info": false,
            "origin_text": ""
          }
        ],
        "group_show_type": 1,
        "id": "filter_hot",
        "name": "热门词",
        "type": "single",
        "word_request_id": "9843f0d7-3991-46c6-a090-737d51134b49"
      }
    ],
    "items": [
      {
        "image_info": {
          "fileid": "spectrum/1040g0k030pksuqnjms005o5h6s4080o1km2vfn8",
          "height": 1232,
          "need_load_original_image": true,
          "original": "https://sns-na-i27.xhscdn.com/spectrum/1040g0k030pksuqnjms005o5h6s4080o1km2vfn8?…",
          "trace_id": "spectrum/1040g0k030pksuqnjms005o5h6s4080o1km2vfn8",
          "url": "https://sns-na-i27.xhscdn.com/spectrum/1040g0k030pksuqnjms005o5h6s4080o1km2vfn8?…",
          "url_size_large": "https://sns-na-i27.xhscdn.com/spectrum/1040g0k030pksuqnjms005o5h6s4080o1km2vfn8?…",
          "width": 928
        },
        "note_info": {
          "collected": false,
          "collected_count": 136,
          "comments_count": 3,
          "cover_image_index": 0,
          "desc": "关键词[微笑R]\nlino cut of children following a trail of paw prints through a forest. …",
          "liked": false,
          "liked_count": 197,
          "model_type": "image_card"
        },
        "share_info": {
          "content": "关键词[微笑R] lino cut of children following a trail of paw print",
          "function_entries": [
            {
              "type": "generate_image"
            }
          ],
          "guide_audited": true,
          "image": "http://ci.xiaohongshu.com/spectrum/1040g0k030pksuqnjms005o5h6s4080o1km2vfn8?imag…",
          "link": "https://www.xiaohongshu.com/discovery/item/6517c4b2000000001e023667?app_platform…",
          "title": "Midjourney绘图 | 徒步穿越者"
        },
        "user_info": {
          "images": "https://sns-avatar-qc.xhscdn.com/avatar/64354610ec2be016c1cf5f6a.jpg?imageView2/…",
          "nickname": "快乐小欢",
          "red_id": "9549661040",
          "red_official_verified": false,
          "red_official_verify_type": 0,
          "show_red_official_verify_icon": false,
          "user_id": "60b137080000000001000301"
        }
      }
    ]
  },
  "debug_id": "93d2251f",
  "debug_info": "gAAAAABq6ZFrYKbq4HqNnLWHJ3QNkDMxoAXELty1PI8TT86wzgSoLiLgfoslJUw8IR5w3xJwt5IlyCxh…",
  "msg": "成功",
  "next_page": 2,
  "page": 1,
  "search_id": "072a2c2bb22b46fc",
  "search_session_id": "f0753ad5…",
  "success": true,
  "word_request_id": "2980fa4fd69148438758ba085698fd8d"
}

Response fields

FieldMeaning
data.items[].note_info.descText body of the note, including hashtags. Long text may be cut.
data.items[].note_info.liked_count / collected_count / comments_countNumber of likes, collects and comments on the note.
data.items[].note_info.model_typeType of the result card. The sample values are image_card.
data.items[].image_info.url / url_size_large / originalImage links at different sizes. url is a smaller preview, and url_size_large and original are larger versions.
data.items[].image_info.width / heightImage size in pixels.
data.items[].share_info.titleTitle of the note.
data.items[].share_info.linkShare link to the note on xiaohongshu.com. The note ID is in the path after /discovery/item/.
data.items[].user_info.nickname / red_id / user_idDisplay name, public RED ID and internal user ID of the author.
data.items[].user_info.red_official_verifiedWhether the author has an official RED verification.
data.filter_items[].filter_tags[].nameRelated filter tags for the search, such as Top and Latest.

Notes

  • For the next page, send page set to the next_page value in the response.
  • Copy search_id, search_session_id and word_request_id from the first response into later page requests.
  • The note ID is not a separate field in this sample. Read it from share_info.link, then pass it to Xiaohongshu (RED) Image Note Details for the full note.
  • To get comments for a note, call Xiaohongshu (RED) Note Comments.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Xiaohongshu$0.01 za wywołanieJSON
Xiaohongshu$0.01 za wywołanieJSON
Xiaohongshu$0.01 za wywołanieJSON
Xiaohongshu$0.01 za wywołanieJSON
Xiaohongshu$0.01 za wywołanieJSON
Xiaohongshu$0.01 za wywołanieJSON

Przewodniki:Best Xiaohongshu API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Xiaohongshu (RED) Image Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-images z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Xiaohongshu (RED) Image Search?

$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Xiaohongshu (RED) Image Search?

Wymagane: keyword (string). Opcjonalne: page (integer), search_id (string), search_session_id (string), source (string) i word_request_id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Xiaohongshu (RED) Image Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Xiaohongshu lub klucza API?

Nie. Xiaohongshu (RED) Image Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Xiaohongshu.