{
  "openapi": "3.0.1",
  "info": {
    "title": "Douban Scraper (Movies, Books, Music, Top 250, Reviews)",
    "description": "Douban movies, TV, books and music without login: Top 250 and hot charts, now playing, keyword search and subject links. Ratings, star split, credits, ISBN, release dates, summary, plus short comments and full reviews. Only-new mode for schedules.",
    "version": "0.1",
    "x-build-id": "fqQmHcRB06eogLcFM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~douban-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-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/locaihost~douban-scraper/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-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/locaihost~douban-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-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": {
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "Douban charts to read, in chart order. Top 250 lists hold 250 titles; the hot and now-playing lists change daily.",
            "items": {
              "type": "string",
              "enum": [
                "movie_top250",
                "book_top250",
                "music_top250",
                "movie_now_playing",
                "movie_coming_soon",
                "movie_weekly_best",
                "movie_hot",
                "movie_trending",
                "tv_hot",
                "tv_trending",
                "tv_chinese",
                "tv_american",
                "tv_korean",
                "tv_japanese",
                "tv_animation",
                "tv_variety",
                "book_hot",
                "book_fiction",
                "book_nonfiction",
                "book_bestseller"
              ],
              "enumTitles": [
                "Douban Movie Top 250 (豆瓣电影Top250)",
                "Douban Book Top 250 (豆瓣读书Top250)",
                "Douban Music Top 250 (豆瓣音乐Top250)",
                "Now playing in cinemas (正在热映)",
                "Coming soon (即将上映)",
                "Weekly best movies (一周口碑榜)",
                "Popular movies (热门电影)",
                "Trending movies (实时热门电影)",
                "Popular TV series (热门剧集)",
                "Trending TV (实时热门电视)",
                "Chinese TV series (国产剧)",
                "US TV series (美剧)",
                "Korean TV series (韩剧)",
                "Japanese TV series (日剧)",
                "Animated series (动画)",
                "Variety shows (综艺)",
                "Popular books (热门图书)",
                "Fiction (虚构类)",
                "Non-fiction (非虚构类)",
                "Bestsellers (畅销图书)"
              ]
            }
          },
          "queries": {
            "title": "Search words",
            "type": "array",
            "description": "Words to search Douban for, in Chinese or English (for example 三体 or Jason Mraz). Each search reads movies, books and music unless you set Search in below.",
            "items": {
              "type": "string"
            }
          },
          "subjects": {
            "title": "Douban links or ids",
            "type": "array",
            "description": "Subject links (https://movie.douban.com/subject/1292052/), bare ids (1292052), or chart and search links from Douban.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Subjects per chart or search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many subjects to read from each chart or search. Links always return their one subject.",
            "default": 10
          },
          "includeReviews": {
            "title": "Include comments and reviews",
            "type": "boolean",
            "description": "Adds the visible short comments and long reviews of each subject, up to the caps under Advanced.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new",
            "type": "boolean",
            "description": "Return only subjects and reviews this saved task (or this exact input) has not returned before. Ideal for daily schedules.",
            "default": false
          },
          "searchType": {
            "title": "Search in",
            "enum": [
              "all",
              "movie",
              "book",
              "music"
            ],
            "type": "string",
            "description": "Which part of Douban the search words look in. TV series are found under movie.",
            "default": "all"
          },
          "subjectDetails": {
            "title": "Full subject records",
            "type": "boolean",
            "description": "Reads each subject in full: credits, summary, release dates, star split, ISBN. Turn off for chart and search cards only (faster, fewer fields).",
            "default": true
          },
          "maxCommentsPerSubject": {
            "title": "Short comments per subject",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Used when comments and reviews are on. 0 skips short comments.",
            "default": 20
          },
          "maxReviewsPerSubject": {
            "title": "Long reviews per subject",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Used when comments and reviews are on. 0 skips long reviews.",
            "default": 5
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "hot",
              "new"
            ],
            "type": "string",
            "description": "Most useful first, or newest first.",
            "default": "hot"
          },
          "fullReviewText": {
            "title": "Full review text",
            "type": "boolean",
            "description": "Reads each long review in full. Off returns the shortened text Douban shows in lists (one request less per review).",
            "default": true
          },
          "city": {
            "title": "Now-playing city",
            "type": "string",
            "description": "For the now-playing chart: a city in pinyin as Douban writes it (beijing, shanghai, guangzhou). Empty reads the nationwide list."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave empty to use our own route. Set a proxy only if you want requests to go through yours."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}