# Zhihu API

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`.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "zhihu", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/zhihu-api](https://everyinfra.com/en/zhihu-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### 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.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): The content search term for the Zhihu search action. Do not pass content URLs, author handles, or profile links to this parameter.
  - `content_type` (optional): 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. One of: all, answer, article, video.
  - `page_token` (optional): 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.
  - `sort` (optional): Orders search results. Allowed values are general (default), upvote_count_descending for most-upvoted, and time_descending for newest publish. One of: general, time_descending, upvote_count_descending.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/search](https://everyinfra.com/en/zhihu-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/search.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): 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.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/content_detail](https://everyinfra.com/en/zhihu-api/content_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/content_detail.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests (every 20 rows count as one call)
- 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.
- Parameters:
  - `url` (required): 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.
- Returns fields: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/content_comments](https://everyinfra.com/en/zhihu-api/content_comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/content_comments.md)

### 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`.
- Sync delivery · Price: $0.56 per 1,000 requests (every 20 rows count as one call)
- 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. 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.
- Parameters:
  - `url` (required): 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_id` (required): The comment identifier required by comment_replies, taken from a content_comments row whose reply_count is non-zero.
  - `page_token` (optional): 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.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/comment_replies](https://everyinfra.com/en/zhihu-api/comment_replies?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/comment_replies.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): 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.
- Returns fields: author_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
- Capability page: [https://everyinfra.com/en/zhihu-api/profile](https://everyinfra.com/en/zhihu-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/profile.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests (every 20 rows count as one call)
- 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.
- Parameters:
  - `url` (required): 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.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/user_articles](https://everyinfra.com/en/zhihu-api/user_articles?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/user_articles.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 30 rows. There is no next page. Each page is billed once.
- Returns fields: rank, id, type, title, text, url, hot_value, answer_count, follower_count, comment_count, posted_at, cover_image_url, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/hot_list](https://everyinfra.com/en/zhihu-api/hot_list?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/hot_list.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each call returns one page of up to 20 rows. There is no next page. Each page is billed once.
- Parameters:
  - `url` (required): A Zhihu question link (https://www.zhihu.com/question/<question ID>), a link to an answer under that question, or the numeric question ID.
  - `sort` (optional): Answer order: `default` follows Zhihu's own order (default) and `updated` puts the most recently updated answers first. One of: default, updated.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/question_answers](https://everyinfra.com/en/zhihu-api/question_answers?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/question_answers.md)

### 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`.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each 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.
- Parameters:
  - `url` (required): 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_token` (optional): 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.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/user_answers](https://everyinfra.com/en/zhihu-api/user_answers?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/user_answers.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each 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.
- Parameters:
  - `url` (required): A Zhihu profile link (https://www.zhihu.com/people/<profile ID>) or the profile ID alone. Nicknames are not accepted.
  - `page_token` (optional): 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.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/user_pins](https://everyinfra.com/en/zhihu-api/user_pins?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/user_pins.md)

### 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`.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): A nickname or keyword to find Zhihu users; each returned `username` works in `profile`, `user_answers` and `user_pins`.
  - `page_token` (optional): 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.
- Returns fields: user_id, username, display_name, url, bio, avatar_url, gender, follower_count, answer_count, article_count, received_upvote_count, verification_label, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/user_search](https://everyinfra.com/en/zhihu-api/user_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/user_search.md)

### column_search — Column search
Find Zhihu columns on a topic, 20 per page, with title, description, followers, upvotes, article count and author.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): A keyword to find Zhihu columns; use Chinese terms for Chinese-language columns.
  - `page_token` (optional): 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.
- Returns fields: id, type, url, title, text, cover_image_url, follower_count, like_count, article_count, author_id, author_name, author_url, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/column_search](https://everyinfra.com/en/zhihu-api/column_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/column_search.md)

### 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.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): 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_token` (optional): 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.
- Returns fields: id, type, url, title, text, author_names, keywords, journal, year, volume, issue, next_page_token, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/scholar_search](https://everyinfra.com/en/zhihu-api/scholar_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/scholar_search.md)

### 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.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): 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_token` (optional): 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.
- Returns fields: id, type, url, title, text, column_title, cover_image_url, posted_at, like_count, comment_count, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/salt_search](https://everyinfra.com/en/zhihu-api/salt_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/salt_search.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- 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.
- Parameters:
  - `url` (required): 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.
- Returns fields: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/pin_comments](https://everyinfra.com/en/zhihu-api/pin_comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/pin_comments.md)

### 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.
- Sync delivery · Price: $0.79 per 1,000 requests
- 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.
- Parameters:
  - `keyword` (required): A keyword to find Zhihu topics, 1 to 100 characters, such as `Python`. A longer keyword returns 422 and is not charged.
- Returns fields: id, url, name, avatar_url, follower_count, question_count, visit_count, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/topic_search](https://everyinfra.com/en/zhihu-api/topic_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/topic_search.md)

### 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.
- Sync delivery · Price: $0.79 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): A keyword to search Zhihu ebooks, 1 to 100 characters. A longer keyword returns 422 and is not charged.
  - `page_token` (optional): 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`.
- Returns fields: id, type, url, title, text, author_name, cover_image_url, posted_at, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/ebook_search](https://everyinfra.com/en/zhihu-api/ebook_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/ebook_search.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `keyword` (required): The word to get suggestions for, 1 to 100 characters, such as `Python`. A longer keyword returns 422 and is not charged.
- Returns fields: rank, keyword, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/search_suggest](https://everyinfra.com/en/zhihu-api/search_suggest?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/search_suggest.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Returns fields: rank, keyword, label, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/search_presets](https://everyinfra.com/en/zhihu-api/search_presets?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/search_presets.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Returns fields: rank, keyword, label, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/search_discover](https://everyinfra.com/en/zhihu-api/search_discover?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/search_discover.md)

### 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.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `url` (required): 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.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/question_detail](https://everyinfra.com/en/zhihu-api/question_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/question_detail.md)

### 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.
- Sync delivery · Price: $0.79 per 1,000 requests
- Parameters:
  - `url` (required): 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.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/pin_detail](https://everyinfra.com/en/zhihu-api/pin_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/pin_detail.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Each 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.
- Parameters:
  - `url` (required): 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_token` (optional): 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`.
- Returns fields: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/question_comments](https://everyinfra.com/en/zhihu-api/question_comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/question_comments.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `url` (required): 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.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/column_articles](https://everyinfra.com/en/zhihu-api/column_articles?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/column_articles.md)

### related_articles — Recommended articles
List the recommended articles shown under one Zhihu article, up to 12, with title, excerpt, upvotes, date and author.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `url` (required): A Zhihu article link (https://zhuanlan.zhihu.com/p/<article ID>) or the numeric article ID. Up to 12 recommended articles come back, without paging.
- Returns fields: id, 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
- Capability page: [https://everyinfra.com/en/zhihu-api/related_articles](https://everyinfra.com/en/zhihu-api/related_articles?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/related_articles.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): A Zhihu article link (https://zhuanlan.zhihu.com/p/<article ID>) or the numeric article ID.
- Returns fields: id, url, type, text, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/article_relationship](https://everyinfra.com/en/zhihu-api/article_relationship?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/article_relationship.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): A Zhihu article link (https://zhuanlan.zhihu.com/p/<article ID>) or the numeric article ID.
- Returns fields: id, url, can_reply, can_segment_reply, is_anonymous, input_placeholder, picture_max_count, platform
- Capability page: [https://everyinfra.com/en/zhihu-api/article_comment_config](https://everyinfra.com/en/zhihu-api/article_comment_config?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/zhihu-api/article_comment_config.md)

## 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.

### Does Zhihu have an official API?

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 (checked 2026-11-30): [Zhihu data open platform: search API](https://developer.zhihu.com/docs?key=zhihu_search) · [Zhihu data open platform: hot list API](https://developer.zhihu.com/docs?key=hot_list) · [Zhihu data open platform: user content API](https://developer.zhihu.com/docs?key=user_contents) · [Zhihu data open platform: OAuth integration](https://developer.zhihu.com/docs?key=zhihu_oauth_integrated) · [Zhihu data open platform: Zhihu CLI and quotas](https://developer.zhihu.com/docs?key=zhihu_cli)

### Do I need a Zhihu developer account or API key?

No. Requests go through EveryInfra with an EveryInfra API key: sign up, create a key in the console and send it as `Authorization: Bearer <API_KEY>`. You do not register a Zhihu developer app, apply for Zhihu API access or sign in with a Zhihu account, and the actions return public Zhihu data only.

### How much does the Zhihu API cost per 1,000 requests?

each action's price is listed in the table on this page and in the public catalog. There is no subscription: you top up a USD balance and pay per call, and failed calls and empty results are not charged.

### 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.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=zhihu
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
