{
  "openapi": "3.0.1",
  "info": {
    "title": "Douban Scraper - Movie, TV and Book Reviews, Ratings and Groups",
    "description": "Douban (豆瓣) data for China market research and Chinese AI datasets: movies, TV and books with rating and star distribution, full-text reviews and short comments, plus group topics and replies. From $1 per 1,000 rows. Monitor mode returns only new posts. No login.",
    "version": "0.1",
    "x-build-id": "vTp36wDJmLvVezlM0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/conversational_kermis~douban-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-conversational_kermis-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/conversational_kermis~douban-scraper/runs": {
      "post": {
        "operationId": "runs-sync-conversational_kermis-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/conversational_kermis~douban-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-conversational_kermis-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": {
          "subjects": {
            "title": "Douban links or ids",
            "type": "array",
            "description": "Movie, TV or book pages on Douban, one per line: https://movie.douban.com/subject/1292052/, https://book.douban.com/subject/1084336/ or the m.douban.com equivalents. A bare id is read as a movie or TV series; write book:1084336 for a book.",
            "items": {
              "type": "string"
            }
          },
          "searchTitles": {
            "title": "Titles to look up",
            "type": "array",
            "description": "Optional. Titles to find through Douban's own title suggestions, e.g. 漫长的季节, Inception or 小王子. Chinese titles match best. Each title adds its top matches (see Results per title) to the subjects above.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Look titles up as",
            "enum": [
              "movie",
              "book"
            ],
            "type": "string",
            "description": "movie: movies and TV series. book: books.",
            "default": "movie"
          },
          "resultsPerTitle": {
            "title": "Results per title",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many of Douban's suggestions to scrape for each title, best match first.",
            "default": 1
          },
          "includeSubject": {
            "title": "Subject details",
            "type": "boolean",
            "description": "One row per subject: title, original title, year, genres, rating, star distribution, directors or authors, cast, countries, summary, cover and counts.",
            "default": true
          },
          "maxReviews": {
            "title": "Long reviews per subject",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "Long reviews (影评 / 书评) per subject, most helpful first. 0 = none. Douban shows visitors who are not logged in only the first 40 positions, a few of which are hidden, so expect at most about 35-40.",
            "default": 20
          },
          "fullReviewText": {
            "title": "Full review text",
            "type": "boolean",
            "description": "Open every review for its full text, unhelpful votes, read count and spoiler flag. Off: the ~450-character abstract from the review list only (faster). Same price either way.",
            "default": true
          },
          "maxComments": {
            "title": "Short comments per subject",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Short comments (短评) per subject, most popular first. 0 = none. Douban shows visitors who are not logged in about 150 per status for movies and TV and about 100 for books.",
            "default": 20
          },
          "commentStatus": {
            "title": "Comments from",
            "enum": [
              "done",
              "mark",
              "doing",
              "all"
            ],
            "type": "string",
            "description": "done: people who watched or read it (看过 / 读过), Douban's default. mark: people who want to (想看 / 想读). doing: watching or reading now (在看 / 在读). all: done, then mark, then doing, until the limit.",
            "default": "done"
          },
          "groups": {
            "title": "Douban groups (小组)",
            "type": "array",
            "description": "Group pages to read topics from, one per line: https://www.douban.com/group/blabla/, the m.douban.com link, or the group's id. Public groups only; private groups need a login and are skipped.",
            "items": {
              "type": "string"
            }
          },
          "groupSort": {
            "title": "Topic order",
            "enum": [
              "new",
              "hot",
              "elite"
            ],
            "type": "string",
            "description": "new: latest replied-to first, as the group page shows by default. hot: Douban's popular topics. elite: topics the group marked elite (精华).",
            "default": "new"
          },
          "maxTopicsPerGroup": {
            "title": "Topics per group",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Topics to read from each group.",
            "default": 20
          },
          "fullTopicText": {
            "title": "Full topic text",
            "type": "boolean",
            "description": "Open every topic for its full text, images, saves count and IP location. Off: Douban's ~50-character abstract from the topic list only (faster). Same price either way.",
            "default": true
          },
          "maxRepliesPerTopic": {
            "title": "Replies per topic",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Replies (回复) to read from each topic, oldest first, including the reply each one quotes. 0 = none.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new (monitor mode)",
            "type": "boolean",
            "description": "On repeat runs, return only reviews, short comments and group topics not returned before, so a scheduled run gives a feed of what is new. The first run returns everything and remembers it. Memory is kept per subject and per group + topic order, in your own Apify account. Replies of a new topic are returned in full. Subject rows are always returned.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. The default datacenter proxy works for Douban; a request that keeps failing is retried on a new proxy IP and finally without the proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}