{
  "openapi": "3.0.1",
  "info": {
    "title": "Douban Reviews Scraper",
    "description": "Scrape Douban long reviews, short comments, star ratings and group discussions for movies, TV, books and music. Full review text, votes, rating distribution, since-date filter. No login, no cookies.",
    "version": "0.1",
    "x-build-id": "PLsusgWrPFJ7Qrqxe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~douban-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-douban-reviews-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/automation-lab~douban-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-douban-reviews-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/automation-lab~douban-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-douban-reviews-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 titles (movie, TV, book, music)",
            "type": "array",
            "description": "Douban subject URLs such as https://movie.douban.com/subject/1292052/ or https://book.douban.com/subject/1007305/. A bare number is read as a movie or TV ID; use book:1007305 or music:1395770 for other types.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "🔎 Search keyword",
            "type": "string",
            "description": "Find titles by keyword (Chinese or English) and scrape their reviews, for example 三体 or 霸王别姬."
          },
          "searchType": {
            "title": "Search in",
            "enum": [
              "movie",
              "book",
              "music"
            ],
            "type": "string",
            "description": "Which Douban catalogue the keyword searches.",
            "default": "movie"
          },
          "maxSubjectsPerSearch": {
            "title": "Titles per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many top search matches to scrape.",
            "default": 3
          },
          "groups": {
            "title": "👥 Douban groups",
            "type": "array",
            "description": "Group URLs such as https://www.douban.com/group/blabla/ or group IDs. Returns the group's discussions, latest activity first.",
            "items": {
              "type": "string"
            }
          },
          "topicUrls": {
            "title": "💬 Group discussion URLs",
            "type": "array",
            "description": "Single discussion URLs such as https://www.douban.com/group/topic/506203953/.",
            "items": {
              "type": "string"
            }
          },
          "includeSubjectSummary": {
            "title": "Title summary (rating and distribution)",
            "type": "boolean",
            "description": "One record per title with its 10-point rating, rating count, 1–5 star distribution, and watched/want counts.",
            "default": true
          },
          "includeReviews": {
            "title": "Long reviews (影评/书评/乐评)",
            "type": "boolean",
            "description": "Long-form reviews with title, full text, stars, useful/useless votes, author and date.",
            "default": true
          },
          "includeComments": {
            "title": "Short comments (短评)",
            "type": "boolean",
            "description": "Short comments with text, stars, votes, author, IP region and date.",
            "default": true
          },
          "maxReviewsPerSubject": {
            "title": "Long reviews per title",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "Douban shows logged-out visitors the 40 most popular long reviews per title.",
            "default": 20
          },
          "maxCommentsPerSubject": {
            "title": "Short comments per title",
            "minimum": 0,
            "maximum": 150,
            "type": "integer",
            "description": "Douban shows logged-out visitors about 150 popular short comments per title.",
            "default": 50
          },
          "fullReviewText": {
            "title": "Full review text",
            "type": "boolean",
            "description": "Fetch each long review's complete text and useless votes. Off returns the abstract only, which is faster.",
            "default": true
          },
          "maxTopicsPerGroup": {
            "title": "Discussions per group",
            "minimum": 1,
            "maximum": 450,
            "type": "integer",
            "description": "Most recent discussions to return per group (logged-out limit about 450).",
            "default": 20
          },
          "includeReplies": {
            "title": "Include discussion replies",
            "type": "boolean",
            "description": "Nest replies inside each discussion record at no extra charge.",
            "default": true
          },
          "maxRepliesPerTopic": {
            "title": "Replies per discussion",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum replies nested in each discussion.",
            "default": 20
          },
          "sinceDate": {
            "title": "📅 Only items since",
            "type": "string",
            "description": "Keep only reviews, comments and discussions written on or after this date (China time). Use YYYY-MM-DD or a relative value such as 7 days. Good for recurring monitoring runs."
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many records in total across all inputs.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works for Douban. Switch to residential only if you see blocks.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}