# 小红书商品搜索 | Xiaohongshu product search

**Use case:** 

按关键词搜索小红书商品，导出商品、价格和店铺信息。

## Input

```json
{
  "operation": "search_products",
  "keyword": "露营桌",
  "sort_type": "general",
  "note_type": "all",
  "publish_time_range": "all",
  "has_image": false,
  "max_items": 3,
  "auto_paginate": false
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "empty_page": {
    "label": "Empty page",
    "format": "boolean"
  },
  "query_keyword": {
    "label": "Query keyword",
    "format": "string"
  },
  "sku_id": {
    "label": "Product SKU ID",
    "format": "string"
  },
  "spu_id": {
    "label": "Product SPU ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "description": {
    "label": "Description",
    "format": "string"
  },
  "image_url": {
    "label": "Product image URL",
    "format": "string"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "coupon_price": {
    "label": "Coupon price",
    "format": "number"
  },
  "shop_id": {
    "label": "Shop ID",
    "format": "string"
  },
  "shop_name": {
    "label": "Shop name",
    "format": "string"
  },
  "shop_avatar_url": {
    "label": "Shop avatar URL",
    "format": "string"
  },
  "stock_quantity": {
    "label": "Stock quantity",
    "format": "integer"
  },
  "purchasable": {
    "label": "Purchasable",
    "format": "boolean"
  },
  "sold_count": {
    "label": "Sold count",
    "format": "integer"
  },
  "sales_text": {
    "label": "Sales text",
    "format": "string"
  },
  "page_request_index": {
    "label": "Page request index",
    "format": "integer"
  },
  "page_item_count": {
    "label": "Page item count",
    "format": "integer"
  },
  "page_next_page_token": {
    "label": "Next page token",
    "format": "string"
  },
  "page_has_more": {
    "label": "Has more",
    "format": "boolean"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The 小红书数据 API：笔记搜索与评论 | SocialDataX Xiaohongshu XHS RedNote Actor is ready to run with the inputs already set for "小红书商品搜索 | Xiaohongshu product search". [Sign up or log in](https://console.apify.com/create-task-from-example/4zaRgcUybEvk3AMhk) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "小红书商品搜索 | Xiaohongshu product search" task

The 小红书数据 API：笔记搜索与评论 | SocialDataX Xiaohongshu XHS RedNote Actor will start running based on the input automatically. You can also change all the input fields, like 操作 / operation, 关键词 / keyword, and more, to match your specific use case.

### 3. Receive the "小红书商品搜索 | Xiaohongshu product search" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as operation, item index, empty page, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "小红书商品搜索 | Xiaohongshu product search" task via API](https://apify.com/socialdatax/socialdatax-xhs-data-api.md).

## About this Actor

This example demonstrates how to use [小红书数据 API：笔记搜索与评论 | SocialDataX Xiaohongshu XHS RedNote](https://apify.com/socialdatax/socialdatax-xhs-data-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/socialdatax/socialdatax-xhs-data-api.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/socialdatax/socialdatax-xhs-data-api.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
