{
  "openapi": "3.0.1",
  "info": {
    "title": "Xiaohongshu (RedNote) Scraper",
    "description": "Xiaohongshu (RedNote) Scraper SD - Xiaohongshu (RedNote) Scraper is a social media data tool that extracts public RedNote notes (title, text, likes, saves, comments, shares, hashtags, images, video URLs), creator profiles and explore feeds by category, with no login.",
    "version": "1.0",
    "x-build-id": "TcNjZFBekgMCrK6pP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~xiaohongshu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~xiaohongshu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~xiaohongshu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": {
          "noteUrls": {
            "title": "Note URLs, share links or IDs",
            "type": "array",
            "description": "One per line: a note link copied from the browser (https://www.xiaohongshu.com/explore/<id>?xsec_token=...), an app share link (http://xhslink.com/o/...; the whole share text also works) or a 24-character note id. Keep the xsec_token in the link: notes from the feed open only with it (notes in the site's public sitemap open without one).",
            "items": {
              "type": "string"
            }
          },
          "userUrls": {
            "title": "Profile URLs",
            "type": "array",
            "description": "Creator profile links with their xsec_token (https://www.xiaohongshu.com/user/profile/<id>?xsec_token=..., as the address bar shows after you open a profile) or profile share links (http://xhslink.com/m/...). Gives one profile row (followers, likes and saves received, bio, IP location, red id) plus the post cards of the first page.",
            "items": {
              "type": "string"
            }
          },
          "exploreFeeds": {
            "title": "Explore feeds",
            "type": "array",
            "description": "Notes from the logged-out explore page. 'recommend' = the home feed; a category by its name or id, e.g. 穿搭 / fashion, 美食 / food, 彩妆 / cosmetics, 旅行 / travel, 健身 / fitness, 视频 / video (the Actor reads the category list from the page on every run); 'all' = recommend + every category. Each reload of a feed returns new notes, so the Actor keeps loading until Max items.",
            "items": {
              "type": "string"
            }
          },
          "sitemapNotes": {
            "title": "Notes from the public sitemap",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Also read this many notes from Xiaohongshu's public note sitemap (about 150,000 notes, December 2023 - September 2026 when measured on 2026-10-09). 0 = off. Notes that were deleted since are skipped.",
            "default": 0
          },
          "sitemapOrder": {
            "title": "Sitemap order",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Which end of the sitemap to start from.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops after this many rows in total (notes, profile rows and profile post rows). Explore feeds keep reloading until this number is reached or a feed stops returning new notes.",
            "default": 20
          },
          "maxPostsPerProfile": {
            "title": "Max posts per profile",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Post cards per profile (title, type, cover, likes, date, pinned). Logged out, a profile page shows only its first page of posts (30-31 measured); later pages need a signed request the Actor does not make. 0 = profile row only.",
            "default": 50
          },
          "fetchDetails": {
            "title": "Open every note (full details)",
            "type": "boolean",
            "description": "On: one request per note for the full text, likes, saves, comments, shares, hashtags, mentions, every image and the video stream. Off (lite mode): explore-feed notes keep only what the feed card shows (title, type, cover, likes, author) - much faster.",
            "default": true
          },
          "includeAuthorProfile": {
            "title": "Add author profile data",
            "type": "boolean",
            "description": "Adds the author's likes and saves received (exact), note count, bio, gender, IP location, red id and followers / following to every note row (one extra request per new author). Logged out, Xiaohongshu shows followers only as a range such as 10+ or 1万+; the row keeps that text and its lower bound.",
            "default": false
          },
          "noteType": {
            "title": "Note type",
            "enum": [
              "all",
              "image",
              "video"
            ],
            "type": "string",
            "description": "Keep only image or only video notes (applied by the Actor to the notes it collects).",
            "default": "all"
          },
          "publishTimeRange": {
            "title": "Published within",
            "enum": [
              "all",
              "day",
              "week",
              "month",
              "half_year",
              "year"
            ],
            "type": "string",
            "description": "Keep only notes published in this window (applied by the Actor; the note id carries its creation time, so old notes are skipped without a request).",
            "default": "all"
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notes with at least this many likes. 0 = no minimum.",
            "default": 0
          },
          "keywords": {
            "title": "Keep notes containing",
            "type": "array",
            "description": "Keep only notes whose title, text or hashtags contain one of these words (e.g. 咖啡). This filters the notes the Actor collects from the sources above - Xiaohongshu's own keyword search needs a login and is not used.",
            "items": {
              "type": "string"
            }
          },
          "videoQuality": {
            "title": "Video quality",
            "enum": [
              "highest",
              "compatible"
            ],
            "type": "string",
            "description": "Which of the note's video streams goes into videoUrl (and the download).",
            "default": "highest"
          },
          "downloadVideos": {
            "title": "Download videos (MP4)",
            "type": "boolean",
            "description": "Saves each note's video to the run's key-value store; the row gets videoFile with the file link. Video links are signed and expire, the stored copy does not.",
            "default": false
          },
          "downloadImages": {
            "title": "Download images",
            "type": "boolean",
            "description": "Saves every image of an image note (full-size JPEG) to the key-value store; the row gets imageFiles.",
            "default": false
          },
          "downloadCovers": {
            "title": "Download covers",
            "type": "boolean",
            "description": "Saves each note's cover image (full-size JPEG) to the key-value store; the row gets coverFile.",
            "default": false
          },
          "maxMediaSizeMb": {
            "title": "Max file size to download (MB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Bigger files are not stored (the row says why).",
            "default": 300
          },
          "deltaMode": {
            "title": "Only new notes since the last run",
            "type": "boolean",
            "description": "Skips notes that earlier runs with the same state key already returned (kept in the named key-value store 'xiaohongshu-scraper-delta'). Good for scheduled runs.",
            "default": false
          },
          "deltaStateKey": {
            "title": "Delta state key",
            "type": "string",
            "description": "Name of the remembered set of note ids, e.g. one per schedule ('food-daily').",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Parallel sessions",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many browser-like sessions open notes at the same time, each with its own proxy IP and about one request per second.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies (the default) are recommended. Xiaohongshu answered from residential IPs in China and Hong Kong and from a home connection in Bangladesh (measured 2026-10-09).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}