{
  "openapi": "3.0.1",
  "info": {
    "title": "Zhihu Scraper: Questions, Answers & Article Updates",
    "description": "Monitor Zhihu hot questions, public answer URLs and column article updates for China content research. Get available text, dates, attribution and engagement with clear excerpt flags. $0.0025 per item, about $2.50 for 1,000, plus a $0.00005 start fee. No login.",
    "version": "1.0",
    "x-build-id": "CfsgiHPpCoVaLXk1f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moggedhq~zhihu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moggedhq-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/moggedhq~zhihu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-moggedhq-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/moggedhq~zhihu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-moggedhq-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": {
          "searchTerms": {
            "title": "Keywords within selected public content",
            "type": "array",
            "description": "Filter selected column articles, known URLs and the current hot list by words such as 科技 or 小米. This does not search all of Zhihu.",
            "items": {
              "type": "string"
            }
          },
          "questionUrls": {
            "title": "Question or exact answer URLs",
            "type": "array",
            "description": "Exact answer URLs read the public share edition where available. A question URL returns its public excerpt only while it appears in the current hot list; complete answer lists are not available. Example: https://www.zhihu.com/question/1974935184941024271/answer/2020230143994512605",
            "items": {
              "type": "string"
            }
          },
          "articleUrls": {
            "title": "Article, column or Daily story URLs",
            "type": "array",
            "description": "Public article URLs, column homepages or Daily stories. Column URLs paginate their public articles. Example: https://zhuanlan.zhihu.com/xuehy or https://daily.zhihu.com/story/9793734",
            "items": {
              "type": "string"
            }
          },
          "topicUrls": {
            "title": "Topic URLs",
            "type": "array",
            "description": "General topic feeds require a signed-in route and produce a free note. Use articleUrls with a public column URL instead.",
            "items": {
              "type": "string"
            }
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "all",
              "question",
              "answer",
              "article"
            ],
            "type": "string",
            "description": "Keep all content types or only questions, answers or articles. Availability depends on the selected source.",
            "default": "all"
          },
          "sortBy": {
            "title": "Order of collected items",
            "enum": [
              "source",
              "newest",
              "upvotes"
            ],
            "type": "string",
            "description": "Sort the selected result window. Columns are discovered newest first; upvotes sorts that collected window and does not search the entire platform.",
            "default": "source"
          },
          "postedAfter": {
            "title": "Only published after",
            "type": "string",
            "description": "An ISO date or relative period such as 7 days. Uses original creation time when supplied, or the Daily edition publication date. Items without a usable date are excluded."
          },
          "onlyNew": {
            "title": "Only IDs not delivered by this monitor before",
            "type": "boolean",
            "description": "Keep a persistent ID history for this buyer and source/filter combination. Repeated runs skip delivered IDs. Run this monitor sequentially. Turn off to collect fresh text and engagement snapshots of existing items.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum content items for the whole run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Run-wide unique content limit. Each delivered item costs $0.0025 before plan discounts. Twenty items cost $0.05 plus a $0.00005 start fee. Duplicates and notes have no content charge."
          },
          "mode": {
            "title": "Collection mode",
            "enum": [
              "details",
              "trending",
              "search"
            ],
            "type": "string",
            "description": "details reads the supplied URLs. trending adds the current 50 hot questions. search filters the hot list and any supplied URLs by searchTerms; platform-wide search is not available. Omit to infer from supplied URLs or keywords."
          },
          "includeHotList": {
            "title": "Also include current hot questions",
            "type": "boolean",
            "description": "Combine the current public hot list with known URLs or columns. Question text is an excerpt; answer and comment counts are included where supplied.",
            "default": false
          },
          "dailyDays": {
            "title": "Days of curated Zhihu Daily editions",
            "minimum": 0,
            "maximum": 366,
            "type": "integer",
            "description": "Add editorial Daily stories from this many publication days, newest first. Zero disables discovery. These are selected Daily editions, not a complete Zhihu archive. Exact story URLs also work in articleUrls.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Uses the account default datacenter pool first. Failed public requests retry with fresh anonymous China and Hong Kong residential sessions. No account cookies or paid external data API.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}