Data APIs ยท Zhihu
Zhihu data APIs for AI agents
morigraph has 5 Zhihu data APIs that Claude, ChatGPT, Cursor, Codex or your own code can call, including profile, answer, article search and question. You need no Zhihu developer account or API key, only one morigraph connection. A call costs 0.024 credits, about $2.40 for 1,000 calls, paid from one balance.
- APIs
- 5
- Price
- 0.024 credits a call
- Call it from
- MCP, command line and HTTP API
- Needs
- One morigraph connection. No Zhihu account or API key
Three ways to call it
Every data API is run by one tool, data_api, with the API's id and its arguments. The example is Zhihu Profile.
In your assistant (MCP). Connect once, then ask in plain words
claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp
Use morigraph's Zhihu Profile data API with {"userToken":"ming-he-43-93"} and summarise what comes back.From a terminal or script (CLI)
npx @morigraph/cli@latest login
morigraph call data_api --json-args '{"api":"zhihu.profile","input":{"userToken":"ming-he-43-93"}}'From your own code (HTTP API)
curl https://api.morigraph.com/v1/tools/data_api \
-H "Authorization: Bearer $MORIGRAPH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"api":"zhihu.profile","input":{"userToken":"ming-he-43-93"}}'5 Zhihu data APIs
| API | Id | Price |
|---|---|---|
| Zhihu Profile | zhihu.profile | 0.024 credits a call |
| Zhihu Answer | zhihu.answer | 0.024 credits a call |
| Zhihu Article Search | zhihu.search_articles | 0.024 credits a call |
| Zhihu Question | zhihu.question | 0.024 credits a call |
| Zhihu Question Answers | zhihu.question_answers | 0.024 credits a call |
Zhihu Profile
Fetch a public Zhihu profile with normalized identity and audience data.
| Argument | Type | Required | What it is |
|---|---|---|---|
userToken | string | yes | Zhihu user URL token. |
Returns answers articles followers gender headline id image ipLocation name organization url userToken
The call
data_api({"api":"zhihu.profile","input":{"userToken":"ming-he-43-93"}})Zhihu Answer
Fetch a public Zhihu answer with normalized author and question data.
| Argument | Type | Required | What it is |
|---|---|---|---|
answerId | string | yes | Zhihu answer identifier. |
Returns authorHeadline authorImage authorName authorToken authorUrl authorUserId createdUtc excerpt id questionId questionTitle text updatedUtc url
The call
data_api({"api":"zhihu.answer","input":{"answerId":"2054145988235880002"}})Zhihu Article Search
Search public Zhihu articles by keyword with normalized author and engagement data.
| Argument | Type | Required | What it is |
|---|---|---|---|
limit | string | no | Number of articles requested per page. Default "20". |
offset | string | no | Result offset returned as nextOffset in the previous response. Default "0". |
query | string | yes | Search keyword. |
searchHashId | string | no | Search hash identifier returned in the previous response. Default "". |
showAllTopics | integer | no | Whether to include all topics: 0 excludes them and 1 includes them. Default 0. |
sort | | upvoted_count | created_time | no | Article ordering: comprehensive, most upvoted, or newest. Default "". |
timeInterval | | a_day | a_week | a_month | three_months | half_a_year | a_year | no | Optional publication-time filter. Default "". |
verticalInfo | string | no | Article-search vertical continuation state returned as nextVerticalInfo in the previous response. Default "0,0,0,0,0,0,0,0,0,2,0,0". |
Returns articles authorImage authorName authorToken authorUrl authorUserId comments createdUtc excerpt id isEnd nextOffset nextVerticalInfo saves searchHashId text title updatedUtc url votes
The call
data_api({"api":"zhihu.search_articles","input":{"limit":"20","query":"deepseek","showAllTopics":0}})Zhihu Question
Fetch a public Zhihu question with normalized text and engagement statistics.
| Argument | Type | Required | What it is |
|---|---|---|---|
questionId | string | yes | Zhihu question identifier. |
Returns answers comments createdUtc description excerpt followers id title updatedUtc url views
The call
data_api({"api":"zhihu.question","input":{"questionId":"37811449"}})Zhihu Question Answers
List the first page of public answers to a Zhihu question with normalized authors and engagement data. Pagination is not supported.
| Argument | Type | Required | What it is |
|---|---|---|---|
limit | integer | no | Number of answers requested on the first page. Pagination is not supported. Default 5. |
order | default | updated | no | Answer ordering: default ranking or recently updated. |
questionId | string | yes | Zhihu question identifier. |
Returns answers authorHeadline authorImage authorName authorToken authorUrl authorUserId comments createdUtc excerpt id questionId questionTitle saves text thanks updatedUtc url votes
The call
data_api({"api":"zhihu.question_answers","input":{"limit":5,"order":"default","questionId":"37811449"}})Good to know
- The price shown is the usual one. A call can cost more when the first source fails and another serves it; the most it can cost is shown beside each API, and
max_creditssets your own limit. - These APIs return public data. What you may do with it depends on the platform's terms and the privacy law where you operate, and that responsibility is yours.
- A failed call is not charged.
When to choose something else
Choose a provider that specialises in Zhihu data when you need it at high volume, on a schedule, or as bulk exports: you will get volume pricing and more control. Choose the platform's official API when you need data from your own account. These APIs are for an agent that needs an answer now, alongside other tools on the same balance.
Questions
Do I need a Zhihu API key or developer account?
No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call any of the 5 APIs on this page.
What does Zhihu data cost through morigraph?
0.024 credits a call, where a credit is about 10 cents. That is from about $2.40 for 1,000 calls. You pay per call from one balance, with no separate subscription.
Can Claude, ChatGPT or Cursor get Zhihu data?
Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call.
Which Zhihu data APIs are available?
Zhihu Profile, Zhihu Answer, Zhihu Article Search, Zhihu Question and Zhihu Question Answers.
Prices and availability read from the production service on . A credit is about 10 cents of tool use; see pricing. Your assistant can quote the exact cost before a paid call.