# 小红书笔记搜索 API | Xiaohongshu XHS note search

**Use case:** 

按关键词搜索小红书/Xiaohongshu/XHS/RedNote笔记，导出标题、作者、互动数据和分页信息，适合CSV、Excel和API工作流。

## Input

```json
{
  "operation": "search_notes",
  "keyword": "露营",
  "sort_type": "general",
  "note_type": "all",
  "publish_time_range": "all",
  "max_items": 20,
  "auto_paginate": true
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "query_keyword": {
    "label": "Query keyword",
    "format": "string"
  },
  "note_id": {
    "label": "Note ID",
    "format": "string"
  },
  "note_url": {
    "label": "Note URL",
    "format": "string"
  },
  "note_type": {
    "label": "Note type",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "summary": {
    "label": "Summary",
    "format": "string"
  },
  "cover_image_url": {
    "label": "Cover image URL",
    "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"
  },
  "collect_count": {
    "label": "Collect count",
    "format": "integer"
  },
  "comment_count": {
    "label": "Comment count",
    "format": "integer"
  },
  "share_count": {
    "label": "Share count",
    "format": "integer"
  },
  "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.