{
  "openapi": "3.0.1",
  "info": {
    "title": "RedNote (Xiaohongshu) Search Scraper",
    "description": "Search RedNote (Xiaohongshu, 小红书) by keyword, note or creator link. Get title, text, hashtags, likes, collects, comments, shares, author and original-quality images and videos as clean JSON. Filters, sorting, live results, no account or cookies needed.",
    "version": "1.0",
    "x-build-id": "XM3fnuTDhns9ZZOpL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insights_data~rednote-xiaohongshu-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insights_data-rednote-xiaohongshu-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/insights_data~rednote-xiaohongshu-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-insights_data-rednote-xiaohongshu-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/insights_data~rednote-xiaohongshu-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-insights_data-rednote-xiaohongshu-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "urls": {
            "title": "🔎 Keywords and RedNote links",
            "type": "array",
            "description": "One entry per line. Accepted: plain keywords (Chinese or English, for example 咖啡 or coffee), note links (xiaohongshu.com or rednote.com links, xhslink.com share links), bare note IDs, creator links (best copied from the site, they carry an access token) and RedNote search page links. Each keyword is a separate search with its own result budget. Add at least one entry here or one category below.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "🧭 Explore categories",
            "type": "array",
            "description": "Optional. Collect notes from RedNote's explore categories, one per line, for example food, travel, fashion or 美食. Use recommend for the main recommendation feed.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "📊 Max notes per input",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Notes kept for each keyword and for each category after your filters. A note link or creator link always gives one row. 0 means as many as can be found.",
            "default": 10
          },
          "sortBy": {
            "title": "🏆 Sort by",
            "enum": [
              "discovery",
              "most_liked",
              "newest",
              "most_collected",
              "most_commented",
              "most_shared",
              "most_engagement"
            ],
            "type": "string",
            "description": "Order of the saved notes. With any option other than 'Most relevant', the notes of each keyword or category are saved once that input is finished, sorted by your choice.",
            "default": "discovery"
          },
          "noteType": {
            "title": "🎬 Note type",
            "enum": [
              "all",
              "image",
              "video"
            ],
            "type": "string",
            "description": "Keep only photo notes, only video notes, or both.",
            "default": "all"
          },
          "publishedAfter": {
            "title": "🗓️ Published after",
            "type": "string",
            "description": "Keep only notes published after this date. Pick a date or write 3 days, 1 week, 2 months or 1 year (30d, 2w and 1y also work). Leave empty for any age."
          },
          "publishedBefore": {
            "title": "📆 Published before",
            "type": "string",
            "description": "Keep only notes published on or before this date. Pick a date or write a relative value such as 1 month. Leave empty for no end date."
          },
          "minLikes": {
            "title": "❤️ Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notes with at least this many likes. 0 turns the filter off.",
            "default": 0
          },
          "minCollects": {
            "title": "⭐ Minimum collects",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notes with at least this many collects (saves). 0 turns the filter off.",
            "default": 0
          },
          "minComments": {
            "title": "💬 Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notes with at least this many comments. 0 turns the filter off.",
            "default": 0
          },
          "keywordMatchIn": {
            "title": "🔤 Where the keyword must appear",
            "uniqueItems": true,
            "type": "array",
            "description": "Parts of a note checked for your keyword. Notes with an English translation are matched on it too. A keyword with several words matches when every word appears. Add Description for more (looser) results. Notes that never mention the keyword are not saved, so you never pay for off-topic rows.",
            "items": {
              "type": "string",
              "enum": [
                "title",
                "description",
                "hashtags",
                "off"
              ],
              "enumTitles": [
                "Title",
                "Description",
                "Hashtags",
                "Anywhere (no check)"
              ]
            },
            "default": [
              "title",
              "hashtags"
            ]
          },
          "expandQueries": {
            "title": "🪄 Widen the search with hashtags",
            "type": "boolean",
            "description": "When a keyword has not reached its result budget, search again with the hashtags found on the notes already kept (for example 咖啡 → 咖啡探店). Gives many more results for popular keywords.",
            "default": true
          },
          "includeMedia": {
            "title": "🖼️ Include images and video links",
            "type": "boolean",
            "description": "Add original-quality image links, the video link and the cover to every note.",
            "default": true
          },
          "includeAllVideoStreams": {
            "title": "🎞️ Include every video quality",
            "type": "boolean",
            "description": "List every available video version (all codecs and resolutions) instead of just the best compatible one.",
            "default": false
          },
          "includeAuthorDetails": {
            "title": "🧑‍🎨 Include author details",
            "type": "boolean",
            "description": "Add followers, location, bio and gender for each note's author. Costs one extra page per unique author, so runs take longer.",
            "default": false
          },
          "skipKnownFromDataset": {
            "title": "♻️ Skip notes already collected",
            "type": "string",
            "description": "Pick the dataset of an earlier run. Notes and creators already in it are skipped and never charged again, so repeat runs only return what is new."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Runs without a proxy first. If RedNote refuses a request, the actor switches to a datacenter proxy and then to a residential proxy, and keeps using it.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}