{
  "openapi": "3.0.1",
  "info": {
    "title": "Douban Scraper - Movie, TV, Book Reviews & Comments, No Login",
    "description": "Export Douban (豆瓣) movie, TV, book and music data: subject details with the 1-5 star split, the most helpful short comments with stars and votes (movies and TV too), and long reviews with full text. Seed by link, Top 250 and trending charts, or keyword. No login, plain HTTP.",
    "version": "1.0",
    "x-build-id": "b8XfgU0LAbW3WcLKQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/benthepythondev~douban-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-benthepythondev-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/benthepythondev~douban-scraper/runs": {
      "post": {
        "operationId": "runs-sync-benthepythondev-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/benthepythondev~douban-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-benthepythondev-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 links or ids",
            "type": "array",
            "description": "Movie, TV, book or album pages on Douban, e.g. https://movie.douban.com/subject/1292052/ or https://book.douban.com/subject/1007305/. Also takes ids: '1292052' (movie or TV) or 'book:1007305', 'music:1401853'. Each one gives a subject row, its short comments and its reviews.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "Douban charts",
            "type": "array",
            "description": "Read the subjects of Douban's own lists: Top 250, now showing, trending movies and TV, book bestsellers. Each subject keeps its chart and rank.",
            "items": {
              "type": "string",
              "enum": [
                "movie_top250",
                "movie_showing",
                "movie_hot_gaia",
                "movie_real_time_hotest",
                "tv_hot",
                "tv_real_time_hotest",
                "book_top250",
                "book_bestseller"
              ],
              "enumTitles": [
                "Movie Top 250",
                "Movies in cinemas now",
                "Popular movies",
                "Trending movies (real time)",
                "Popular TV shows",
                "Trending TV shows (real time)",
                "Book Top 250",
                "Book bestsellers"
              ]
            },
            "default": []
          },
          "maxSubjectsPerChart": {
            "title": "Subjects per chart",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "How many subjects to take from the top of each chart (up to 250).",
            "default": 10
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Find subjects by keyword in Chinese or English, e.g. 三体 or Interstellar. The top matches are read like links.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search in",
            "enum": [
              "movie",
              "book",
              "music"
            ],
            "type": "string",
            "description": "Which part of Douban the keywords search.",
            "default": "movie"
          },
          "maxSubjectsPerSearch": {
            "title": "Subjects per keyword",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many top search matches to read per keyword.",
            "default": 5
          },
          "includeDetails": {
            "title": "Subject details",
            "type": "boolean",
            "description": "Save one row per subject: rating, vote count, 1-5 star distribution, genres, people, dates, intro, counts.",
            "default": true
          },
          "maxCommentsPerSubject": {
            "title": "Short comments per subject",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Most helpful short comments (短评) per subject, 0 to 200. Douban shows logged-out visitors up to 200 per subject.",
            "default": 20
          },
          "maxReviewsPerSubject": {
            "title": "Long reviews per subject",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "Most helpful long reviews per subject, 0 to 40. Douban shows logged-out visitors up to about 40 per subject.",
            "default": 5
          },
          "fullReviewText": {
            "title": "Full review text",
            "type": "boolean",
            "description": "Open each review for its whole text. Off: only the abstract the list shows (faster, same price).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Used only when Douban refuses the direct address.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}