{
  "openapi": "3.0.1",
  "info": {
    "title": "RedNote (Xiaohongshu) Notes & Profiles Scraper",
    "description": "Paste RedNote (Xiaohongshu, 小红书) note or creator links and get full notes: text, hashtags, likes, saves, comments, shares, images and video files, plus creator profiles, trending explore channels and opt-in top comments.",
    "version": "0.1",
    "x-build-id": "e6dBqvIoKXOUPdgML"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~rednote-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-rednote-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/automatic~rednote-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-rednote-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/automatic~rednote-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-rednote-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 links",
            "maxItems": 1000,
            "type": "array",
            "description": "Up to 1,000 RedNote (Xiaohongshu, 小红书) notes: paste the link from the share button (xiaohongshu.com, rednote.com or xhslink.com), the whole share text, or the 24-character note ID. Each note comes with its full text, hashtags, likes, saves, comments and shares counts, publish time, every image and the video file. A typo or a deleted note is skipped and named in the run summary; the others still run.",
            "items": {
              "type": "string"
            }
          },
          "profileUrls": {
            "title": "Creator profile links",
            "maxItems": 100,
            "type": "array",
            "description": "Up to 100 creators: a profile link (https://www.xiaohongshu.com/user/profile/...) or the 24-character user ID. Each creator comes as one row with nickname, Red ID, bio, IP location, follower and following counts, total likes and saves received, and their latest notes (title, cover, likes, date).",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Explore channels",
            "uniqueItems": true,
            "type": "array",
            "description": "Trending notes from RedNote's explore page, up to 35 per channel per run (RedNote often shows fewer). Run it on a schedule to follow what is popular.",
            "items": {
              "type": "string",
              "enum": [
                "recommend",
                "fashion",
                "food",
                "beauty",
                "movies",
                "kpop",
                "career",
                "love",
                "home",
                "gaming",
                "travel",
                "fitness"
              ],
              "enumTitles": [
                "Recommended",
                "Fashion",
                "Food",
                "Beauty",
                "TV & movies",
                "KPOP",
                "Career",
                "Love & life",
                "Home decor",
                "Gaming",
                "Travel",
                "Fitness"
              ]
            }
          },
          "maxNotesPerChannel": {
            "title": "Max notes per channel",
            "minimum": 1,
            "maximum": 35,
            "type": "integer",
            "description": "How many notes to take from each explore channel (RedNote shows up to 35 at a time).",
            "default": 35
          },
          "maxNotesPerProfile": {
            "title": "Latest notes per creator",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "How many of each creator's latest notes to list on their row (up to 30, the number RedNote shows on a creator page). 0 lists none.",
            "default": 30
          },
          "includeNoteDetails": {
            "title": "Include full note details for channel notes",
            "type": "boolean",
            "description": "Opens each channel note and adds its full text, hashtags, mentions, saves, comment and share counts, publish time, every image and the video file. Off: channel notes come with title, cover, likes and author only, faster. Pasted note links always come with full details.",
            "default": true
          },
          "includeTopComments": {
            "title": "Include top comments",
            "type": "boolean",
            "description": "Adds each note's top comments (about 10, with their first replies, likes, time, pictures and commenter) to the note row. Charged per note that comes with comments.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}