Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Xiaohongshu Shop Product Search

API दस्तावेज़
https://api.sandbase.ai/v1/api/xiaohongshu/ec/search-products

Search products sold in Xiaohongshu (RedNote) shops by keyword, with price, sales and shop info.

मूल्य
$0.028571USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 2 वैकल्पिक

प्लेग्राउंड

इनपुट
Search keyword.
Page number, starting from 1.
Search ID returned by the first-page response; required when page is greater than 1.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Xiaohongshu Shop Product Search API

Returns a page of Xiaohongshu (RedNote) shop product cards that match a keyword. Each card has a product ID, a product image, and a deep link into the app. The only required input is keyword.

Use cases

  • Build a list of product IDs that appear for a keyword such as 防晒霜 (sunscreen) to track which items the search shows.
  • Collect product image URLs for a category to compare how listings look.
  • Page through search results to see how many product cards a keyword returns and in what order.
  • Check whether a keyword gets rewritten or has recommended terms attached.

Request

curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/ec/search-products" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "防晒霜"}'

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

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword.
pagestringNoPage number, starting from 1.
searchIdstringNoSearch ID returned by the first-page response; required when page is greater than 1.

Example response

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

{
  "code": 0,
  "data": {
    "biz_info": {
      "common": {
        "recommend_info": {
          "extend_tag": 0,
          "recommend_items": [],
          "recommend_type": 0
        },
        "rewrite_word_info": {
          "current_result_word": "",
          "desc": "",
          "new_result_word": "",
          "rewrite_type": 0
        }
      }
    },
    "container": {
      "template": [
        {
          "extra": {
            "column": 2
          },
          "identityId": "cosmos_search_goods_card_single_span-dsl-1.0.0",
          "name": "cosmos_search_goods_card_single_span",
          "type": "dsl",
          "url": "",
          "version": "1.0.0"
        }
      ]
    },
    "hierarchy": {
      "common": {
        "layout": "slotY",
        "load_more": true,
        "pull_refresh": false,
        "slot": 2
      },
      "structure": {
        "root": [
          "cosmos_search_goods_card_1"
        ]
      }
    },
    "module": {
      "data": [
        {
          "card_name": "cosmos_search_goods_card",
          "card_type": "dsl",
          "content": {
            "display_lines": 0,
            "exp_flag_map": {
              "Genuine_Brand_Product": "0",
              "brand_tag": "0",
              "flag": "0",
              "help_farmers": "1",
              "help_farmers_price_prefix": "1",
              "more_search_tag": "0",
              "search_add_recommend_tag": "0",
              "search_green_tag": "1"
            },
            "goods_type": "normal",
            "has_buyer_explain": false,
            "id": "6a0410185a83230001c2e48d",
            "image": [
              {
                "aspect_ratio": 1,
                "height": 540,
                "url": "https://mall-i8.xhscdn.com/arkgoods/1040g0o03203ln7ock8105o1lr5a086somrc9tog?ima…",
                "width": 540
              }
            ],
            "link": "xhsdiscover://goods_detail/6a0410185a83230001c2e48d?listing_image=https%3A%2F%2F…",
            "preload": "{\"type\":\"vision\",\"goods_detail_type\":null,\"original\":null,\"vision\":{\"ver\":\"1.0\",…"
          },
          "id": "cosmos_search_goods_card_1",
          "version": "1.0.0"
        }
      ]
    },
    "ver": "1.0"
  },
  "debug_id": "8ed43963",
  "debug_info": "gAAAAABq6ZFy9HPqVt-sXazStSYG0i_PgAMfRIv-rXZUZhdqQ_cofaGDGjdcNDBS5IALgbbwdQnCAp55…",
  "msg": "成功",
  "next_page": 2,
  "page": 1,
  "search_id": "4264cd9ba8a64b44",
  "success": true
}

Response fields

FieldMeaning
data.module.data[].content.idProduct ID of the card. Use it to look up the product in other APIs.
data.module.data[].idPosition ID of the card in this result page, such as cosmos_search_goods_card_1. The values in data.hierarchy.structure.root use the same IDs.
data.module.data[].content.image[].urlProduct image URL. The same object holds width, height and aspect_ratio.
data.module.data[].content.linkDeep link that opens the product in the Xiaohongshu app. The listing_image query value is the encoded image URL.
data.module.data[].content.goods_typeProduct type label. The sample cards all return normal.
data.module.data[].content.preloadJSON string that holds the card's display data. Parse it to read more details.
data.biz_info.common.rewrite_word_info.new_result_wordKeyword the search was rewritten to. It is empty when no rewrite happened.
data.hierarchy.common.load_moreShows whether the platform says more results can be loaded.
page / next_pageCurrent page number and the next page number to request.
search_idID of this search. Send it as searchId when you request page 2 or later.

Notes

  • Send keyword alone for the first page. Read search_id and next_page from the response.
  • For page 2 and later, send page and the searchId from the first-page response.
  • Pass content.id to Xiaohongshu (RED) Product Detail to get details for one product.
  • The preload field is a JSON string, so parse it before you read it.

Pricing

$0.028571 per successful call. Failed calls are not charged.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Xiaohongshu$0.028571 प्रति कॉलJSON
Xiaohongshu$0.028571 प्रति कॉलJSON
Xiaohongshu$0.01 प्रति कॉलJSON
Xiaohongshu$0.01 प्रति कॉलJSON
Xiaohongshu$0.01 प्रति कॉलJSON
Xiaohongshu$0.01 प्रति कॉलJSON

गाइड्स:Best Xiaohongshu API in 2026: Pricing Compared

प्रश्न

FAQ

Xiaohongshu Shop Product Search API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/xiaohongshu/ec/search-products पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Xiaohongshu Shop Product Search API की लागत कितनी है?

$0.028571 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Xiaohongshu Shop Product Search API कौन-से parameters स्वीकार करती है?

आवश्यक: keyword (string)। वैकल्पिक: page (string) और searchId (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Xiaohongshu Shop Product Search API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Xiaohongshu developer account या API key चाहिए?

नहीं। Xiaohongshu Shop Product Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Xiaohongshu API access के लिए आवेदन करने की आवश्यकता नहीं है।