Zhihu API

Get Zhihu search results, the hot list, questions, answers, comments, pins, columns and author profiles as JSON with one EveryInfra API key, from $0.56 per 1,000 calls.

All you need is one API key, no Zhihu account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.

  • 27 endpoints, one key
  • Failed calls and empty results are not charged.
  • Covers content, comments, authors, columns, papers and e-books

Real samples for one article

POST /api/v1/social params {"url":"https://zhuanlan.zhihu.com/p/2032860336215307118"}

Real responses for the same article from several endpoints, captured September 26, 2026 – November 21, 2026 (UTC). Each box links to the endpoint page.

Platform availability

24h health
95%
Healthy

Last 30 days

Available capabilities

Search Zhihu content, users, columns, topics, ebooks, Yan Selection paid content and academic papers, retrieve details, comments and replies, explore creator profiles, articles, answers and pins, read the hot list, and list the answers under a question.

Use the content URL of a specific article or answer. A question-page URL is not an article or answer URL; it belongs in question_answers.

  • SearchHealthy · health 99%

    Find what Zhihu users write about a topic, up to 20 per page; page with page_token.

    search$0.79 per 1,000 calls

  • Find Zhihu users by nickname or keyword, 20 per page, with profile ID, bio, followers, answer and article totals, upvotes received and recognition label.

    user_search$0.79 per 1,000 calls

  • Find Zhihu columns on a topic, 20 per page, with title, description, followers, upvotes, article count and author.

    column_search$0.79 per 1,000 calls

  • Search Chinese journal papers on Zhihu's academic channel by keyword, with title, abstract opening, authors, keywords, journal, year, volume and issue.

    scholar_search$0.79 per 1,000 calls

  • Search Zhihu Yan Selection (paid) content by keyword, 20 per page, with title, free opening, column, cover, date and upvotes; the paid body is not included.

    salt_search$0.79 per 1,000 calls

  • Find Zhihu topics by keyword, up to 20 from the first page in Zhihu's order, with topic link, name, icon, followers, question count and views.

    topic_search$0.79 per 1,000 calls

  • Search Zhihu ebooks by keyword, about 20 per page, with title, author, a short summary, cover, date and link, and whether the row is a whole book or one chapter.

    ebook_search$0.79 per 1,000 calls

Search words and the hot list

  • Get the suggestions Zhihu shows under its search box for a word, up to 10 in display order, each with its rank.

    search_suggest$0.56 per 1,000 calls

  • List the preset words Zhihu rotates in its search box, about 30 of them returned at once, each with its rank and Zhihu's tag when it has one.

    search_presets$0.56 per 1,000 calls

  • List the words in the Search discovery panel of Zhihu's search page, about 12 of them returned at once, each with its rank and Zhihu's tag (such as hot or new) when it has one.

    search_discover$0.56 per 1,000 calls

  • Hot listHealthy · health 100%

    Take Zhihu's hot list in one call, up to 30 questions.

    hot_list$0.81 per 1,000 calls

Questions

  • Read one Zhihu question from its link or ID, with title, description, topics, answer, follower, view, comment and upvote counts, dates and the asker.

    question_detail$0.79 per 1,000 calls

  • Read the answers under one Zhihu question from its link, an answer link or the question ID, up to 20 per call.

    question_answers$0.81 per 1,000 calls

  • Page through the top-level comments on one Zhihu question itself, not on its answers, 10 per page, with text, likes, reply count, time and commenter.

    question_comments$0.56 per 1,000 calls

Content and comments

  • Content detailHealthy · health 100%

    Read one Zhihu answer, article or video from its link.

    content_detail$0.56 per 1,000 calls

  • Collect top-level comments on a Zhihu answer, article or video, up to 100 per call.

    content_comments$0.56 per 1,000 callsEvery 20 rows count as one call

  • List the replies under one Zhihu comment, up to 100 per call, with text, likes, time and replier.

    comment_replies$0.56 per 1,000 callsEvery 20 rows count as one call

  • Read one Zhihu pin from its link or ID, with text, likes, comments, reposts, saves, date and author, plus images or a video's cover and length when the pin has them.

    pin_detail$0.79 per 1,000 calls

  • Read the comments on one Zhihu pin from its link or ID, up to 100 per call, with text, likes, reply count, time and commenter.

    pin_comments$0.81 per 1,000 calls

Authors

  • DetailsNormal

    Look up a Zhihu author from a zhihu.com/people/ link and get bio, followers, verification label, answer and article totals and upvotes received.

    profile$0.56 per 1,000 calls

  • Gather a Zhihu author's published pieces from their profile link, up to 100 per call, with type, title, full text, likes, comments, favorites and date.

    user_articles$0.56 per 1,000 callsEvery 20 rows count as one call

  • Page through the answers a Zhihu user wrote, newest first, 20 per page, from a profile link or profile ID.

    user_answers$0.81 per 1,000 calls

  • User pinsNormal

    Page through a Zhihu user's pins (short posts), newest first, 20 per page.

    user_pins$0.81 per 1,000 calls

Columns and article pages

  • List the latest 10 items in a Zhihu column from its link or ID, without paging.

    column_articles$0.56 per 1,000 calls

  • List the recommended articles shown under one Zhihu article, up to 12, with title, excerpt, upvotes, date and author.

    related_articles$0.56 per 1,000 calls

  • Read the line on one Zhihu article page that says how many people upvoted it, worded as Zhihu shows it.

    article_relationship$0.56 per 1,000 calls

  • Read the comment settings a signed-out visitor sees on one Zhihu article: whether replies are open, the comment box hint and the picture limit.

    article_comment_config$0.56 per 1,000 calls

Zhihu API pricing

6 questions to ask before choosing a data API for Zhihu

Does Zhihu have an official API, and how is it different from this one?

Yes. Zhihu's data open platform lets anyone with a Zhihu account generate an Access Secret in its personal center and call its search API (up to 10 results per call, no further pages) and hot list API (up to 30 items), each under a daily quota. Its user content API returns only the caller's own answers and articles unless another user has authorized the app through Zhihu OAuth, which you apply for by email. EveryInfra reads public content with one API key, without applying to Zhihu.

Official sources: Zhihu data open platform: search API · Zhihu data open platform: hot list API · Zhihu data open platform: user content API · Zhihu data open platform: OAuth integration · Zhihu data open platform: Zhihu CLI and quotas · Checked

Do I need to log in to Zhihu or provide a cookie to make calls?

No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.

How is it billed? Are failed requests charged? Is there a free trial?

Billing is per request, from $0.56 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.

Can I connect this Zhihu API to Claude or Cursor?

Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server/zhihu.

What compliance points apply when using Zhihu data?

The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.

What Zhihu data can I get?

Available Zhihu capabilities (27): Search, Content detail, Content comments, Comment replies, Details, User articles, Hot list, Answers to a question, User answers, User pins, Account search, Column search, Scholar search, Yan Selection search, Pin comments, Topic search, Ebook search, Search suggestions, Search presets, Search discovery, Question details, Pin details, Question comments, Column items, Recommended articles, Article upvote line, Article comment settings. The parameters and response fields of each capability are in the API reference on this page.

Use cases

Zhihu Data Open Platform vs EveryInfra

The Zhihu CLI of the Zhihu Data Open Platform is a command-line tool for your own agent, called with your own Access Secret. It is not the same object as an API that reads public pages by link, so this table has no comparison row.

ComparedZhihu Data Open PlatformEveryInfra

The Zhihu Data Open Platform documentation is in Chinese. Its pages on search and the hot list are compared on those endpoint pages. Official sources:

What does each Zhihu action accept?

Parameter table for all 27 actions

Sync delivery for every action.

ActionRequiredOptionalLimitPer 1,000Response fields
search

Search

Find what Zhihu users write about a topic, up to 20 per page; page with page_token. Results include answers, articles and videos with upvotes, comments, favorites and author credentials. Narrow with content_type, and order with sort by relevance, most upvoted or newest. type tells the kind of each row.

keywordcontent_type, page_token, sortEach call returns one page of up to 20 rows. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call.$0.79 per 1,000 requestsid · type · url · title · text · like_count · comment_count · collect_count · posted_at · cover_image_url · next_page_token · platform · author_id · author_name · author_url · author_avatar_url · author_bio · author_follower_count · author_verified · author_verification_label
content_detail

Content detail

Read one Zhihu answer, article or video from its link. Get title, text, upvote, comment and favorite counts, publish time and author details. Question pages are not supported, and comments are not included.

url——$0.56 per 1,000 requestsid · type · url · title · text · like_count · comment_count · collect_count · posted_at · platform · author_id · author_name · author_url · author_avatar_url · author_bio · author_follower_count · author_verified · author_verification_label
content_comments

Content comments

Collect top-level comments on a Zhihu answer, article or video, up to 100 per call. Get text, likes, reply count, time and commenter. A non-zero reply_count means replies exist, and comment_replies lists them. The thread may not be complete.

url—Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.56 per 1,000 requestsEvery 20 rows count as one callid · text · like_count · posted_at · reply_count · author_id · author_name · author_avatar_url · platform
comment_replies

Comment replies

List the replies under one Zhihu comment, up to 100 per call, with text, likes, time and replier. Pass the content link plus a comment_id from a comments row whose reply count is above zero; when the response has next_page_token, pass it back as page_token for the next page. reply_count may be absent, and some rows carry more fields, such as depth, reply_to_id, dislike_count and ip_location.

url, comment_idpage_tokenCatalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is billed by its row count, one call per 20 rows.$0.56 per 1,000 requestsEvery 20 rows count as one callid · text · like_count · posted_at · reply_count · author_id · author_name · author_avatar_url · platform · content_html · author_url_token · author_url · author_bio · author_verified · author_verification_label · parent_id · depth · reply_to_id · reply_to_name · dislike_count · ip_location · is_author · is_hot · is_top · tags
profile

Details

Look up a Zhihu author from a zhihu.com/people/ link and get bio, followers, verification label, answer and article totals and upvotes received. Content links do not work here, and the verification label does not vouch for identity.

url——$0.56 per 1,000 requestsauthor_id · author_name · author_url · author_avatar_url · author_bio · author_follower_count · author_verified · author_verification_label · answer_count · article_count · received_upvote_count · platform
user_articles

User articles

Gather a Zhihu author's published pieces from their profile link, up to 100 per call, with type, title, full text, likes, comments, favorites and date. Rows share the shape of search results, and one batch may not cover the author's full archive.

url—Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.56 per 1,000 requestsEvery 20 rows count as one callid · type · url · title · text · like_count · comment_count · collect_count · posted_at · cover_image_url · platform · author_id · author_name · author_url · author_avatar_url · author_bio · author_follower_count · author_verified · author_verification_label
hot_list

Hot list

Take Zhihu's hot list in one call, up to 30 questions. Each has rank, title, excerpt, heat value as a whole number, answer count, number of followers, comment count and cover image. Heat compares only within the list. Pass a question's link to question_answers to read its answers.

—Each call returns one page of up to 30 rows. There is no next page. Each page is billed once.$0.81 per 1,000 requestsrank · id · type · title · text · url · hot_value · answer_count · follower_count · comment_count · posted_at · cover_image_url · platform
question_answers

Answers to a question

Read the answers under one Zhihu question from its link, an answer link or the question ID, up to 20 per call. Each answer has full text, upvotes, comments, saves, thanks, publish and edit times, and the author's name, bio, followers and verification. Sort by Zhihu's default order or by most recently updated. Only the first page is available.

urlsortEach call returns one page of up to 20 rows. There is no next page. Each page is billed once.$0.81 per 1,000 requestsid · type · url · question_id · title · text · like_count · comment_count · collect_count · thanks_count · posted_at · updated_at · author_id · author_name · author_url · author_avatar_url · author_bio · author_follower_count · author_verification_label · platform
user_answers

User answers

Page through the answers a Zhihu user wrote, newest first, 20 per page, from a profile link or profile ID. Each answer has the question it answers, full text, upvotes, comments, publish and edit times. Find the profile ID with user_search.

urlpage_tokenEach call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.$0.81 per 1,000 requestsid · type · url · question_id · title · text · like_count · comment_count · posted_at · updated_at · author_id · author_name · author_url · author_avatar_url · author_bio · author_verification_label · platform
user_pins

User pins

Page through a Zhihu user's pins (short posts), newest first, 20 per page. Each pin has its text, images, likes, comments, reposts, saves and publish time.

urlpage_tokenEach call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.$0.81 per 1,000 requestsid · type · url · text · image_urls · like_count · comment_count · repost_count · collect_count · posted_at · author_id · author_name · author_url · author_avatar_url · author_follower_count · platform
user_search

Account search

Find Zhihu users by nickname or keyword, 20 per page, with profile ID, bio, followers, answer and article totals, upvotes received and recognition label. The profile ID works in profile, user_answers and user_pins.

keywordpage_tokenEach call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.$0.79 per 1,000 requestsuser_id · username · display_name · url · bio · avatar_url · gender · follower_count · answer_count · article_count · received_upvote_count · verification_label · platform
column_search

Column search

Find Zhihu columns on a topic, 20 per page, with title, description, followers, upvotes, article count and author.

keywordpage_tokenEach call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.$0.79 per 1,000 requestsid · type · url · title · text · cover_image_url · follower_count · like_count · article_count · author_id · author_name · author_url · platform
scholar_search

Scholar search

Search Chinese journal papers on Zhihu's academic channel by keyword, with title, abstract opening, authors, keywords, journal, year, volume and issue.

keywordpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.79 per 1,000 requestsid · type · url · title · text · author_names · keywords · journal · year · volume · issue · next_page_token · platform
salt_search

Yan Selection search

Search Zhihu Yan Selection (paid) content by keyword, 20 per page, with title, free opening, column, cover, date and upvotes; the paid body is not included.

keywordpage_tokenEach call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.$0.79 per 1,000 requestsid · type · url · title · text · column_title · cover_image_url · posted_at · like_count · comment_count · platform
pin_comments

Pin comments

Read the comments on one Zhihu pin from its link or ID, up to 100 per call, with text, likes, reply count, time and commenter.

url—Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.81 per 1,000 requestsid · text · like_count · posted_at · reply_count · author_id · author_name · author_avatar_url · platform
topic_search

Topic search

Find Zhihu topics by keyword, up to 20 from the first page in Zhihu's order, with topic link, name, icon, followers, question count and views.

keyword—Catalog values: defaultLimit=20, maxLimit=20. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.79 per 1,000 requestsid · url · name · avatar_url · follower_count · question_count · visit_count · platform
ebook_search

Ebook search

Search Zhihu ebooks by keyword, about 20 per page, with title, author, a short summary, cover, date and link, and whether the row is a whole book or one chapter. The paid body is not included.

keywordpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.79 per 1,000 requestsid · type · url · title · text · author_name · cover_image_url · posted_at · platform
search_suggest

Search suggestions

Get the suggestions Zhihu shows under its search box for a word, up to 10 in display order, each with its rank.

keyword—Each call returns one page of up to 10 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsrank · keyword · platform
search_presets

Search presets

List the preset words Zhihu rotates in its search box, about 30 of them returned at once, each with its rank and Zhihu's tag when it has one. No input needed.

—Each call returns one page of up to 30 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsrank · keyword · label · platform
search_discover

Search discovery

List the words in the Search discovery panel of Zhihu's search page, about 12 of them returned at once, each with its rank and Zhihu's tag (such as hot or new) when it has one. No input needed.

—Each call returns one page of up to 12 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsrank · keyword · label · platform
question_detail

Question details

Read one Zhihu question from its link or ID, with title, description, topics, answer, follower, view, comment and upvote counts, dates and the asker.

url——$0.79 per 1,000 requestsid · type · url · title · text · topics · answer_count · follower_count · visit_count · comment_count · like_count · posted_at · updated_at · author_id · author_name · author_url · platform
pin_detail

Pin details

Read one Zhihu pin from its link or ID, with text, likes, comments, reposts, saves, date and author, plus images or a video's cover and length when the pin has them.

url——$0.79 per 1,000 requestsid · type · url · text · image_urls · cover_image_url · duration_seconds · duration_sec · like_count · comment_count · repost_count · collect_count · posted_at · updated_at · author_id · author_name · author_url · author_avatar_url · author_bio · author_follower_count · platform
question_comments

Question comments

Page through the top-level comments on one Zhihu question itself, not on its answers, 10 per page, with text, likes, reply count, time and commenter.

urlpage_tokenEach call returns one page of up to 10 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.$0.56 per 1,000 requestsid · text · like_count · posted_at · reply_count · author_id · author_name · author_avatar_url · platform
column_articles

Column items

List the latest 10 items in a Zhihu column from its link or ID, without paging. Items can be articles, answers, pins or videos, each with title, excerpt, upvotes, comments and author.

url—Each call returns one page of up to 10 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · type · url · title · text · like_count · comment_count · posted_at · updated_at · cover_image_url · author_id · author_name · author_url · author_avatar_url · author_bio · author_follower_count · platform
related_articles

Recommended articles

List the recommended articles shown under one Zhihu article, up to 12, with title, excerpt, upvotes, date and author.

url—Each call returns one page of up to 12 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · type · url · title · text · like_count · posted_at · updated_at · cover_image_url · author_id · author_name · author_url · author_avatar_url · author_bio · author_follower_count · platform
article_relationship

Article upvote line

Read the line on one Zhihu article page that says how many people upvoted it, worded as Zhihu shows it.

url——$0.56 per 1,000 requestsid · url · type · text · platform
article_comment_config

Article comment settings

Read the comment settings a signed-out visitor sees on one Zhihu article: whether replies are open, the comment box hint and the picture limit. Zhihu returns the same settings for any article ID, so this cannot tell you whether an article exists.

url——$0.56 per 1,000 requestsid · url · can_reply · can_segment_reply · is_anonymous · input_placeholder · picture_max_count · platform
What each action's parameters mean (27 actions)

Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.

Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.

What do the Zhihu search parameters mean?

Find what Zhihu users write about a topic, up to 20 per page; page with page_token. Results include answers, articles and videos with upvotes, comments, favorites and author credentials. Narrow with content_type, and order with sort by relevance, most upvoted or newest. type tells the kind of each row.

Full API reference: parameters, code samples, response example and health
keywordRequired
The content search term for the Zhihu search action. Do not pass content URLs, author handles, or profile links to this parameter.
Zhihu: Rights and Usage Rules for Answers and Articles — The Zhihu agreement distinguishes original user content like answers and articles, requiring separate author authorization for off-site republication; it also restricts automated collection and content usage. Reading content through this API does not constitute receiving platform permission or content usage rights. · Checked
content_typeOptional
Filters the content type for the search action. Allowed values are all (default), answer, article, and video. This parameter narrows matching content and does not change the response schema.
Allowed values:allanswerarticlevideo
page_tokenOptional
Page token for the paged Zhihu lists. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, keeping the other parameters unchanged. Each page is one call.
sortOptional
Orders search results. Allowed values are general (default), upvote_count_descending for most-upvoted, and time_descending for newest publish.
Allowed values:generaltime_descendingupvote_count_descending

What do the Zhihu content_detail parameters mean?

Read one Zhihu answer, article or video from its link. Get title, text, upvote, comment and favorite counts, publish time and author details. Question pages are not supported, and comments are not included.

Full API reference: parameters, code samples, response example and health
urlRequired
The content URL or profile URL required by content-oriented actions. content_detail and content_comments accept answer, article, or video links (question pages are not supported); profile and user_articles accept zhihu.com/people/ profile links.
Zhihu: Public Articles Are Not Granted for Arbitrary Republication or Model Training — Intellectual property terms in the Zhihu agreement require verifying relevant authorizations from the author and platform, while restricting unauthorized scraping, commercial use, and AI model development or training. Reading the content does not replace these permissions, nor does it indicate an endorsement by Zhihu. · Checked

What do the Zhihu content_comments parameters mean?

Collect top-level comments on a Zhihu answer, article or video, up to 100 per call. Get text, likes, reply count, time and commenter. A non-zero reply_count means replies exist, and comment_replies lists them. The thread may not be complete.

Full API reference: parameters, code samples, response example and health
urlRequired
The content URL or profile URL required by content-oriented actions. content_detail and content_comments accept answer, article, or video links (question pages are not supported); profile and user_articles accept zhihu.com/people/ profile links.

What do the Zhihu comment_replies parameters mean?

List the replies under one Zhihu comment, up to 100 per call, with text, likes, time and replier. Pass the content link plus a comment_id from a comments row whose reply count is above zero; when the response has next_page_token, pass it back as page_token for the next page. reply_count may be absent, and some rows carry more fields, such as depth, reply_to_id, dislike_count and ip_location.

Full API reference: parameters, code samples, response example and health
urlRequired
The content URL or profile URL required by content-oriented actions. content_detail and content_comments accept answer, article, or video links (question pages are not supported); profile and user_articles accept zhihu.com/people/ profile links.
comment_idRequired
The comment identifier required by comment_replies, taken from a content_comments row whose reply_count is non-zero.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page is one call. Tokens last 24 hours, and a response without next_page_token has no further page.

What do the Zhihu profile parameters mean?

Look up a Zhihu author from a zhihu.com/people/ link and get bio, followers, verification label, answer and article totals and upvotes received. Content links do not work here, and the verification label does not vouch for identity.

Full API reference: parameters, code samples, response example and health
urlRequired
The content URL or profile URL required by content-oriented actions. content_detail and content_comments accept answer, article, or video links (question pages are not supported); profile and user_articles accept zhihu.com/people/ profile links.

What do the Zhihu user_articles parameters mean?

Gather a Zhihu author's published pieces from their profile link, up to 100 per call, with type, title, full text, likes, comments, favorites and date. Rows share the shape of search results, and one batch may not cover the author's full archive.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu profile link (https://www.zhihu.com/people/<profile ID>) or the profile ID alone. If the user does not exist, the call returns 200 with an empty result and empty_reason set to account_not_found; the call is not charged and does not need to be retried. A repeat for the same user within 10 minutes returns the same result, also free.
Zhihu: Public Articles Are Not Granted for Arbitrary Republication or Model Training — Intellectual property terms in the Zhihu agreement require verifying relevant authorizations from the author and platform, while restricting unauthorized scraping, commercial use, and AI model development or training. Reading the content does not replace these permissions, nor does it indicate an endorsement by Zhihu. · Checked

What do the Zhihu hot_list parameters mean?

Take Zhihu's hot list in one call, up to 30 questions. Each has rank, title, excerpt, heat value as a whole number, answer count, number of followers, comment count and cover image. Heat compares only within the list. Pass a question's link to question_answers to read its answers.

Full API reference: parameters, code samples, response example and health

This action has no business parameters. Send only the platform and action identifiers.

What do the Zhihu question_answers parameters mean?

Read the answers under one Zhihu question from its link, an answer link or the question ID, up to 20 per call. Each answer has full text, upvotes, comments, saves, thanks, publish and edit times, and the author's name, bio, followers and verification. Sort by Zhihu's default order or by most recently updated. Only the first page is available.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu question link (https://www.zhihu.com/question/<question ID>), a link to an answer under that question, or the numeric question ID.
sortOptional
Answer order: default follows Zhihu's own order (default) and updated puts the most recently updated answers first.
Allowed values:defaultupdated

What do the Zhihu user_answers parameters mean?

Page through the answers a Zhihu user wrote, newest first, 20 per page, from a profile link or profile ID. Each answer has the question it answers, full text, upvotes, comments, publish and edit times. Find the profile ID with user_search.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu profile link (https://www.zhihu.com/people/<profile ID>) or the profile ID alone. Nicknames are not accepted; find the profile ID with user_search first. If the user does not exist, the call returns 200 with an empty result and empty_reason set to account_not_found; the call is not charged and does not need to be retried. A repeat for the same user within 10 minutes returns the same result, also free.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received. 20 answers per page, newest first; each page is one call.

What do the Zhihu user_pins parameters mean?

Page through a Zhihu user's pins (short posts), newest first, 20 per page. Each pin has its text, images, likes, comments, reposts, saves and publish time.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu profile link (https://www.zhihu.com/people/<profile ID>) or the profile ID alone. Nicknames are not accepted.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received. 20 pins per page, newest first; each page is one call.

What do the Zhihu user_search parameters mean?

Find Zhihu users by nickname or keyword, 20 per page, with profile ID, bio, followers, answer and article totals, upvotes received and recognition label. The profile ID works in profile, user_answers and user_pins.

Full API reference: parameters, code samples, response example and health
keywordRequired
A nickname or keyword to find Zhihu users; each returned username works in profile, user_answers and user_pins.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received. 20 users per page; each page is one call.

What do the Zhihu column_search parameters mean?

Find Zhihu columns on a topic, 20 per page, with title, description, followers, upvotes, article count and author.

Full API reference: parameters, code samples, response example and health
keywordRequired
A keyword to find Zhihu columns; use Chinese terms for Chinese-language columns.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received. 20 columns per page; each page is one call.

What do the Zhihu scholar_search parameters mean?

Search Chinese journal papers on Zhihu's academic channel by keyword, with title, abstract opening, authors, keywords, journal, year, volume and issue.

Full API reference: parameters, code samples, response example and health
keywordRequired
A keyword to search Chinese journal papers on Zhihu's academic channel, matched in titles, keywords, authors and abstracts. Chinese-language terms work best, for example the Chinese term for large language model.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received. Page size varies (often about 10) and the last page has no next_page_token; each page is one call.

What do the Zhihu salt_search parameters mean?

Search Zhihu Yan Selection (paid) content by keyword, 20 per page, with title, free opening, column, cover, date and upvotes; the paid body is not included.

Full API reference: parameters, code samples, response example and health
keywordRequired
A keyword to search Zhihu Yan Selection (paid) content, such as a genre like mystery or a theme like the workplace; Chinese-language terms match best.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received. 20 results per page; each page is one call.

What do the Zhihu pin_comments parameters mean?

Read the comments on one Zhihu pin from its link or ID, up to 100 per call, with text, likes, reply count, time and commenter.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu pin link (https://www.zhihu.com/pin/<pin ID>) or the numeric pin ID, such as the id of a user_pins row.

What do the Zhihu topic_search parameters mean?

Find Zhihu topics by keyword, up to 20 from the first page in Zhihu's order, with topic link, name, icon, followers, question count and views.

Full API reference: parameters, code samples, response example and health
keywordRequired
A keyword to find Zhihu topics, 1 to 100 characters, such as Python. A longer keyword returns 422 and is not charged.

What do the Zhihu ebook_search parameters mean?

Search Zhihu ebooks by keyword, about 20 per page, with title, author, a short summary, cover, date and link, and whether the row is a whole book or one chapter. The paid body is not included.

Full API reference: parameters, code samples, response example and health
keywordRequired
A keyword to search Zhihu ebooks, 1 to 100 characters. A longer keyword returns 422 and is not charged.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the same keyword. About 20 ebooks per page, each page is one call, and the last page has no next_page_token; neighbouring pages can repeat a row or two, so dedupe on id.

What do the Zhihu search_suggest parameters mean?

Get the suggestions Zhihu shows under its search box for a word, up to 10 in display order, each with its rank.

Full API reference: parameters, code samples, response example and health
keywordRequired
The word to get suggestions for, 1 to 100 characters, such as Python. A longer keyword returns 422 and is not charged.

What do the Zhihu search_presets parameters mean?

List the preset words Zhihu rotates in its search box, about 30 of them returned at once, each with its rank and Zhihu's tag when it has one. No input needed.

Full API reference: parameters, code samples, response example and health

This action has no business parameters. Send only the platform and action identifiers.

What do the Zhihu search_discover parameters mean?

List the words in the Search discovery panel of Zhihu's search page, about 12 of them returned at once, each with its rank and Zhihu's tag (such as hot or new) when it has one. No input needed.

Full API reference: parameters, code samples, response example and health

This action has no business parameters. Send only the platform and action identifiers.

What do the Zhihu question_detail parameters mean?

Read one Zhihu question from its link or ID, with title, description, topics, answer, follower, view, comment and upvote counts, dates and the asker.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu question link (https://www.zhihu.com/question/<question ID>), an answer link under it, or the numeric question ID. An unrecognized link returns 422, and a question that does not exist returns 503; neither is charged.

What do the Zhihu pin_detail parameters mean?

Read one Zhihu pin from its link or ID, with text, likes, comments, reposts, saves, date and author, plus images or a video's cover and length when the pin has them.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu pin link (https://www.zhihu.com/pin/<pin ID>) or the numeric pin ID (the id of a user_pins row). An unrecognized link returns 422 and is not charged.

What do the Zhihu question_comments parameters mean?

Page through the top-level comments on one Zhihu question itself, not on its answers, 10 per page, with text, likes, reply count, time and commenter.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu question link (https://www.zhihu.com/question/<question ID>), an answer link under it, or the numeric question ID. The comments returned are on the question itself, not on its answers.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the same url. 10 top-level comments per page in Zhihu's default order, each page is one call, and the last page has no next_page_token.

What do the Zhihu column_articles parameters mean?

List the latest 10 items in a Zhihu column from its link or ID, without paging. Items can be articles, answers, pins or videos, each with title, excerpt, upvotes, comments and author.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu column link (https://www.zhihu.com/column/<column ID> or https://zhuanlan.zhihu.com/<column ID>) or the column ID on its own (the id of a column_search row). The latest 10 items come back, without paging.

What do the Zhihu related_articles parameters mean?

List the recommended articles shown under one Zhihu article, up to 12, with title, excerpt, upvotes, date and author.

Full API reference: parameters, code samples, response example and health

What do the Zhihu article_relationship parameters mean?

Read the line on one Zhihu article page that says how many people upvoted it, worded as Zhihu shows it.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu article link (https://zhuanlan.zhihu.com/p/<article ID>) or the numeric article ID.

What do the Zhihu article_comment_config parameters mean?

Read the comment settings a signed-out visitor sees on one Zhihu article: whether replies are open, the comment box hint and the picture limit. Zhihu returns the same settings for any article ID, so this cannot tell you whether an article exists.

Full API reference: parameters, code samples, response example and health
urlRequired
A Zhihu article link (https://zhuanlan.zhihu.com/p/<article ID>) or the numeric article ID.

How to use the Zhihu API

  1. 01Choose a platform action from the public catalog.
  2. 02Send the platform, action, and required parameters to POST /api/v1/social.
  3. 03Read the result from the response. For an asynchronous action, poll the returned job ID.
  4. 04Store the response fields that your application needs.
zhihu_search.sh
curl -X POST https://api.everyinfra.com/api/v1/social \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"zhihu","action":"search","params":{"keyword":"<keyword>"}}'

Zhihu API questions

What can I retrieve with the Zhihu API?

Set platform to zhihu. The current catalog lists search, content detail, content comments, comment replies, details, and more. These action names identify different Zhihu objects or views; they are not interchangeable search modes.

Which input starts the Zhihu search request?

The content search term for the Zhihu search action. Do not pass content URLs, author handles, or profile links to this parameter. Send it as keyword inside params.

Which fields can Zhihu search return?

Its declared schema includes type, title, text, and like_count. A declared field can still be absent from an individual record, and every other action has its own field list.

Does every Zhihu action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

Google Analytics needs consent. Privacy