{
  "openapi": "3.0.1",
  "info": {
    "title": "Zhihu Scraper 2026",
    "description": "Collect Zhihu answers, articles, comments, trending questions, and creator profiles. Export to Excel or CSV for market research and brand monitoring.",
    "version": "0.1",
    "x-build-id": "aBcFhIzbjvzJeylKb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/devcake~zhihu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-devcake-zhihu-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/devcake~zhihu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-devcake-zhihu-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/devcake~zhihu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-devcake-zhihu-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 queries",
            "maxItems": 20,
            "type": "array",
            "description": "Add up to 20 topics, brands, products, or phrases. Queries run in order and share Max results; duplicate content is saved once. The unchanged example is automatically ignored when another section is configured.",
            "items": {
              "type": "string"
            },
            "default": [
              "露营"
            ]
          },
          "content_type": {
            "title": "Content type",
            "enum": [
              "all",
              "answer",
              "article",
              "video"
            ],
            "type": "string",
            "description": "Optionally limit search results to answers, articles, or videos.",
            "default": "all"
          },
          "max_items": {
            "title": "Max results",
            "minimum": 30,
            "maximum": 1000,
            "type": "integer",
            "description": "Set the total number of search results to save, from 30 to 1,000. Multiple queries run in order and share this limit.",
            "default": 30
          },
          "urls": {
            "title": "Zhihu URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Add one or more question, answer, article, video, or creator-profile URLs. The Actor detects each URL type automatically and processes URLs in order. Leave empty when using another section.",
            "items": {
              "type": "string"
            }
          },
          "max_content_results": {
            "title": "Max results",
            "minimum": 30,
            "maximum": 1000,
            "type": "integer",
            "description": "Set the total results to save across all URLs, from 30 to 1,000. Questions can return multiple answers; other URLs usually return one result.",
            "default": 30
          },
          "hot_list": {
            "title": "Collect Hot List",
            "type": "boolean",
            "description": "Turn on to collect Zhihu's current trending questions. Leave off when using another section.",
            "default": false
          },
          "comments_urls": {
            "title": "Content URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Add one or more answer, article, or video URLs whose comments you want to collect. URLs are processed in order. Leave empty when using another section.",
            "items": {
              "type": "string"
            }
          },
          "max_comments": {
            "title": "Max comments",
            "minimum": 15,
            "maximum": 1000,
            "type": "integer",
            "description": "Set the total number of comment records to save across all URLs, from 15 to 1,000. You will receive up to this many records; Zhihu may return fewer when less content is available. Replies count toward this limit when Include replies is on.",
            "default": 15
          },
          "comment_id": {
            "title": "Comment ID",
            "type": "string",
            "description": "Legacy API field for collecting replies to one root comment."
          },
          "include_replies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Also collect replies for every comment. Each comment and reply is saved as a separate result.",
            "default": false
          },
          "operation": {
            "title": "Operation",
            "type": "string",
            "description": "Legacy API field. The form detects the operation automatically."
          },
          "url": {
            "title": "Zhihu URL",
            "type": "string",
            "description": "Legacy single-URL input. Use Zhihu URLs in the form."
          },
          "comments_url": {
            "title": "Comments URL",
            "type": "string",
            "description": "Legacy single comments URL. Use Content URLs in the Comments section."
          },
          "cookie": {
            "title": "Account access",
            "type": "string",
            "description": "Optional account access information for an existing setup."
          },
          "keyword": {
            "title": "Search term",
            "type": "string",
            "description": "Legacy single-query input. Use Search queries in the form."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}