# Rednote xiaohongshu (product details) scraper (`mohamed.k.sirag/rednote-xiaohongshu-product-details-scraper`) Actor

Get product data from Rednote (xiaohongshu). Unofficial API. Scrapes product information including prices, descriptions, graphical details, seller data.
从 Rednote (xiaohongshu) 获取产品数据。非官方 API。抓取产品信息，包括价格、描述、图形细节、卖家数据

- **URL**: https://apify.com/mohamed.k.sirag/rednote-xiaohongshu-product-details-scraper.md
- **Developed by:** [Mohamed Sirag](https://apify.com/mohamed.k.sirag) (community)
- **Categories:** E-commerce, Social media, Automation
- **Stats:** 13 total users, 0 monthly users, 92.6% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

### How to get product details:

Just follow these few steps and you'll get your data in few seconds.

- get the url of the product you want, example

```json
{
   "url" : "https://www.xiaohongshu.com/goods-detail/"
}
```

- Run the actor
- Output example

```json
[{
  "item": {
    "name": "SEN X WANG · 美式百搭宽檐字母刺绣棒球帽男女同款显白2024夏季新款软顶显脸小 · 奶杏白 加大码（59-64cm）",
    "images": [
      "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nq6rs774705opl1b5m5setq82lmk0?imageView2/2/w/1082/format/jpg/q/90",
      "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nq6qiin4005opl1b5m5set61bkf9o?imageView2/2/w/1082/format/jpg/q/90",
      "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nq6ql676005opl1b5m5setd6a0mr0?imageView2/2/w/1082/format/jpg/q/90",
      "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nq6r4u7ce05opl1b5m5setaccrah8?imageView2/2/w/1082/format/jpg/q/90",
      "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nq6rk270005opl1b5m5setbd7o3gg?imageView2/2/w/1082/format/jpg/q/90"
    ],
    "video": {
      "url": "",
      "thumbnail": ""
    },
    "sold": "已售2.7万+",
    "sold_num": 2700,
    "price": {
      "price": 47.8,
      "deal_price": 35.8,
      "count_down": {
        "text": "距离结束",
        "time": 196932000,
        "icon": "https://qimg.xiaohongshu.com/odin/1041017g31ec2g9ch0k06ensgcg276000000001jmgpaje"
      },
      "background_image": "https://qimg.xiaohongshu.com/odin/1041017g31ec2g04lgm06ensgcg276000000001n6tdo46"
    }
  },
  "seller_data": {
    "name": "SEN X WANG的店",
    "logo": "https://sns-avatar-qc.xhscdn.com/avatar/f73e0a1f-2342-308e-8de0-145af8cff89a?imageView2/2/w/120/format/jpg",
    "reputation": "4.67",
    "fans": "粉丝数 6553",
    "fans_num": 6553,
    "sales": "已售 3.4万",
    "sales_num": 3400,
    "id": "6605365534a63800017756fc"
  },
  "shipping": {
    "fee": "包邮",
    "location": "河北石家庄",
    "shipment_icon": null,
    "time": {
      "text": "48小时内发货",
      "tag": "现货"
    }
  },
  "graphic_details": [
    "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nqcma9n4005opl1b5m5setc8dm2ho?imageView2/2/w/1082/format/jpg/q/90",
    "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nqcmbm7c005opl1b5m5setkd4c778?imageView2/2/w/1082/format/jpg/q/90",
    "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nqcmd1n2005opl1b5m5set4ktrfio?imageView2/2/w/1082/format/jpg/q/90",
    "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nqcmrmn2005opl1b5m5set3ohk1jo?imageView2/2/w/1082/format/jpg/q/90",
    "https://mall-i9.xhscdn.com/arkgoods/1040g0o0311nqcn2b76005opl1b5m5set25pnj9g?imageView2/2/w/1082/format/jpg/q/90"
  ],
  "specifications": {
    "title": "规格参数",
    "list": [
      {
        "name": "商品名称",
        "value": "美式百搭宽檐字母刺绣棒球帽男女同款显白2024夏季新款软顶显脸小"
      },
      {
        "name": "品牌",
        "value": "SEN X WANG"
      },
      {
        "name": "适用性别",
        "value": "通用"
      },
      {
        "name": "帽子类型",
        "value": "棒球帽"
      },
      {
        "name": "材质",
        "value": "棉"
      },
      {
        "name": "风格",
        "value": "ins风,原创,百搭"
      },
      {
        "name": "适用季节",
        "value": "四季,夏,秋"
      },
      {
        "name": "适用对象",
        "value": "情侣,青年,中年"
      },
      {
        "name": "帽顶款式",
        "value": "圆顶"
      },
      {
        "name": "服装款式细节",
        "value": "绣花,刺绣,磨毛"
      },
      {
        "name": "适用年龄",
        "value": "12-18岁,18-25岁,25-30岁"
      },
      {
        "name": "帽檐款式",
        "value": "平檐"
      },
      {
        "name": "适用场景",
        "value": "出游,逛街,运动"
      },
      {
        "name": "上市年份",
        "value": "2024年夏"
      }
    ]
  },
  "price_description": {
    "title": "价格说明",
    "list": [
      {
        "name": "划线价格",
        "value": "指商品的专柜价、吊牌价、正品零售价、厂商指导价或该商品的曾经展示过的销售价等，并非原价，仅供参考。"
      },
      {
        "name": "未划线价格",
        "value": "指商品的销售价，是您最终决定是否购买商品的依据。"
      },
      {
        "name": "折扣",
        "value": "页面显示的“折扣”为非划线价格与划线价格的对比，该对比值仅供您参考，不作为计算非划线价格的依据。"
      }
    ]
  }
}]
```

- Download the data from the Dataset tab

# Actor input Schema

## `url` (type: `string`):

The URL of website you want to get the data from.

## Actor input object example

```json
{
  "url": "https://www.xiaohongshu.com/goods-detail/64156cc6a510be00019423a8?xsec_token=XBSW25kgirD_ywUGrHsIEIivZN_zXKGVOlbgHcLvluh5I=&xsec_source=app_share&instation_link=xhsdiscover%3A%2F%2Fgoods_detail%2F64156cc6a510be00019423a8%3Ftrade_ext%3DeyJjaGFubmVsSW5mbyI6bnVsbCwiZHNUb2tlbkluZm8iOm51bGwsInNoYXJlTGluayI6Imh0dHBzOi8vd3d3LnhpYW9ob25nc2h1LmNvbS9nb29kcy1kZXRhaWwvNjQxNTZjYzZhNTEwYmUwMDAxOTQyM2E4P2FwcHVpZD02N2E5OWJhYzAwMDAwMDAwMGQwMDgyMDMiLCJsaXZlSW5mbyI6bnVsbCwic2hvcEluZm8iOm51bGwsImdvb2RzTm90ZUluZm8iOm51bGwsImNoYXRJbmZvIjpudWxsLCJzZWFyY2hJbmZvIjpudWxsLCJwcmVmZXIiOm51bGx9%26rn%3Dtrue&xhsshare=CopyLink&appuid=67a99bac000000000d008203&apptime=1741450255&share_id=28cb6e3f2fed47a389debd8a0803e6aa"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url": "https://www.xiaohongshu.com/goods-detail/64156cc6a510be00019423a8?xsec_token=XBSW25kgirD_ywUGrHsIEIivZN_zXKGVOlbgHcLvluh5I=&xsec_source=app_share&instation_link=xhsdiscover%3A%2F%2Fgoods_detail%2F64156cc6a510be00019423a8%3Ftrade_ext%3DeyJjaGFubmVsSW5mbyI6bnVsbCwiZHNUb2tlbkluZm8iOm51bGwsInNoYXJlTGluayI6Imh0dHBzOi8vd3d3LnhpYW9ob25nc2h1LmNvbS9nb29kcy1kZXRhaWwvNjQxNTZjYzZhNTEwYmUwMDAxOTQyM2E4P2FwcHVpZD02N2E5OWJhYzAwMDAwMDAwMGQwMDgyMDMiLCJsaXZlSW5mbyI6bnVsbCwic2hvcEluZm8iOm51bGwsImdvb2RzTm90ZUluZm8iOm51bGwsImNoYXRJbmZvIjpudWxsLCJzZWFyY2hJbmZvIjpudWxsLCJwcmVmZXIiOm51bGx9%26rn%3Dtrue&xhsshare=CopyLink&appuid=67a99bac000000000d008203&apptime=1741450255&share_id=28cb6e3f2fed47a389debd8a0803e6aa"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mohamed.k.sirag/rednote-xiaohongshu-product-details-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "url": "https://www.xiaohongshu.com/goods-detail/64156cc6a510be00019423a8?xsec_token=XBSW25kgirD_ywUGrHsIEIivZN_zXKGVOlbgHcLvluh5I=&xsec_source=app_share&instation_link=xhsdiscover%3A%2F%2Fgoods_detail%2F64156cc6a510be00019423a8%3Ftrade_ext%3DeyJjaGFubmVsSW5mbyI6bnVsbCwiZHNUb2tlbkluZm8iOm51bGwsInNoYXJlTGluayI6Imh0dHBzOi8vd3d3LnhpYW9ob25nc2h1LmNvbS9nb29kcy1kZXRhaWwvNjQxNTZjYzZhNTEwYmUwMDAxOTQyM2E4P2FwcHVpZD02N2E5OWJhYzAwMDAwMDAwMGQwMDgyMDMiLCJsaXZlSW5mbyI6bnVsbCwic2hvcEluZm8iOm51bGwsImdvb2RzTm90ZUluZm8iOm51bGwsImNoYXRJbmZvIjpudWxsLCJzZWFyY2hJbmZvIjpudWxsLCJwcmVmZXIiOm51bGx9%26rn%3Dtrue&xhsshare=CopyLink&appuid=67a99bac000000000d008203&apptime=1741450255&share_id=28cb6e3f2fed47a389debd8a0803e6aa" }

# Run the Actor and wait for it to finish
run = client.actor("mohamed.k.sirag/rednote-xiaohongshu-product-details-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://www.xiaohongshu.com/goods-detail/64156cc6a510be00019423a8?xsec_token=XBSW25kgirD_ywUGrHsIEIivZN_zXKGVOlbgHcLvluh5I=&xsec_source=app_share&instation_link=xhsdiscover%3A%2F%2Fgoods_detail%2F64156cc6a510be00019423a8%3Ftrade_ext%3DeyJjaGFubmVsSW5mbyI6bnVsbCwiZHNUb2tlbkluZm8iOm51bGwsInNoYXJlTGluayI6Imh0dHBzOi8vd3d3LnhpYW9ob25nc2h1LmNvbS9nb29kcy1kZXRhaWwvNjQxNTZjYzZhNTEwYmUwMDAxOTQyM2E4P2FwcHVpZD02N2E5OWJhYzAwMDAwMDAwMGQwMDgyMDMiLCJsaXZlSW5mbyI6bnVsbCwic2hvcEluZm8iOm51bGwsImdvb2RzTm90ZUluZm8iOm51bGwsImNoYXRJbmZvIjpudWxsLCJzZWFyY2hJbmZvIjpudWxsLCJwcmVmZXIiOm51bGx9%26rn%3Dtrue&xhsshare=CopyLink&appuid=67a99bac000000000d008203&apptime=1741450255&share_id=28cb6e3f2fed47a389debd8a0803e6aa"
}' |
apify call mohamed.k.sirag/rednote-xiaohongshu-product-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mohamed.k.sirag/rednote-xiaohongshu-product-details-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RFyRhVZ3l30hl9UzT/builds/buqFjJwIr46cxl1S1/openapi.json
