# 小红书评论导出 API | Xiaohongshu XHS comments

**Use case:** 

导出小红书/Xiaohongshu/XHS/RedNote笔记一级评论，包含评论内容、作者、互动和分页信息，适合CSV、Excel和API工作流。

## Input

```json
{
  "operation": "get_note_comments",
  "keyword": "露营",
  "sort_type": "general",
  "note_type": "all",
  "publish_time_range": "all",
  "note_url": "https://www.xiaohongshu.com/explore/6a3688f500000002110195ec?xsec_token=YBRuYXU2rYgzgsx9i67klaNPK_A21GTgHkLhoNx-j_ZAE%3D",
  "max_items": 20,
  "auto_paginate": true
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "query_note_url": {
    "label": "Query note URL",
    "format": "string"
  },
  "note_id": {
    "label": "Note 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"
  },
  "reply_count": {
    "label": "Reply 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.