# 小红书商品详情 | Xiaohongshu product details

**Use case:** 

通过商品 SKU ID 获取小红书商品详情，导出商品图片、价格和店铺信息。

## Input

```json
{
  "operation": "get_product_detail",
  "keyword": "露营",
  "sort_type": "general",
  "note_type": "all",
  "publish_time_range": "all",
  "sku_id": "691c1de31896c300014f6ea8",
  "has_image": false,
  "max_items": 20,
  "auto_paginate": true
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "query_sku_id": {
    "label": "Query product SKU ID",
    "format": "string"
  },
  "query_url": {
    "label": "Query product URL",
    "format": "string"
  },
  "sku_id": {
    "label": "Product SKU ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "coupon_price": {
    "label": "Coupon price",
    "format": "number"
  },
  "sold_count": {
    "label": "Sold count",
    "format": "integer"
  },
  "sales_text": {
    "label": "Sales text",
    "format": "string"
  },
  "stock_status": {
    "label": "Stock status",
    "format": "integer"
  },
  "shop_id": {
    "label": "Shop ID",
    "format": "string"
  },
  "shop_name": {
    "label": "Shop name",
    "format": "string"
  },
  "shop_avatar_url": {
    "label": "Shop avatar URL",
    "format": "string"
  },
  "main_images": {
    "label": "Main product images",
    "format": "array"
  },
  "detail_images": {
    "label": "Detail images",
    "format": "array"
  },
  "selected_variant": {
    "label": "Selected variant",
    "format": "string"
  },
  "assurances": {
    "label": "Assurances",
    "format": "array"
  },
  "shipping": {
    "label": "Shipping",
    "format": "object"
  },
  "shop_score": {
    "label": "Shop score",
    "format": "string"
  },
  "shop_fans_text": {
    "label": "Shop fans",
    "format": "string"
  },
  "shop_sold_text": {
    "label": "Shop sold",
    "format": "string"
  },
  "specifications": {
    "label": "Specifications",
    "format": "array"
  }
}
```

## 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 details". [Sign up or log in](https://console.apify.com/create-task-from-example/HjsBx1u5ZSqlPZLhC) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "小红书商品详情 | Xiaohongshu product details" 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 details" 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, query product sku id, 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 details" 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`).
