{
  "openapi": "3.0.1",
  "info": {
    "title": "Douban Scraper: Movies, Books, Music, Ratings and Reviews",
    "description": "Scrape Douban movies, TV shows, books and music by keyword, Top 250 chart or link: rating, votes, star distribution, genres, year, directors, cast, authors, summary and cover. Add short comments and long reviews. No login.",
    "version": "0.1",
    "x-build-id": "EM8ESHqOCQ29slDdo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~douban-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~douban-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~douban-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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": {
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Words as you would type them in the Douban search box, in Chinese or English, one per line, for example 三体, 刘慈欣 or Interstellar. Each keyword is one search of the type chosen below. Douban links work here too.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "movie",
              "book",
              "music",
              "all"
            ],
            "type": "string",
            "description": "Which part of Douban the keywords search. Movies and TV shows come from the same search.",
            "default": "movie"
          },
          "charts": {
            "title": "Charts (optional)",
            "type": "array",
            "description": "Douban charts to read, in chart order: Top 250 lists, trending, weekly best, in cinemas, popular books and more. Each chart is read up to the max per search or chart.",
            "items": {
              "type": "string",
              "enum": [
                "movie_top250",
                "movie_real_time_hotest",
                "movie_weekly_best",
                "movie_showing",
                "movie_soon",
                "movie_hot_gaia",
                "movie_latest",
                "tv_real_time_hotest",
                "tv_hot",
                "tv_domestic",
                "tv_american",
                "tv_korean",
                "tv_japanese",
                "tv_animation",
                "tv_variety_show",
                "tv_chinese_best_weekly",
                "tv_global_best_weekly",
                "show_chinese_best_weekly",
                "show_global_best_weekly",
                "book_top250",
                "book_hot",
                "book_fiction",
                "book_nonfiction",
                "book_bestseller",
                "music_top250",
                "music_single",
                "music_chinese"
              ],
              "enumTitles": [
                "Movies: Top 250",
                "Movies: trending now",
                "Movies: best of the week",
                "Movies: in cinemas now",
                "Movies: coming soon",
                "Movies: popular",
                "Movies: recent popular",
                "TV: trending now",
                "TV: popular series",
                "TV: Chinese series",
                "TV: US series",
                "TV: Korean series",
                "TV: Japanese series",
                "TV: animation",
                "TV: variety shows",
                "TV: best Chinese series of the week",
                "TV: best global series of the week",
                "Shows: best Chinese variety of the week",
                "Shows: best global variety of the week",
                "Books: Top 250",
                "Books: popular",
                "Books: most followed fiction",
                "Books: most followed nonfiction",
                "Books: bestsellers",
                "Music: Top 250 albums",
                "Music: popular singles",
                "Music: new Chinese albums"
              ]
            }
          },
          "startUrls": {
            "title": "Douban links (optional)",
            "type": "array",
            "description": "Links copied from douban.com: a movie or TV show (https://movie.douban.com/subject/1292052/), a book (https://book.douban.com/subject/2567698/), an album (https://music.douban.com/subject/1394653/), a chart (https://movie.douban.com/top250, https://m.douban.com/subject_collection/tv_hot) or a search link. Mobile links (m.douban.com) and ids like movie:1292052 work too.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max subjects per search or chart",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most movies, shows, books or albums to return for each keyword (per type) or chart, 1 to 1,000. Charts hold 10 to 500 entries.",
            "default": 20
          },
          "fetchDetails": {
            "title": "Full details for each subject",
            "type": "boolean",
            "description": "On: each subject gets its full Douban details (genres, tags, countries, directors, cast, authors, publisher, pages, tracks, summary, star distribution, want and done counts). Off: only what the search or chart list shows (title, year, rating, votes, one line of credits), faster.",
            "default": true
          },
          "reviews": {
            "title": "Comments and reviews",
            "enum": [
              "none",
              "comments",
              "reviews",
              "both"
            ],
            "type": "string",
            "description": "Adds one row per short comment or long review after each subject, in Douban's most helpful order. Each row has the text, stars, date, helpful votes and the reviewer's display name.",
            "default": "none"
          },
          "maxCommentsPerSubject": {
            "title": "Max short comments per subject",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "1 to 150. Douban shows a signed out visitor the 150 most helpful short comments of a subject.",
            "default": 20
          },
          "maxReviewsPerSubject": {
            "title": "Max long reviews per subject",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "1 to 40. Douban shows a signed out visitor the 40 most helpful long reviews of a subject.",
            "default": 10
          },
          "fullReviewText": {
            "title": "Full text of long reviews",
            "type": "boolean",
            "description": "On: each long review comes with its full text (one more call per review). Off: the excerpt Douban shows in the list, about 200 characters.",
            "default": true
          },
          "subjectRows": {
            "title": "Include subject rows",
            "type": "boolean",
            "description": "Turn off to get only the comment and review rows (each still names its subject).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Leave empty: the actor goes direct and switches to an Apify datacenter IP on its own when needed. Set it only to force your own proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}