# Zhihu Scraper: Questions, Answers & Article Updates (`moggedhq/zhihu-scraper`) Actor

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.

- **URL**: https://apify.com/moggedhq/zhihu-scraper.md
- **Developed by:** [mogged](https://apify.com/moggedhq) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 content items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Zhihu Scraper: Questions, Answers & Article Updates

Monitor Zhihu column articles, readable answer and article URLs, current hot questions and curated Zhihu Daily editions. Collect Chinese text, dates, public attribution and engagement for recurring research.

**$0.0025 per delivered unique content item. Twenty items cost about $0.05, plus a $0.00005 start fee. No login, account cookies or external data subscription.** Bronze pays $0.002375 per item, Silver $0.00225, and Gold and higher $0.002. Failed reads, duplicates and explanatory notes have no content charge.

The prefilled column test delivered 20 articles. A mixed test returned an exact answer, a Daily edition and an article. Every row identifies its text coverage.

Validation on 5 November 2026 passed 35 varied inputs and ten content hand checks. Two separate cloud runs each delivered 1,000 unique items with matching content charges. These checks cover the supported public sources described below.

### What you get

| Public source | Useful output | Input |
|---|---|---|
| A Zhihu column | Paginated article records with available text, dates, attribution and engagement | A column homepage in `articleUrls` |
| An exact answer URL | Its readable public share edition, question ID, answer ID and supplied counts | An answer link in `questionUrls` |
| An exact article URL | Its readable public share edition and supplied dates and counts | An article link in `articleUrls` |
| Current hot questions | Ranked questions, public excerpts, creation dates and answer counts | `mode: "trending"` |
| Zhihu Daily | Curated answer editions, attributed display names and original answer links when supplied | A Daily story URL or `dailyDays` |

The dataset has a **CONTENT** table view and an overview view. The **SUMMARY** record describes the sources attempted, selected item counts, filters, source notes and whether your spending ceiling stopped delivery. Export JSON, JSONL, CSV or Excel using Apify's dataset export tools.

### Start with a public column

1. Add a column homepage, an exact answer URL or an article URL. You can combine several supported URLs in one run.
2. Set `maxItems` for the whole run. Add a date or keyword filter if needed.
3. Start the Actor, inspect the CONTENT view, and open SUMMARY to check source coverage.

```json
{
  "mode": "details",
  "articleUrls": ["https://zhuanlan.zhihu.com/xuehy"],
  "maxItems": 20,
  "sortBy": "newest"
}
```

Column URLs discover articles newest first. A numeric article URL such as `https://zhuanlan.zhihu.com/p/190030619` checks that article's public share edition.

For a known answer, include the answer ID in the URL:

```json
{
  "questionUrls": [
    "https://www.zhihu.com/question/1974935184941024271/answer/2020230143994512605"
  ],
  "maxItems": 5
}
```

### Inputs

| Field | Purpose |
|---|---|
| `searchTerms` | Case-insensitive words to find within the selected public content. Multiple terms use OR matching against title and available text. |
| `questionUrls` | Exact answer links, or question links that can be matched to the current hot list. |
| `articleUrls` | Article links, column homepages or `daily.zhihu.com/story/...` links. |
| `topicUrls` | Topic links receive a free explanatory note because general topic feeds are unavailable signed out. |
| `contentType` | `all`, `question`, `answer` or `article`. |
| `sortBy` | `source`, `newest` or `upvotes`, applied to the collected result window. |
| `postedAfter` | An ISO date or a relative period such as `7 days`. |
| `onlyNew` | Skip IDs already delivered for this buyer and this source/filter combination. Default false. |
| `maxItems` | The run-wide content ceiling, from 1 to 5,000. Default 20. |
| `mode` | `details` for supplied URLs, `trending` for the current hot list, or `search` for filtering selected content and hot questions. Omit to infer from the inputs. |
| `includeHotList` | Add current hot questions alongside your supplied URLs. |
| `dailyDays` | Add curated Daily editions from up to 366 publication days, newest first. Zero disables discovery. |
| `proxyConfiguration` | Default Apify proxy first; fresh anonymous residential sessions retry refused public requests. |

Programs using the China social family can also send `keywords`, `startUrls`, `maxResults` and `dateFrom`. These map to `searchTerms`, classified source URLs, `maxItems` and `postedAfter`. The explicit fields take precedence when both forms are present. Rows also include the family aliases `platform`, `type`, `id`, `text`, `authorName`, `authorUrl`, `likes`, `commentsCount`, `publishedAt`, `url` and `scrapedAt`.

For example, filter a public column for technology articles:

```json
{
  "articleUrls": ["https://zhuanlan.zhihu.com/xuehy"],
  "searchTerms": ["科技", "AI"],
  "postedAfter": "2026-01-01",
  "contentType": "article",
  "maxItems": 30
}
```

A keyword alone filters current hot questions. Sparse column matches require additional public pages.

### Output fields

| Field | Meaning |
|---|---|
| `verdict` | A short description of the collected record. |
| `platform`, `type`, `id` | `zhihu`, the content type, and an ID preserved as a string. |
| `questionId`, `answerId`, `articleId` | Original identifiers when the public source provides them. |
| `title` | Question or article title in the original language. |
| `publicText` | Clean available public text with paragraph breaks. |
| `textTruncated` | True for source-marked limited text and editions whose completeness against the original cannot be certified. |
| `textCoverage` | `question_excerpt`, `source_marked_limited`, `public_body`, `public_share_edition` or `curated_daily_edition`. |
| `creatorDisplayName`, `creatorUrl` | Public content attribution. The URL remains null if the selected surface supplies no public profile link. |
| `topics` | Supplied topic IDs and names. Names remain null when only IDs are exposed. |
| `upvotes`, `answerCount`, `commentCount` | Supplied aggregate engagement. Missing values remain null. |
| `createdAt`, `updatedAt` | Original content timestamps when exposed. |
| `editionPublishedAt`, `editionDate` | Daily edition timestamp or publication day when supplied. These are separate from original answer creation. |
| `editionUrl`, `storyId` | The selected Daily edition and its identifier. |
| `rank`, `heatText` | Current hot-list position and the source's heat label. |
| `contentSource`, `url`, `scrapedAt` | Source surface, original content link and collection timestamp. |

A real 5 November 2026 article had ID `2101696258826048148`, title `多数散户都在亏的科技牛，留给我们的最大启示`, creation/update time `2026-11-05T07:28:54.000Z`, zero upvotes and zero comments. Its source restriction flag was preserved. IDs come from source URLs, avoiding numeric rounding.

Daily edition dates remain separate from original answer creation. Unknown original dates and counts stay null; publication days are preserved without inventing precise times.

### Monitor updates and new content

Save your input as a task and add a schedule in the Console. With `onlyNew: false`, compare fresh snapshots using `platform`, `type` and `id` as the stable key.

With `onlyNew: true`, each source/filter combination keeps a delivered-ID history. Changing the item ceiling preserves that history. Capped column runs can discover older, undelivered articles on subsequent runs. Run each monitor sequentially.

To capture hot questions:

```json
{
  "mode": "trending",
  "contentType": "question",
  "maxItems": 50
}
```

To collect curated Daily editions:

```json
{
  "mode": "details",
  "dailyDays": 3,
  "contentType": "answer",
  "maxItems": 20
}
```

SUMMARY distinguishes source refusals, unsupported inputs, no matches and a spending ceiling. Explanatory notes have no content charge.

### Pricing

Each unique delivered question, answer or article has one content charge. Overlapping sources and retries do not add charges. The platform start fee also applies to empty runs.

| Delivered unique items | Free plan content price | Approximate total including the minimum start fee |
|---:|---:|---:|
| 20 | $0.05 | $0.05005 |
| 100 | $0.25 | $0.25005 |
| 1,000 | $2.50 | $2.50005 |

Bronze, Silver and Gold receive 5%, 10% and 20% content discounts respectively. At Bronze, 1,000 delivered items cost $2.375 plus the minimum start fee. Set Apify's maximum charge per run for an additional ceiling. The Actor limits planned collection to affordable items and stops delivery when that ceiling is reached. There is no extra detail fee and no default charge for each dataset row.

### API and automation

Start a run with the Apify API, then retrieve its dataset when it finishes:

```bash
curl -X POST 'https://api.apify.com/v2/acts/moggedhq~zhihu-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"articleUrls":["https://zhuanlan.zhihu.com/xuehy"],"maxItems":20}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moggedhq/zhihu-scraper").call(run_input={
    "mode": "trending",
    "maxItems": 20,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item.get("type") != "note":
        print(item["id"], item["title"], item["textCoverage"])
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('moggedhq/zhihu-scraper').call({
  articleUrls: ['https://zhuanlan.zhihu.com/xuehy'],
  maxItems: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Completion webhooks can send datasets to Make, Zapier, n8n or your warehouse. Retain the content key and `scrapedAt` to compare snapshots.

### Use with AI agents (MCP)

Add this Actor to an [Apify MCP connection](https://mcp.apify.com?actors=moggedhq/zhihu-scraper). Give the assistant a supported source and item ceiling:

- Collect 20 recent public articles from this Zhihu column, preserving Chinese text and excerpt flags.
- Check these exact public Zhihu answer URLs and return the supplied engagement counts.
- Get the current Zhihu hot questions and their answer counts.
- Collect this list of Zhihu Daily stories with original answer links where available.

The assistant should read the input schema, use the selected source's actual coverage and inspect SUMMARY after the run. For a China social workflow, normalize `platform`, `type`, `id`, `text` and `publishedAt` alongside the same fields from the Weibo, Bilibili and Douban family.

### Limits

- Platform-wide keyword search, general topic feeds and complete question-answer lists require routes this Actor does not use. Keyword inputs filter only the selected public sources and current hot list.
- Exact answer and article URLs work only when their signed-out share edition is readable. Removed content, empty share shells, login pages and verification pages produce source notes, with no content charge.
- Public text can be an excerpt, a limited article body, a share edition or an editorial Daily edition. `textTruncated` and `textCoverage` describe that distinction. The Actor does not claim the complete original answer or article.
- Hot questions are the current list, usually up to 50 entries. A historical question URL outside that list does not unlock its full thread.
- Daily contains curated selections, not every answer on Zhihu. Editorial and original publication dates differ. Exact Daily URLs may not expose a date; those unknown fields remain null.
- Column discovery follows the public source order. `sortBy` reorders the collected window, not every matching item on the platform. Filters can return fewer rows than the ceiling.
- `onlyNew` tracks IDs, not revisions, and is intended for sequential runs of the same monitor. Use ordinary snapshots to monitor edits or engagement changes. Changing source/filter combinations creates a different history.
- No comments, commenter profiles, employer details, IP regions, contact enrichment, translation or sentiment scoring are collected. Public display attribution is retained only for the selected content.
- The Actor does not log in, use account tokens, solve CAPTCHAs or cross paywalls. A public source can change or refuse access; SUMMARY records the coverage achieved in that run.

### FAQ

**Do I need a Zhihu account?** No. All supported routes are first-party public pages or data calls available to signed-out visitors.

**Can I mix columns and exact URLs?** Yes. `maxItems` applies across the complete run, and overlapping content is deduplicated. Sources are collected in input order, with the hot list first when selected.

**Why is a long article marked truncated?** Its public source may explicitly mark the body as limited. Share and Daily editions also cannot certify completeness against the original. The flag is conservative so downstream systems do not mistake available public text for a guaranteed full original.

**Why are some numbers null rather than zero?** Null means the selected public surface did not supply the field. Zero is returned only when the source supplied zero.

**Does an interruption cause duplicate billing?** The dataset and saved result plan provide durable progress. Restart recovery reconciles acknowledged content charges with saved rows before continuing. Duplicate inputs and retries do not create additional content charges.

**How do I report a problem?** Include the run link, source URL and expected field. SUMMARY contains source notes.

This independent tool is not affiliated with or endorsed by Zhihu. Zhihu names identify the public source. Respect the content owner's rights and the permissions required for your intended use.

# Actor input Schema

## `searchTerms` (type: `array`):

Filter selected column articles, known URLs and the current hot list by words such as 科技 or 小米. This does not search all of Zhihu.

## `questionUrls` (type: `array`):

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

## `articleUrls` (type: `array`):

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

## `topicUrls` (type: `array`):

General topic feeds require a signed-in route and produce a free note. Use articleUrls with a public column URL instead.

## `contentType` (type: `string`):

Keep all content types or only questions, answers or articles. Availability depends on the selected source.

## `sortBy` (type: `string`):

Sort the selected result window. Columns are discovered newest first; upvotes sorts that collected window and does not search the entire platform.

## `postedAfter` (type: `string`):

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` (type: `boolean`):

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.

## `maxItems` (type: `integer`):

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` (type: `string`):

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` (type: `boolean`):

Combine the current public hot list with known URLs or columns. Question text is an excerpt; answer and comment counts are included where supplied.

## `dailyDays` (type: `integer`):

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.

## `proxyConfiguration` (type: `object`):

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.

## Actor input object example

```json
{
  "articleUrls": [
    "https://zhuanlan.zhihu.com/xuehy"
  ],
  "contentType": "all",
  "sortBy": "source",
  "onlyNew": false,
  "maxItems": 20,
  "mode": "details",
  "includeHotList": false,
  "dailyDays": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `content` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "articleUrls": [
        "https://zhuanlan.zhihu.com/xuehy"
    ],
    "contentType": "all",
    "maxItems": 20,
    "mode": "details",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/zhihu-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "articleUrls": ["https://zhuanlan.zhihu.com/xuehy"],
    "contentType": "all",
    "maxItems": 20,
    "mode": "details",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/zhihu-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "articleUrls": [
    "https://zhuanlan.zhihu.com/xuehy"
  ],
  "contentType": "all",
  "maxItems": 20,
  "mode": "details",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call moggedhq/zhihu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/zhihu-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/f8kbEa6rcMvTxxMg3/builds/CfsgiHPpCoVaLXk1f/openapi.json
