{
  "openapi": "3.0.1",
  "info": {
    "title": "Douban Reviews & Ratings Scraper",
    "description": "Douban Reviews & Ratings Scraper exports Douban (豆瓣) long reviews with full text, short comments with star ratings, subject data (rating, votes, cast, genres), Top 250 and other lists, tag charts, search, group topics and replies. Movies, TV, books, music. No login.",
    "version": "1.0",
    "x-build-id": "T6w0JmhP0yLYf3ORz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~douban-reviews-ratings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-douban-reviews-ratings-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~douban-reviews-ratings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-douban-reviews-ratings-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~douban-reviews-ratings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-douban-reviews-ratings-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "subject_reviews",
              "subject_comments",
              "subjects",
              "search",
              "subject_search",
              "group_search",
              "group_topic",
              "group_topics",
              "collection",
              "browse"
            ],
            "type": "string",
            "description": "What to scrape.",
            "default": "subject_reviews"
          },
          "subjectUrls": {
            "title": "Subject URLs or ids",
            "type": "array",
            "description": "Movie, TV, book or music links or ids, e.g. https://movie.douban.com/subject/1292052/ or 1292052.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Words to search, e.g. 三体, 星际. In review / comment mode the first result of each query is used.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search in",
            "enum": [
              "all",
              "movie",
              "tv",
              "book",
              "music",
              "group"
            ],
            "type": "string",
            "description": "Which catalogue the search uses.",
            "default": "all"
          },
          "topicUrls": {
            "title": "Group topic URLs",
            "type": "array",
            "description": "Group discussion links, e.g. https://www.douban.com/group/topic/506409092/.",
            "items": {
              "type": "string"
            }
          },
          "groups": {
            "title": "Douban groups",
            "type": "array",
            "description": "Group ids or links, e.g. blabla or https://www.douban.com/group/blabla/; their newest topics are read.",
            "items": {
              "type": "string"
            }
          },
          "collections": {
            "title": "Ready-made lists",
            "type": "array",
            "description": "List ids such as movie_top250, book_top250, movie_showing, tv_hot, movie_real_time_hotest.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Browse tags",
            "type": "array",
            "description": "Chart tags such as 热门, 喜剧, 科幻, 动作, 华语.",
            "items": {
              "type": "string"
            }
          },
          "mediaType": {
            "title": "Media type (browse)",
            "enum": [
              "movie",
              "tv"
            ],
            "type": "string",
            "description": "Movies or TV series for tag charts.",
            "default": "movie"
          },
          "reviewsOrder": {
            "title": "Review order",
            "enum": [
              "hot",
              "time"
            ],
            "type": "string",
            "description": "Most helpful first or newest first.",
            "default": "hot"
          },
          "commentsOrder": {
            "title": "Comment order",
            "enum": [
              "hot",
              "latest"
            ],
            "type": "string",
            "description": "Most liked first or newest first.",
            "default": "hot"
          },
          "maxItems": {
            "title": "Max items per input",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Rows per subject, query, group, list or tag. 0 = as many as available.",
            "default": 20
          },
          "maxReviewsPerSubject": {
            "title": "Long-form reviews per subject",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Override of maxItems for reviews.",
            "default": 20
          },
          "maxCommentsPerSubject": {
            "title": "Short comments per subject",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Override of maxItems for short comments.",
            "default": 20
          },
          "maxTopicsPerGroup": {
            "title": "Topics per group",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "How many topics per group.",
            "default": 20
          },
          "maxRepliesPerTopic": {
            "title": "Replies per topic",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Replies read per group topic (0 = topic only).",
            "default": 20
          },
          "fetchFullReviewBody": {
            "title": "Fetch full review body",
            "type": "boolean",
            "description": "Open every long review for its full text (otherwise the excerpt).",
            "default": true
          },
          "fullTopicText": {
            "title": "Full topic text",
            "type": "boolean",
            "description": "Open every group topic for its full text.",
            "default": true
          },
          "includeSubjectDetails": {
            "title": "Open every search or list result",
            "type": "boolean",
            "description": "Also output the full subject record (search results, or the subject of review / comment mode).",
            "default": false
          },
          "onlyNew": {
            "title": "Only new items since the last run",
            "type": "boolean",
            "description": "Output only items earlier runs did not return.",
            "default": false
          },
          "deltaStateKey": {
            "title": "Delta stream name (optional)",
            "type": "string",
            "description": "Name of the memory used by onlyNew / incremental mode."
          },
          "navigationTimeoutMs": {
            "title": "Request timeout (ms)",
            "minimum": 0,
            "maximum": 120000,
            "type": "integer",
            "description": "Timeout of one request.",
            "default": 40000
          },
          "maxProxyRetries": {
            "title": "Max proxy retries on failure",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many failed requests in a row are tolerated before the run gives up (x10).",
            "default": 4
          },
          "searchQuery": {
            "title": "Search query (single)",
            "type": "string",
            "description": "Same as searchQueries with one value (kept for compatibility)."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Same as maxItems (kept for compatibility)."
          },
          "incrementalMode": {
            "title": "Incremental mode (only new / changed rows)",
            "type": "boolean",
            "description": "Remember every row of this run; the next run outputs only NEW and UPDATED rows (column changeType).",
            "default": false
          },
          "emitUnchanged": {
            "title": "Incremental: also output unchanged rows",
            "type": "boolean",
            "description": "With incremental mode, also output rows that did not change (changeType UNCHANGED).",
            "default": false
          },
          "emitExpired": {
            "title": "Incremental: output expired rows",
            "type": "boolean",
            "description": "With incremental mode, output one EXPIRED row for every row of the last run that is no longer found.",
            "default": false
          },
          "notifyOnlyNew": {
            "title": "Notify only when there are new rows",
            "type": "boolean",
            "description": "With incremental mode, send the notification only when the run found NEW rows.",
            "default": false
          },
          "notifyOnlyChanges": {
            "title": "Notify only on changes",
            "type": "boolean",
            "description": "With incremental mode, send the notification only when rows are NEW, UPDATED or EXPIRED.",
            "default": false
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Output only the core columns (smaller files, easier sheets).",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Drop columns that are empty on a row.",
            "default": false
          },
          "flatten": {
            "title": "Flatten for CSV",
            "type": "boolean",
            "description": "Nested objects become separate columns (parent.child), lists become comma-separated text.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "Description max length",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cut long texts to this many characters. 0 = full text.",
            "default": 0
          },
          "webhookUrl": {
            "title": "Webhook URL (notification)",
            "type": "string",
            "description": "Optional: at the end of the run, POST a JSON summary (counts + first rows) to this URL (n8n, Make, Zapier...)."
          },
          "webhookHeaders": {
            "title": "Webhook headers",
            "type": "object",
            "description": "Optional extra HTTP headers for the webhook, e.g. {\"Authorization\": \"Bearer ...\"}."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Optional Slack incoming-webhook URL for a run summary."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Optional Discord webhook URL for a run summary."
          },
          "telegramToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional token of your own Telegram bot, used with the chat ID for a run summary."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Optional Telegram chat ID that receives the run summary."
          },
          "notificationLimit": {
            "title": "Rows in a notification",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many rows the notification lists.",
            "default": 10
          },
          "minDelayMs": {
            "title": "Min delay between requests (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Optional pause between requests in milliseconds (slower but gentler).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many requests run in parallel.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (default group works).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}