{
  "openapi": "3.0.1",
  "info": {
    "title": "Douban Scraper | Reviews, Comments and Ratings",
    "description": "Douban scraper (豆瓣) for movie, TV, book and music reviews, star-rated short comments, group discussions with replies and Douban charts. Each row brings the title score, author city and posting region (IP属地). Test run: 43 rows in 18 seconds, 27 fields each. By URL, ID or keyword, no account.",
    "version": "1.0",
    "x-build-id": "mIFvuKKxw0tyePKqV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~douban-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-douban-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/silentflow~douban-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-douban-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/silentflow~douban-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-douban-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": {
          "subjectUrls": {
            "title": "🎬 Douban titles (URLs or IDs)",
            "type": "array",
            "description": "Movies, TV shows, books or albums to read. Paste the page address (<code>https://movie.douban.com/subject/34780991/</code>, <code>https://book.douban.com/subject/1007305/</code>, <code>https://music.douban.com/subject/1401853/</code>) or the bare id (<code>1292052</code>). Add as many titles as you need: each one gets its own comments and reviews, up to <b>Max rows</b> of each, so a long list is never cut short.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Find titles or group discussions by keyword. Douban indexes Chinese names, so <code>三体</code> finds far more than \"The Three-Body Problem\". What a keyword returns (movies and TV, books, music, or group discussions) is set by <b>Search in</b> below. Several keywords run in one go.",
            "items": {
              "type": "string"
            }
          },
          "discussionUrls": {
            "title": "💬 Group discussions or groups (URLs or IDs)",
            "type": "array",
            "description": "A discussion address (<code>https://www.douban.com/group/topic/496618408/</code>) or id returns its full text, author, group, counts and replies. A group address (<code>https://www.douban.com/group/613748/</code>) returns its latest discussions, each with its replies.",
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "🏆 Douban charts",
            "type": "array",
            "description": "Read Douban's own lists in rank order. Each title comes with its score, star breakdown, watched and wishlist counts and full sheet (genres, directors, cast or authors, synopsis). Top 250 lists go up to 250 titles; trending and weekly lists hold about 10 to 50.",
            "items": {
              "type": "string",
              "enum": [
                "movie_top250",
                "movie_real_time_hotest",
                "movie_weekly_best",
                "movie_showing",
                "movie_soon",
                "tv_real_time_hotest",
                "tv_hot",
                "tv_chinese_best_weekly",
                "tv_global_best_weekly",
                "show_chinese_best_weekly",
                "book_top250",
                "book_bestseller"
              ],
              "enumTitles": [
                "Top 250 movies (豆瓣电影 Top250)",
                "Trending movies now (实时热门电影)",
                "Best movies of the week (一周口碑电影榜)",
                "In theaters (影院热映)",
                "Coming soon (院线即将上映)",
                "Trending TV now (实时热门电视)",
                "Popular TV series (近期热门剧集)",
                "Best Chinese TV of the week (华语口碑剧集榜)",
                "Best world TV of the week (全球口碑剧集榜)",
                "Best Chinese variety shows of the week (国内口碑综艺榜)",
                "Top 250 books (豆瓣读书 Top250)",
                "Bestselling books (畅销图书)"
              ]
            }
          },
          "collect": {
            "title": "📦 Rows per title",
            "type": "array",
            "description": "For each title in <b>Douban titles</b>: <b>Short comments</b> (star rating, text, author, votes), <b>Long reviews</b> (title, full text, helpful and unhelpful votes, reads) and the <b>Title sheet</b> (score, star breakdown, genres, cast, synopsis). Comments and reviews of one title come out alternately.",
            "items": {
              "type": "string",
              "enum": [
                "comments",
                "reviews",
                "details"
              ],
              "enumTitles": [
                "Short comments with stars",
                "Long reviews",
                "Title sheet"
              ]
            },
            "default": [
              "reviews",
              "comments"
            ]
          },
          "searchType": {
            "title": "🗂️ Search in",
            "enum": [
              "all",
              "movie",
              "book",
              "music",
              "discussions"
            ],
            "type": "string",
            "description": "What <b>Keywords</b> return. <b>All titles</b> mixes movies and TV, books and music. <b>Group discussions</b> returns the discussions that mention the keyword in their title or text, each with its replies (Douban shows about 100 to visitors per keyword).",
            "default": "all"
          },
          "commenterStatus": {
            "title": "👥 Comments from",
            "enum": [
              "done",
              "doing",
              "wish"
            ],
            "type": "string",
            "description": "Whose short comments to read. <b>Want to</b> shows the buzz before a release or a purchase; <b>In progress</b> catches people mid-series or mid-book. Wishlist comments carry no stars.",
            "default": "done"
          },
          "maxItems": {
            "title": "🔢 Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Per title and per kind (comments, reviews), per keyword, per chart, per group, and replies kept under each discussion. Douban shows visitors up to about 150 short comments and 40 long reviews per title, most useful first. Cost grows with the number of rows.",
            "default": 20
          },
          "fullReviewText": {
            "title": "📄 Full review text",
            "type": "boolean",
            "description": "On: each long review comes in full, with its unhelpful votes, read count, spoiler flag, the author's city and the region it was posted from. Off: the excerpt Douban lists, faster.",
            "default": true
          },
          "onlyNew": {
            "title": "🔁 Only rows not delivered before",
            "type": "boolean",
            "description": "For scheduled runs: the actor remembers the rows it delivered for this same input and skips them next time, so you only get (and pay for) what is new to you. The first run delivers everything. Douban lists comments and reviews most useful first, so new rows are the ones that reached the top since your last run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}