# Xiaohongshu Search Results Scraper (by URL)

Scrape Xiaohongshu (Red Note) post title, image, post URL, author, and author URL from xiaohongshu.com by search result URL.

- Template page: [https://www.octoparse.com/template/xiaohongshu-search-results-scraper](https://www.octoparse.com/template/xiaohongshu-search-results-scraper)
- Categories: Social Media
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from search-results pages.

## Output

The current workflow extracts 7 fields, including `Author`, `Author_URL`, `Datetime`, `Details_page_URL`, `Image_URL`, `Like_count`, `Title`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Xiaohongshu Search Result URLs (up to 10,000), Pre-Login and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Xiaohongshu Search Result URLs (up to 10,000)

Required. Please enter the Xiaohongshu search results page (test1) Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=500000.

### Pre-Login

Required. TEST where

## How to Use

## Xiaohongshu Search Results Scraper (by URL)

This template collects search-result records with Title, Image URL, Details page URL, Author URL, Datetime, Author, and Like count.

### Input

- **Xiaohongshu Search Result URLs** (Required) — Xiaohongshu Search Result URLs. Up to 10,000 entries per run.
- **Pre-Login** (Required) — Enable pre-login before collecting Xiaohongshu search results.

### Output

The following fields are returned:

- `Title`
- `Image_URL`
- `Details_page_URL`
- `Author`
- `Datetime`
- `Author_URL`
- `Like_count`

### How to Use

1. Open Xiaohongshu Search Results Scraper (by URL) and click **Try it!**.
2. Complete **Xiaohongshu Search Result URLs** and **Pre-Login** using the formats and limits shown in the Input section.
3. Choose a local or cloud run in Octoparse and start the task.
4. Review fields such as `Title`, `Image_URL`, and `Datetime`, then export the rows in the format you need.

### Tips

- Test one representative value in **Xiaohongshu Search Result URLs** before submitting a large batch to Xiaohongshu Search Results Scraper (by URL).
- Keep `Details_page_URL` in the export so every row can be traced to its originating input or page.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Xiaohongshu Search Result Scraper (by keyword)](https://www.octoparse.com/template/xiaohongshu-search-result-scraper-by-keyword)
- [Bing Search Results Scraper](https://www.octoparse.com/template/bing-search-results-scraper)
- [Ecosia Search Results Scraper](https://www.octoparse.com/template/ecosia-search-results-scraper)
- [Bic Camera Search Results Scraper](https://www.octoparse.com/template/bic-camera-search-results-scraper)
- [IPROS Company Search Results Scraper](https://www.octoparse.com/template/ipros-co)

## Input Schema

```json
{
  "title": "Xiaohongshu Search Results Scraper (by URL) input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "xiaohongshu_Search_Result_URLs": {
      "title": "Xiaohongshu Search Result URLs (up to 10,000)",
      "description": "Please enter the Xiaohongshu search results page (test1)",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 500000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "pre-Login": {
      "title": "Pre-Login",
      "description": "TEST where",
      "type": "string",
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "xiaohongshu_Search_Result_URLs",
    "pre-Login"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "pre-Login": "acw_tc=0a00dd8917440655970828241ea708cca4432ac8dedf0423f5c3a338f22348;abRequestId=cd1f1363-3ccf-545d-9102-d8ab48617094;webBuild=4.62.1;xsecappid=xhs-pc-web;loadts=1744065599343;a1=19612691770jyk8pxwshxjlnv3se1xacquk0gyj6f30000134378;webId=3b4036ed9c51286c0115beb2af8a7722;websectiga=8886be45f388a1ee7bf611a69f3e174cae48f1ea02c0f8ec3256031b8be9c7ee;sec_poison_id=11a33778-f19a-4f15-a455-65aa99513960;gid=yjKyJKjq2yASyjKyJKjyW7vVW8VvTYUCEMxCTKiV1IhqM8q8dyC0Sk888yq4qWY8jqi4D8S2;web_session=0400698d6325034b2e5e301cc1354bb7c72412;unread={%22ub%22:%2267f07519000000000900ed94%22%2C%22ue%22:%2267e925a3000000001201c1e8%22%2C%22uc%22:23}",
  "xiaohongshu_Search_Result_URLs": [
    "https://www.xiaohongshu.com/user/profile/6194f7a8000000001000c30a?xsec_token=ABdSmdasqGnwA3iWsbXKEWX5YqJ5rNeUNt9HzLTu9opqU=&xsec_source=pc_feed"
  ]
}
```

Example 2

```json
{
  "pre-Login": "acw_tc=0a00d2b617417496763636444e6b48b7a4a4459ab3660ddfddf62f718d7c34;abRequestId=524175dc-bcfa-53a4-b7db-708910735594;webBuild=4.59.0;xsecappid=xhs-pc-web;loadts=1741749675804;a1=195885ee71cuy6a2juk7d86cwe4bzzfqgyoolsv5430000346574;webId=6b691eff52ac3c9e3b6e188625371807;websectiga=7750c37de43b7be9de8ed9ff8ea0e576519e8cd2157322eb972ecb429a7735d4;sec_poison_id=1dcd92f0-1ef8-4b07-a37f-7fc5e94e04d5;gid=yj2YY2i8KDk4yj2YY2ddWvMhyS7vK0JV7TWfl24YKSEd4lq8DuuiA1888q4K2W488DYi4SKd;web_session=040069b46eedba5b525fd5b5e5354bf9e66d7e;unread={%22ub%22:%2267c44cdd000000001203e306%22%2C%22ue%22:%2267ce9260000000001203f173%22%2C%22uc%22:22}",
  "xiaohongshu_Search_Result_URLs": [
    "https://www.xiaohongshu.com/explore"
  ]
}
```

Example 3

```json
{
  "pre-Login": "acw_tc=0a00d2b617417496763636444e6b48b7a4a4459ab3660ddfddf62f718d7c34;abRequestId=524175dc-bcfa-53a4-b7db-708910735594;webBuild=4.59.0;xsecappid=xhs-pc-web;loadts=1741749675804;a1=195885ee71cuy6a2juk7d86cwe4bzzfqgyoolsv5430000346574;webId=6b691eff52ac3c9e3b6e188625371807;websectiga=7750c37de43b7be9de8ed9ff8ea0e576519e8cd2157322eb972ecb429a7735d4;sec_poison_id=1dcd92f0-1ef8-4b07-a37f-7fc5e94e04d5;gid=yj2YY2i8KDk4yj2YY2ddWvMhyS7vK0JV7TWfl24YKSEd4lq8DuuiA1888q4K2W488DYi4SKd;web_session=040069b46eedba5b525fd5b5e5354bf9e66d7e;unread={%22ub%22:%2267c44cdd000000001203e306%22%2C%22ue%22:%2267ce9260000000001203f173%22%2C%22uc%22:22}",
  "xiaohongshu_Search_Result_URLs": [
    "https://www.xiaohongshu.com/explore"
  ]
}
```

Example 4

```json
{
  "pre-Login": "acw_tc=0a00d2b617417496763636444e6b48b7a4a4459ab3660ddfddf62f718d7c34;abRequestId=524175dc-bcfa-53a4-b7db-708910735594;webBuild=4.59.0;xsecappid=xhs-pc-web;loadts=1741749675804;a1=195885ee71cuy6a2juk7d86cwe4bzzfqgyoolsv5430000346574;webId=6b691eff52ac3c9e3b6e188625371807;websectiga=7750c37de43b7be9de8ed9ff8ea0e576519e8cd2157322eb972ecb429a7735d4;sec_poison_id=1dcd92f0-1ef8-4b07-a37f-7fc5e94e04d5;gid=yj2YY2i8KDk4yj2YY2ddWvMhyS7vK0JV7TWfl24YKSEd4lq8DuuiA1888q4K2W488DYi4SKd;web_session=040069b46eedba5b525fd5b5e5354bf9e66d7e;unread={%22ub%22:%2267c44cdd000000001203e306%22%2C%22ue%22:%2267ce9260000000001203f173%22%2C%22uc%22:22}",
  "xiaohongshu_Search_Result_URLs": [
    "https://www.xiaohongshu.com/explore"
  ]
}
```

Example 5

```json
{
  "pre-Login": "acw_tc=0a00d2b617417496763636444e6b48b7a4a4459ab3660ddfddf62f718d7c34;abRequestId=524175dc-bcfa-53a4-b7db-708910735594;webBuild=4.59.0;xsecappid=xhs-pc-web;loadts=1741749675804;a1=195885ee71cuy6a2juk7d86cwe4bzzfqgyoolsv5430000346574;webId=6b691eff52ac3c9e3b6e188625371807;websectiga=7750c37de43b7be9de8ed9ff8ea0e576519e8cd2157322eb972ecb429a7735d4;sec_poison_id=1dcd92f0-1ef8-4b07-a37f-7fc5e94e04d5;gid=yj2YY2i8KDk4yj2YY2ddWvMhyS7vK0JV7TWfl24YKSEd4lq8DuuiA1888q4K2W488DYi4SKd;web_session=040069b46eedba5b525fd5b5e5354bf9e66d7e;unread={%22ub%22:%2267c44cdd000000001203e306%22%2C%22ue%22:%2267ce9260000000001203f173%22%2C%22uc%22:22}",
  "xiaohongshu_Search_Result_URLs": [
    "https://www.xiaohongshu.com/explore"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Author": {
      "type": "string",
      "description": ""
    },
    "Author_URL": {
      "type": "string",
      "description": ""
    },
    "Datetime": {
      "type": "string",
      "description": ""
    },
    "Details_page_URL": {
      "type": "string",
      "description": ""
    },
    "Image_URL": {
      "type": "string",
      "description": ""
    },
    "Like_count": {
      "type": "string",
      "description": ""
    },
    "Title": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Xiaohongshu Search Results Scraper (by URL) output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Author": "胡北北的萝",
  "Author_URL": "https://www.rednote.com/user/profile/6194f7a8000000001000c30a?channel_type=web_user_page&parent_page_channel_type=web_user_board&xsec_token=&xsec_source=pc_note",
  "Datetime": "",
  "Details_page_URL": "https://www.rednote.com/user/profile/6194f7a8000000001000c30a/?xsec_token=AB1n0j8UV-YVcjc6fQwcCEAZYalVCpk68YwPIhp186Ves=&xsec_source=pc_user",
  "Image_URL": "https://sns-web-i10.rednotecdn.com/202611141235/514c0799b41ee382d5f1d75caa4098ce/notes_pre_post/1040g3k8327gt1u3778cg5ockuuk41goaqtlvi1g!nc_n_webp_mw_1",
  "Like_count": "87",
  "Title": "170/90｜livephoto 甜白"
}
```

Example 2

```json
{
  "Author": "橙柿互动",
  "Author_URL": "https://www.xiaohongshu.com/user/profile/5c3ae47700000000060399c5?channel_type=explore_feed&parent_page_channel_type=web_profile_board&xsec_token=ABkWTDhVFLojACEFwtF-1QagB-DthJ39CxXOILGhefBdU=&xsec_source=pc_feed",
  "Datetime": "",
  "Details_page_URL": "https://www.xiaohongshu.com/explore/6a87d9f7000000001f01d4ef?xsec_token=ABzp0Ud9Y6R-rXTfwiOnqYtzbtJO554ZqrywBkV5Qw-Lg=&xsec_source=",
  "Image_URL": "https://sns-webpic-qc.xhscdn.com/202611041427/c2b616772ff1ae212a608385943030ac/spectrum/1040g34o3244bipeagm105n1qshrhn6e5f5jpc1g!nc_n_webp_mw_1",
  "Like_count": "4766",
  "Title": "台风“美莎克”致广西159人遇难、10人失联"
}
```

Example 3

```json
{
  "Author": "黑狼（华盛)",
  "Author_URL": "https://www.xiaohongshu.com/user/profile/5b4687554eacab7a9d90f580?channel_type=explore_feed&parent_page_channel_type=web_profile_board&xsec_token=AB3aNvTIZP4L8GZscWMIBoaSBMJ-dX1Gf2qx329ZV9TEQ=&xsec_source=pc_feed",
  "Datetime": "",
  "Details_page_URL": "https://www.xiaohongshu.com/explore/6abb3fcf000000001301897a?xsec_token=ABZM4oeiqvD_m_7emcxEVhdFhSQfK491sGtmaNYXgMxls=&xsec_source=",
  "Image_URL": "https://sns-webpic-qc.xhscdn.com/202611041417/e688fefc163ba52bf86ad70a5fb9ee77/1040g2sg325mhmejlkadg4a72js3lbtc0jiumneo!nc_n_webp_mw_1",
  "Like_count": "3.2万",
  "Title": "谁能想到这支笔这么锋利啊？"
}
```

Example 4

```json
{
  "Author": "永利昌黄金",
  "Author_URL": "https://www.xiaohongshu.com/user/profile/5b08d63611be1030bde883e2?channel_type=explore_feed&parent_page_channel_type=web_profile_board&xsec_token=AB9x3RO2kvxq2BxUbCBVSPodOSKQVstT7QsF41Qncj7xw=&xsec_source=pc_feed",
  "Datetime": "",
  "Details_page_URL": "https://www.xiaohongshu.com/explore/6a866c5e000000000c0220c3?xsec_token=ABWit6WHzmXnI8SuCz7ljsHbnQCPnpIqE6pOGxv7umhWc=&xsec_source=",
  "Image_URL": "https://sns-webpic-qc.xhscdn.com/202611041312/7cdeff4ec39792d59213d40668713ebb/spectrum/1040g34o3242ut8son2104a5lm5b3d0v2jbrsdk8!nc_n_webp_mw_1",
  "Like_count": "3万",
  "Title": "打金店一周能从客人手里搓下来多少金子？永利昌黄金 黄金首饰 黄金加工 黄金 惠州"
}
```

Example 5

```json
{
  "Author": "可可不可以",
  "Author_URL": "https://www.xiaohongshu.com/user/profile/65962c5b000000002001e721?channel_type=explore_feed&parent_page_channel_type=web_profile_board&xsec_token=ABDYWVEOGaXoF3MmUycCjPKzoy9fDFZFWIZDeyLqzlHhI=&xsec_source=pc_feed",
  "Datetime": "",
  "Details_page_URL": "https://www.xiaohongshu.com/explore/6ac71626000000001a032951?xsec_token=ABnkerywWkkbrRjcWYslCiSMFapKB4bJ2v7qznlVuqNpI=&xsec_source=",
  "Image_URL": "https://sns-webpic-qc.xhscdn.com/202611041310/e7b8f3750c39679c4ae2c28edd801b26/notes_pre_post/1040g3k03263l2277l60g5pcm5hdo3pp12lsndc8!nc_n_webp_mw_1",
  "Like_count": "3.9万",
  "Title": "我的大结果也来了 "
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "xiaohongshu-search-results-scraper",
  "taskName": "Xiaohongshu Search Results Scraper (by URL)",
  "parameters": "{\"pre-Login\":\"acw_tc=0a00dd8917440655970828241ea708cca4432ac8dedf0423f5c3a338f22348;abRequestId=cd1f1363-3ccf-545d-9102-d8ab48617094;webBuild=4.62.1;xsecappid=xhs-pc-web;loadts=1744065599343;a1=19612691770jyk8pxwshxjlnv3se1xacquk0gyj6f30000134378;webId=3b4036ed9c51286c0115beb2af8a7722;websectiga=8886be45f388a1ee7bf611a69f3e174cae48f1ea02c0f8ec3256031b8be9c7ee;sec_poison_id=11a33778-f19a-4f15-a455-65aa99513960;gid=yjKyJKjq2yASyjKyJKjyW7vVW8VvTYUCEMxCTKiV1IhqM8q8dyC0Sk888yq4qWY8jqi4D8S2;web_session=0400698d6325034b2e5e301cc1354bb7c72412;unread={%22ub%22:%2267f07519000000000900ed94%22%2C%22ue%22:%2267e925a3000000001201c1e8%22%2C%22uc%22:23}\",\"xiaohongshu_Search_Result_URLs\":[\"https://www.xiaohongshu.com/user/profile/6194f7a8000000001000c30a?xsec_token=ABdSmdasqGnwA3iWsbXKEWX5YqJ5rNeUNt9HzLTu9opqU=&xsec_source=pc_feed\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"pre-Login\":\"acw_tc=0a00dd8917440655970828241ea708cca4432ac8dedf0423f5c3a338f22348;abRequestId=cd1f1363-3ccf-545d-9102-d8ab48617094;webBuild=4.62.1;xsecappid=xhs-pc-web;loadts=1744065599343;a1=19612691770jyk8pxwshxjlnv3se1xacquk0gyj6f30000134378;webId=3b4036ed9c51286c0115beb2af8a7722;websectiga=8886be45f388a1ee7bf611a69f3e174cae48f1ea02c0f8ec3256031b8be9c7ee;sec_poison_id=11a33778-f19a-4f15-a455-65aa99513960;gid=yjKyJKjq2yASyjKyJKjyW7vVW8VvTYUCEMxCTKiV1IhqM8q8dyC0Sk888yq4qWY8jqi4D8S2;web_session=0400698d6325034b2e5e301cc1354bb7c72412;unread={%22ub%22:%2267f07519000000000900ed94%22%2C%22ue%22:%2267e925a3000000001201c1e8%22%2C%22uc%22:23}\",\"xiaohongshu_Search_Result_URLs\":[\"https://www.xiaohongshu.com/user/profile/6194f7a8000000001000c30a?xsec_token=ABdSmdasqGnwA3iWsbXKEWX5YqJ5rNeUNt9HzLTu9opqU=&xsec_source=pc_feed\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "xiaohongshu-search-results-scraper",
        "taskName": "Xiaohongshu Search Results Scraper (by URL)",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "xiaohongshu-search-results-scraper",
  "taskName": "Xiaohongshu Search Results Scraper (by URL)",
  "parameters": "{\"pre-Login\":\"acw_tc=0a00dd8917440655970828241ea708cca4432ac8dedf0423f5c3a338f22348;abRequestId=cd1f1363-3ccf-545d-9102-d8ab48617094;webBuild=4.62.1;xsecappid=xhs-pc-web;loadts=1744065599343;a1=19612691770jyk8pxwshxjlnv3se1xacquk0gyj6f30000134378;webId=3b4036ed9c51286c0115beb2af8a7722;websectiga=8886be45f388a1ee7bf611a69f3e174cae48f1ea02c0f8ec3256031b8be9c7ee;sec_poison_id=11a33778-f19a-4f15-a455-65aa99513960;gid=yjKyJKjq2yASyjKyJKjyW7vVW8VvTYUCEMxCTKiV1IhqM8q8dyC0Sk888yq4qWY8jqi4D8S2;web_session=0400698d6325034b2e5e301cc1354bb7c72412;unread={%22ub%22:%2267f07519000000000900ed94%22%2C%22ue%22:%2267e925a3000000001201c1e8%22%2C%22uc%22:23}\",\"xiaohongshu_Search_Result_URLs\":[\"https://www.xiaohongshu.com/user/profile/6194f7a8000000001000c30a?xsec_token=ABdSmdasqGnwA3iWsbXKEWX5YqJ5rNeUNt9HzLTu9opqU=&xsec_source=pc_feed\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `xiaohongshu-search-results-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/xiaohongshu-search-results-scraper.json)
- [Manifest](https://www.octoparse.com/templates/xiaohongshu-search-results-scraper-manifest.json)
