# 小红书评论回复 API | Xiaohongshu XHS comment replies

**Use case:** 

导出小红书 / Xiaohongshu / XHS / RedNote 单篇笔记下指定一级评论的二级评论回复，使用评论列表 Dataset 中的 note_id 和 comment_id，输出扁平化 Dataset，适合 CSV、Excel、JSON 和 API 工作流。

## Input

```json
{
  "operation": "get_note_sub_comments",
  "keyword": "露营",
  "sort_type": "general",
  "note_type": "all",
  "publish_time_range": "all",
  "note_id": "6a3688f500000002110195ec",
  "comment_id": "6a37634b0000000029037662",
  "max_items": 20,
  "auto_paginate": true
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "query_note_id": {
    "label": "Query note ID",
    "format": "string"
  },
  "query_comment_id": {
    "label": "Query comment ID",
    "format": "string"
  },
  "note_id": {
    "label": "Note ID",
    "format": "string"
  },
  "parent_comment_id": {
    "label": "Parent comment ID",
    "format": "string"
  },
  "comment_id": {
    "label": "Comment ID",
    "format": "string"
  },
  "content": {
    "label": "Content",
    "format": "string"
  },
  "author_user_id": {
    "label": "Author user ID",
    "format": "string"
  },
  "author_name": {
    "label": "Author name",
    "format": "string"
  },
  "like_count": {
    "label": "Like count",
    "format": "integer"
  },
  "is_author_comment": {
    "label": "Author comment",
    "format": "boolean"
  },
  "is_pinned": {
    "label": "Pinned",
    "format": "boolean"
  },
  "ip_location": {
    "label": "IP location",
    "format": "string"
  },
  "publish_time": {
    "label": "Publish time",
    "format": "integer"
  },
  "page_request_index": {
    "label": "Page request index",
    "format": "integer"
  },
  "page_item_count": {
    "label": "Page item count",
    "format": "integer"
  },
  "page_has_more": {
    "label": "Has more",
    "format": "boolean"
  }
}
```

## About this Actor

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