Zhihu Scraper & API | EveryInfra avatar

Zhihu Scraper & API | EveryInfra

Pricing

from $40.10 / 1,000 search requests

Go to Apify Store
Zhihu Scraper & API | EveryInfra

Zhihu Scraper & API | EveryInfra

Unofficial Zhihu data via one Actor: search, content_detail, content_comments, comment_replies, profile, user_articles, hot_list, question_answers, user_answers, user_pins, user_search, column_search and 3 more. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

Pricing

from $40.10 / 1,000 search requests

Rating

0.0

(0)

Developer

ECHO

ECHO

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Search Zhihu content, users, columns, topics, ebooks, Salt 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.

Actions

ActionWhat you getRequiredOptionalResults per requestPrice per request
searchFind what Zhihu users write about a topic, up to 100 per call. 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, sort20 (up to 100)$0.0401
content_detailRead 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—1$0.0021
content_commentsCollect 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—20 (up to 100)$0.0081
comment_repliesList the replies under one Zhihu comment, up to 100 per call, with text, likes, reply count, time and replier. Pass the content link plus a comment_id from a comments row whose reply count is above zero.url, comment_id—20 (up to 100)$0.0033
profileLook 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—1$0.0021
user_articlesGather 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—20 (up to 100)$0.0061
hot_listTake 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.——30 (up to 30)$0.0108
question_answersRead the answers under one Zhihu question from its link, an answer link or the question ID, up to 20 per call, 20 by default. 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.urlsort20 (up to 20)$0.0512
user_answersPage 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_tokenall the source returns$0.0021
user_pinsPage 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_tokenall the source returns$0.0021
user_searchFind 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_tokenall the source returns$0.0021
column_searchFind Zhihu columns on a topic, 20 per page, with title, description, followers, upvotes, article count and author.keywordpage_tokenall the source returns$0.0021
scholar_searchSearch Chinese journal papers on Zhihu's academic channel by keyword, with title, abstract opening, authors, keywords, journal, year, volume and issue.keywordpage_tokenall the source returns$0.0021
salt_searchSearch Zhihu Salt (paid) content by keyword, 20 per page, with title, free opening, column, cover, date and upvotes; the paid body is not included.keywordpage_tokenall the source returns$0.0021
pin_commentsRead 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—20 (up to 100)$0.0321

Input

Pick an action and fill the fields it uses. Example:

{
"action": "search",
"keyword": "\u5982\u4f55\u5b66\u4e60\u6444\u5f71"
}

Fields that another action needs are ignored when left empty. API users can also pass {"action": ..., "params": {...}}.

Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's OUTPUT record holds next_page_token.

  • search: 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
  • content_detail: 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
  • content_comments: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform
  • comment_replies: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform
  • profile: 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
  • user_articles: 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
  • hot_list: rank, id, type, title, text, url, hot_value, answer_count, follower_count, comment_count, posted_at, cover_image_url, platform
  • question_answers: 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
  • user_answers: 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
  • user_pins: 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
  • user_search: user_id, username, display_name, url, bio, avatar_url, gender, follower_count, answer_count, article_count, received_upvote_count, verification_label, platform
  • column_search: id, type, url, title, text, cover_image_url, follower_count, like_count, article_count, author_id, author_name, author_url, platform
  • scholar_search: id, type, url, title, text, author_names, keywords, journal, year, volume, issue, next_page_token, platform
  • salt_search: id, type, url, title, text, column_title, cover_image_url, posted_at, like_count, comment_count, platform
  • pin_comments: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform

Field notes

  • cover_image_url: Cover image URL.
  • author_avatar_url: Author avatar URL; on comment results, the commenter's avatar.
  • author_bio: Author bio as written on Zhihu.
  • author_verified: Whether the author is verified.
  • author_verification_label: Verification description of the author, such as a profession or institution.
  • rank: Hot-list position from 1 (hot_list), in Zhihu's order.
  • hot_value: Heat shown on the hot list (hot_list), converted from text such as 5.97 million heat to the whole number 5970000; compare it only within the list.
  • answer_count: Answer count: on profile, the answers the author has written; on hot_list, the answers under the question.
  • follower_count: Followers: on hot_list, people following the question; on user_search, the user's followers; on column_search, people following the column; on topic_search, people following the topic.
  • username: Zhihu profile ID (user_search), the part after zhihu.com/people/; pass it as url to profile, user_answers or user_pins.
  • gender: Gender (user_search): male or female; absent when the user does not show it.
  • verification_label: Recognition Zhihu shows for the account (user_search), such as an excellent-answerer badge or an organisation verification; absent when there is none.
  • repost_count: Times the pin was reposted (user_pins).
  • image_urls: Images in the pin (user_pins); absent for text-only pins.
  • column_title: Name of the paid column or story collection the Salt item belongs to (salt_search).
  • author_names: Paper authors in byline order (scholar_search).
  • keywords: Paper keywords (scholar_search).
  • journal: Journal that published the paper (scholar_search).
  • year: Publication year of the paper (scholar_search).
  • volume: Journal volume (scholar_search); absent for journals without volumes.
  • issue: Journal issue (scholar_search).
  • question_id: ID of the question the answer belongs to (question_answers), the same as the requested question.
  • thanks_count: Thanks the answer has received (question_answers).
  • updated_at: When the answer was last edited (question_answers), ISO 8601 in UTC; the same as posted_at when never edited.
  • question_count: Number of questions under the topic (topic_search).
  • visit_count: Views of the topic (topic_search).
  • article_count: Number of articles. For profile and user_search, it is the total articles of the account; for column_search, it is the number of articles in the column.
  • can_reply: Whether commenting is allowed (article_comment_config), as shown to visitors who are not logged in.
  • can_segment_reply: Whether commenting on a segment of the article is allowed (article_comment_config).
  • input_placeholder: Placeholder text in the comment box (article_comment_config).
  • is_anonymous: Whether the comment box is in anonymous mode (article_comment_config).
  • keyword: Search box term. In search_suggest, it is a suggested term for the input term; in search_presets, it is a preset term rotating in the search box; in search_discover, it is a term in the "search discover" section of the search page.
  • label: Corner badge Zhihu puts on this term (search_presets, search_discover), such as hot or new. The field is absent when there is no badge.
  • picture_max_count: Maximum number of images a comment can include (article_comment_config).
  • received_upvote_count: Total upvotes received (profile, user_search).
  • topics: Topic names of the question (question_detail), in the order Zhihu gives them.
  • duration_sec: Length of the pin's video in seconds, the same value as duration_seconds (both names are returned) (pin_detail); present only for pins with a video.
  • next_page_token: Page token (scholar_search): pass it back unchanged as page_token on the next request to get the next page; every row of a page carries the same value. Page size varies (usually about 10 papers); the last page has no such field.

Pricing

Pay per event, charged only when a run delivers data:

  • search: $0.0401, one event per started block of 20 results.
  • content_detail: $0.0021, one event per non-empty request, whatever the row count.
  • content_comments: $0.0081, one event per started block of 20 results.
  • comment_replies: $0.0033, one event per started block of 20 results.
  • profile: $0.0021, one event per non-empty request, whatever the row count.
  • user_articles: $0.0061, one event per started block of 20 results.
  • hot_list: $0.0108, one event per non-empty request, whatever the row count.
  • question_answers: $0.0512, one event per non-empty request, whatever the row count.
  • user_answers: $0.0021, one event per non-empty request, whatever the row count.
  • user_pins: $0.0021, one event per non-empty request, whatever the row count.
  • user_search: $0.0021, one event per non-empty request, whatever the row count.
  • column_search: $0.0021, one event per non-empty request, whatever the row count.
  • scholar_search: $0.0021, one event per non-empty request, whatever the row count.
  • salt_search: $0.0021, one event per non-empty request, whatever the row count.
  • pin_comments: $0.0321, one event per started block of 20 results.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

Notes

  • Results reflect what is publicly visible when the run happens; counts can be lower than requested.
  • One run makes one request. For more pages, start another run with page_token where the action supports it.
  • This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Zhihu or its owner; names and trademarks belong to their respective owners.

Support

Open an issue on this Actor's Issues tab with the run ID.