{
  "openapi": "3.0.1",
  "info": {
    "title": "RedNote Xiaohongshu Scraper: Notes, Search & Trending | 小红书",
    "description": "Scrape Xiaohongshu (RedNote, 小红书) notes logged out: the trending feed by channel, keyword search, note links and creator profiles. Full text, likes, collects, comments, shares, topics, images, video, author red id, IP location and followers. No login or cookies. Misses free.",
    "version": "0.1",
    "x-build-id": "DgvE1PBGOmT4dH6oj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~xiaohongshu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-xiaohongshu-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/hyperbach~xiaohongshu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-xiaohongshu-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/hyperbach~xiaohongshu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-xiaohongshu-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": {
          "channels": {
            "title": "Trending feed channels",
            "type": "array",
            "description": "The trending (explore) feed by category, one per line: `recommend` (the main home feed), `fashion`, `food`, `beauty`, `movies`, `kpop`, `career`, `relationships`, `home`, `gaming`, `travel`, `fitness`, `video`, or the feed's own id (`homefeed.food_v3`). Each load of a channel gives about 35 fresh notes; the run loads it again until `maxResults` notes are read. A value that names no channel is a free `invalid_input` row that lists the channels.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywords": {
            "title": "Search keywords",
            "maxItems": 1000,
            "type": "array",
            "description": "Keywords, one per line, in Chinese or any language (`咖啡`, `露营`, `lululemon`). Each gives RedNote's search results in RedNote's own order, 20 a page, up to `maxResults`. A search row carries RedNote's encrypted note id and no link that opens: the source gives a logged-out reader no other id.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "noteUrls": {
            "title": "Note links",
            "maxItems": 5000,
            "type": "array",
            "description": "Note links with their `xsec_token` (`https://www.xiaohongshu.com/explore/<id>?xsec_token=…`, `rednote.com` links too), `xhslink.com` share links, or the share text with a link inside. A link without its token opens only some notes; a wrong or old token answers RedNote's 404 page, a free row. A profile link here is read as a creator.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "creatorUrls": {
            "title": "Creator profile links",
            "maxItems": 5000,
            "type": "array",
            "description": "Profile links (`https://www.xiaohongshu.com/user/profile/<id>`) or 24-character user ids. Each gives one creator row: name, red id, bio, IP location, followers, notes, likes and collects received, and the notes the profile lists (titles, likes, covers; RedNote hides their ids from a logged-out reader).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max notes per channel or keyword",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "The most notes each channel or keyword delivers. 0 = no cap: a search walks up to 50 pages (1,000 notes) and stops earlier at the list's own end; a channel up to 30 loads. A note your filters leave out does not count.",
            "default": 100
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run (notes and creator profiles together); 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "enrichNoteDetails": {
            "title": "Full note details",
            "type": "boolean",
            "description": "On: each feed note's own page (the full text, all four counts, every image, the video streams, the topics with ids, the times, the translation) and each search note's full record (the full text, the counts, the images, the video with its subtitles). Off: the list's card only, faster (a feed card has the title, the cover and the likes; a search card the snippet and the four counts).",
            "default": true
          },
          "includeAuthorProfile": {
            "title": "Author's red id, IP location and followers",
            "type": "boolean",
            "description": "Adds the author's red id, IP location and follower count to each feed note and note link when `enrichNoteDetails` is on (one profile page per author, read once a run). With `enrichNoteDetails` off, or on a search note (its author has an encrypted id), no profile is read.",
            "default": true
          },
          "includeComments": {
            "title": "Comments (search notes)",
            "type": "boolean",
            "description": "Adds the first page of comments (up to 10 with their first replies) to each search note. RedNote serves comments to a logged-out reader for search notes only, and the first page only; feed notes and note links say so in `commentsStatus`.",
            "default": false
          },
          "noteType": {
            "title": "Note type",
            "enum": [
              "all",
              "video",
              "image"
            ],
            "type": "string",
            "description": "Keep only video notes or only image notes, on the feed and the search (a note link is read as given). RedNote's search ignores its own type filter, so this Actor filters the rows itself; a note left out is free.",
            "default": "all"
          },
          "timeFilter": {
            "title": "Published within",
            "enum": [
              "all",
              "1d",
              "1w",
              "1m",
              "6mo"
            ],
            "type": "string",
            "description": "Keep only notes published in this window, on the feed and the search. RedNote's search is not sorted by time, so the walk reads on and leaves the older notes out (free); on the feed the time is on the note's own page, which is then read even with full details off.",
            "default": "all"
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Keep only notes with at least this many likes (a rounded count such as 12.3K counts as its figure, 12,300). 0 = no filter.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}