{
  "openapi": "3.0.1",
  "info": {
    "title": "Douban Scraper - Films, Books, Music, People and Groups",
    "description": "Extract Douban film, book and music pages, public member profiles, person filmographies and group topics as structured rows. Pay per delivered row plus a start fee.",
    "version": "0.1",
    "x-build-id": "JvB14EL9qnDr4aPWO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~douban-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~douban-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~douban-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": {
          "keywords": {
            "title": "Search terms",
            "type": "array",
            "description": "Titles, directors, authors or anything else you would type into Douban's search box, in Chinese or English. Each term is one input, and maxResults applies to each of them.",
            "items": {
              "type": "string"
            }
          },
          "subjectIds": {
            "title": "Film, book or music IDs",
            "type": "array",
            "description": "Douban subject IDs such as 1292052, or full links such as https://movie.douban.com/subject/1292052/. Used only when Search terms is empty.",
            "items": {
              "type": "string"
            }
          },
          "subjectType": {
            "title": "Subject type",
            "enum": [
              "movie",
              "book",
              "music"
            ],
            "type": "string",
            "description": "Which Douban catalogue the IDs above belong to. Films include TV series, which are tagged automatically.",
            "default": "movie"
          },
          "celebrityIds": {
            "title": "People IDs",
            "type": "array",
            "description": "Douban person IDs such as 27253735, or links such as https://www.douban.com/personage/27253735/.",
            "items": {
              "type": "string"
            }
          },
          "userIds": {
            "title": "Member IDs",
            "type": "array",
            "description": "Public Douban member IDs, as they appear in https://www.douban.com/people/<id>/. Email addresses and phone numbers are never published on this route and are not collected.",
            "items": {
              "type": "string"
            }
          },
          "groupIds": {
            "title": "Group IDs",
            "type": "array",
            "description": "Douban group IDs, the number in https://www.douban.com/group/<id>/. Topic rows carry titles, abstracts and authors.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "search",
              "subjects",
              "celebrities",
              "users",
              "groups",
              "tags"
            ],
            "type": "string",
            "description": "Leave on Automatic unless you want to force one data view. Automatic picks the view from the field you filled.",
            "default": "auto"
          },
          "maxResults": {
            "title": "Max rows per input",
            "minimum": 1,
            "maximum": 70,
            "type": "integer",
            "description": "Rows delivered and billed for each input (each search term, ID or group). Child rows such as reviews or cast count toward the same limit. Default 70.",
            "default": 70
          },
          "includeReviews": {
            "title": "Include long reviews",
            "type": "boolean",
            "description": "Add one row per long review of each subject. Each row is billed and counts toward Max rows per input.",
            "default": false
          },
          "includeInterests": {
            "title": "Include short comments",
            "type": "boolean",
            "description": "Add one row per short comment (with the commenter's rating on Douban's 5-point scale).",
            "default": false
          },
          "includeCelebrities": {
            "title": "Include cast and crew",
            "type": "boolean",
            "description": "Add one row per director and actor of each film, with their Douban IDs.",
            "default": false
          },
          "includePhotos": {
            "title": "Include stills",
            "type": "boolean",
            "description": "Add one row per still, with the uploader's public profile and image links.",
            "default": false
          },
          "includeWorks": {
            "title": "Include filmography",
            "type": "boolean",
            "description": "For People mode: add one row per work of each person.",
            "default": false
          },
          "cursor": {
            "title": "Continuation",
            "type": "string",
            "description": "Leave empty. To read further, pass the nextCursor value from a previous run's RUN_SUMMARY with the same input."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}