# Organize RedNote comments and replies

Organize RedNote comments and replies. Follow concrete contracts, examples and reviewable steps using Xiaohongshu (RedNote).

Canonical page: https://datanavoapi.com/en/guides/xiaohongshu-note-comments/

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## Task goal

Organize RedNote comments and replies. Follow concrete contracts, examples and reviewable steps using Xiaohongshu (RedNote).

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## Inputs, goal and deliverable

Organize RedNote comments and replies. Follow concrete contracts, examples and reviewable steps using Xiaohongshu (RedNote).

Inputs consist of explicit platforms, keywords or object identifiers. Preserve the samples, request IDs, classifications and unresolved questions in the deliverable. The task does not schedule itself or paginate indefinitely.

## Step-by-step plan

| Step | Capability | Input | Output |

| --- | --- | --- | --- |

| 1 | xiaohongshu.notes.get | id | post / item |

| 2 | xiaohongshu.notes.comments.list | sort, id | comment / items |

| 3 | xiaohongshu.comments.replies.list | id, post_id | comment / items |

- [Xiaohongshu note detail](https://datanavoapi.com/en/apis/xiaohongshu/notes/get/)
- [Xiaohongshu note comments](https://datanavoapi.com/en/apis/xiaohongshu/notes/comments/list/)
- [Xiaohongshu comment replies](https://datanavoapi.com/en/apis/xiaohongshu/comments/replies/list/)

## Reusable task prompt

Ask the client to present a plan before you confirm each execution. This prompt bounds the sample; it does not call an external service for you.

```text
Goal: Organize RedNote comments and replies
Use only DataNavoAPI local demo/simulated mode.
Planned capabilities: xiaohongshu.notes.get → xiaohongshu.notes.comments.list → xiaohongshu.comments.replies.list
Describe inputs and output fields and propose a bounded request count first.
Execute explicitly, retaining request IDs. Stop on failures or unknown outcomes.
Return a table, missing fields and sampling limits; never present fictional samples as market facts.
```

## Plan, run and export

This bounded example has 3 steps. Successful customer simulation costs 6 TEST; anonymous demo costs zero. Provide each required identifier before generating a fixed plan; search results do not expand the request list automatically.

Use data.items[].id for the matching platform and object detail, account IDs for account content and comment IDs for replies. Check object types before reusing an ID. Fixture IDs do not establish a real relationship. The workbench exports per-step JSON and source-labelled CSV.

| Workbench field | Meaning | Example |

| --- | --- | --- |

| step1_id | 步骤 1 · id | 6ac76250000000000a021233 |

| step2_id | 步骤 2 · id | 6a9c5884000000002b002d95 |

| step3_id | 步骤 3 · id | 6a9c5c160000000015022a5c |

| step3_post_id | 步骤 3 · post_id | 6a9c5884000000002b002d95 |

```json
{
  "schemaVersion": 1,
  "templateId": "guide-xiaohongshu-note-comments",
  "runId": "00000000-0000-4000-8000-000000000001",
  "inputs": {
    "step1_id": "6ac76250000000000a021233",
    "step2_id": "6a9c5884000000002b002d95",
    "step3_id": "6a9c5c160000000015022a5c",
    "step3_post_id": "6a9c5884000000002b002d95"
  },
  "maxTotalCredits": 6,
  "estimatedCredits": 6,
  "priceVersion": "test-credit-v1",
  "steps": [
    {
      "id": "step-1",
      "title": "获取笔记详情",
      "capability": "xiaohongshu.notes.get",
      "params": {
        "id": "6ac76250000000000a021233"
      },
      "maxCredits": 2,
      "idempotencyKey": "wf:00000000-0000-4000-8000-000000000001:step-1"
    },
    {
      "id": "step-2",
      "title": "获取笔记评论",
      "capability": "xiaohongshu.notes.comments.list",
      "params": {
        "id": "6a9c5884000000002b002d95"
      },
      "maxCredits": 2,
      "idempotencyKey": "wf:00000000-0000-4000-8000-000000000001:step-2"
    },
    {
      "id": "step-3",
      "title": "小红书评论回复",
      "capability": "xiaohongshu.comments.replies.list",
      "params": {
        "id": "6a9c5c160000000015022a5c",
        "post_id": "6a9c5884000000002b002d95"
      },
      "maxCredits": 2,
      "idempotencyKey": "wf:00000000-0000-4000-8000-000000000001:step-3"
    }
  ]
}
```

- [Open this task in the workbench](https://datanavoapi.com/tools/workflow-runner/?template=guide-xiaohongshu-note-comments)
- [Download Skill instructions](https://datanavoapi.com/downloads/skills/guide-xiaohongshu-note-comments.md)

## Review and stop conditions

- Each conclusion links back to a sample and request ID.
- Pagination stops at the agreed bound.
- Missing fields remain missing rather than being invented by the model.
- External writes, scheduled monitoring and automatic top-ups are not enabled by this workflow.

## Python bounded-task example

By default this prints the complete plan without network access. Add --execute-demo to run these fixed samples and export source-labelled JSON. Any failure stops execution; no automatic paging or request expansion occurs.

```python
import json
import sys
from urllib.request import ProxyHandler, Request, build_opener

steps = json.loads("[{\"capability\":\"xiaohongshu.notes.get\",\"method\":\"GET\",\"params\":{\"id\":\"6ac76250000000000a021233\"}},{\"capability\":\"xiaohongshu.notes.comments.list\",\"method\":\"GET\",\"params\":{\"id\":\"6a9c5884000000002b002d95\"}},{\"capability\":\"xiaohongshu.comments.replies.list\",\"method\":\"GET\",\"params\":{\"id\":\"6a9c5c160000000015022a5c\",\"post_id\":\"6a9c5884000000002b002d95\"}}]")
# Preview only by default. Run with --execute-demo to request this fixed demo sample.
print(json.dumps(steps, ensure_ascii=False, indent=2))
if sys.argv[1:] != ["--execute-demo"]:
    raise SystemExit("Preview only. No request was sent.")
opener = build_opener(ProxyHandler({}))
results = []
for step in steps:
    request = Request("https://datanavoapi.com/api/atlas-demo",
        data=json.dumps(step).encode(), method="POST",
        headers={"Content-Type": "application/json", "Origin": "https://datanavoapi.com"})
    with opener.open(request, timeout=10) as response:
        result = json.load(response)
    if result.get("meta", {}).get("mode") != "demo" or result.get("meta", {}).get("billing", {}).get("charged"):
        raise RuntimeError("Unexpected response; stop without retrying")
    results.append({"capability": step["capability"], "response": result})
# No fan-out, automatic paging or retries. Export retains each source contract.
with open("datanavo-task-results.json", "w", encoding="utf-8") as output:
    json.dump(results, output, ensure_ascii=False, indent=2)
print("Saved datanavo-task-results.json")
```

## Related pages

- [Xiaohongshu note detail](https://datanavoapi.com/en/apis/xiaohongshu/notes/get/)
- [Xiaohongshu note comments](https://datanavoapi.com/en/apis/xiaohongshu/notes/comments/list/)
- [Xiaohongshu comment replies](https://datanavoapi.com/en/apis/xiaohongshu/comments/replies/list/)
- [Xiaohongshu (RedNote) APIs](https://datanavoapi.com/en/apis/xiaohongshu/)
- [Xiaohongshu (RedNote) MCP](https://datanavoapi.com/en/mcp/xiaohongshu/)
- [Post fields](https://datanavoapi.com/en/docs/objects/post/)
- [How should I evaluate a RedNote data API?](https://datanavoapi.com/en/answers/best-xiaohongshu-data-api/)
- [How can ChatGPT access RedNote notes?](https://datanavoapi.com/en/answers/can-chatgpt-read-xiaohongshu/)
- [How can coding assistants work with RedNote data?](https://datanavoapi.com/en/answers/claude-code-cursor-codex-read-xiaohongshu/)
- [How do I organize RedNote note metrics after a campaign?](https://datanavoapi.com/en/answers/collect-xiaohongshu-note-metrics-after-campaign/)

[中文](https://datanavoapi.com/guides/xiaohongshu-note-comments/)
