{
  "openapi": "3.0.1",
  "info": {
    "title": "Xiaohongshu (RedNote) User Profile & Notes Scraper",
    "description": "Xiaohongshu (RedNote) User Profile & Notes Scraper extracts public 小红书 creator profiles from profile links, share links, user ids or note links: nickname, red ID, bio, gender, IP location, followers, following, likes and collects, tags and up to 30 recent notes. No login.",
    "version": "1.0",
    "x-build-id": "mmFpRgCsyrpO9lIli"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~xiaohongshu-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-xiaohongshu-profile-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-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-xiaohongshu-profile-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-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-xiaohongshu-profile-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": {
          "profileUrls": {
            "title": "Profiles (links, share links, user ids or note links)",
            "type": "array",
            "description": "One per line: profile links (xiaohongshu.com or rednote.com /user/profile/<id>, with or without ?xsec_token=), xhslink.com share links or the share text copied from the app, bare 24-character user ids, or note links (the note's author is scraped). One profile row per creator.",
            "items": {
              "type": "string"
            }
          },
          "userId": {
            "title": "Single user id or profile link",
            "type": "string",
            "description": "Optional: one more creator, as a 24-character user id or a profile link. Added to the list above."
          },
          "includeNotes": {
            "title": "Include recent notes",
            "type": "boolean",
            "description": "Adds the creator's recent notes (title, type, cover, likes, pinned flag, date) to each profile.",
            "default": true
          },
          "maxNotesPerProfile": {
            "title": "Max notes per profile",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Recent notes per creator, newest first (pinned notes first). Logged out a profile shows its first 30 notes; 0 = profile only.",
            "default": 30
          },
          "outputMode": {
            "title": "Output rows",
            "enum": [
              "profiles",
              "notes",
              "both"
            ],
            "type": "string",
            "description": "profiles = one row per creator with the notes list inside; notes = one row per note with the creator's columns repeated; both = the profile row followed by its note rows.",
            "default": "profiles"
          },
          "includeExploreFeed": {
            "title": "Also add creators from the explore feed",
            "type": "boolean",
            "description": "Adds the creators of the notes Xiaohongshu currently recommends on its explore feed, until Max profiles is reached - a way to discover trending creators without a list.",
            "default": false
          },
          "maxItems": {
            "title": "Max profiles",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Most creators per run (0 = every profile in your list; with the explore feed on, 0 means 20).",
            "default": 0
          },
          "minimumNotesPerProfile": {
            "title": "Minimum notes per profile",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "If a profile comes back with fewer notes than this although the creator has more, it is loaded again on a fresh connection (once). 0 = off.",
            "default": 0
          },
          "failOnProfileError": {
            "title": "Fail the run if a profile could not be read",
            "type": "boolean",
            "description": "Marks the run FAILED at the end when any profile could not be read or missed the minimum notes (the rows that were read stay in the dataset).",
            "default": false
          },
          "xsecToken": {
            "title": "xsec_token (optional)",
            "type": "string",
            "description": "Optional access token to add to profile links that have none. Not needed normally; use it only if a run reports a profile redirected to the login page."
          },
          "maxConcurrency": {
            "title": "Parallel connections",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Profiles loaded at the same time, each on its own connection.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Retries per profile",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Attempts per page, each on a fresh connection (new IP), when the site answers with a block page.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for one page.",
            "default": 40
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy (the default datacenter group works: profiles opened from datacenter and US residential IPs on 2026-11-21). Avoid China IPs - there some profiles ask for a login.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}