知乎 / Zhihu API - 搜索、回答文章、评论、用户数据
Pricing
from $3.99 / 1,000 dataset items
知乎 / Zhihu API - 搜索、回答文章、评论、用户数据
社媒数据助手 SocialDataX 提供的只读知乎 / Zhihu data API,支持知乎搜索 / Zhihu content search、回答和文章详情、评论 / comments、评论回复 / comment replies、用户资料 / creator profile 和用户文章列表,结果可导出 CSV、Excel、JSON 或通过 Apify API 使用。
Pricing
from $3.99 / 1,000 dataset items
Rating
0.0
(0)
Developer
SocialDataX
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
5 days ago
Last modified
Categories
Share
知乎 / Zhihu Data API by SocialDataX
SocialDataX provides a read-only Zhihu / 知乎 data API on Apify. Use it to export structured Zhihu search results, answer/article/video details, comments, comment replies, creator profiles, and creator article lists into an Apify Dataset.
Apify users do not need to configure a SocialDataX API Key. The Actor owner configures SOCIALDATAX_API_KEY as an Apify secret.
What It Supports
search_contents: 知乎内容搜索 / Zhihu content search by keyword.get_content_detail: 回答、专栏文章、视频详情 / answer, article, or video details.get_content_comments: 一级评论 / top-level comments.get_comment_replies: 评论回复 / comment replies.get_user_info: 用户资料 / creator profile.list_user_articles: 用户发布文章列表 / creator articles.
Input Example
{"operation": "search_contents","keyword": "露营","content_type": "all","sort_type": "general","publish_time_range": "all","page_token": "","max_items": 20,"auto_paginate": true}
max_items defaults to 50 and can be set up to 1000. When auto_paginate is enabled, the Actor keeps requesting the next page until it reaches max_items, there is no next page, or a safety limit is reached. Each page request counts as one SocialDataX API request.
Output
Results are written to the default Apify Dataset as flat rows. This makes the output easy to export as JSON, CSV, Excel / XLSX, JSONL, or consume from the Apify API.
Common fields include:
- Query fields:
query_keyword,query_content_url,query_profile_url,query_page_token. - Page fields:
page_request_index,page_item_count,page_next_page_token,page_has_more. - Content fields:
content_id,content_type,title,summary,content_url,upvote_count,comment_count,publish_time. - Author fields:
author_user_id,author_name,author_profile_url,author_follower_count. - Zhihu-specific objects flattened as
question_*,answer_*, andvideo_*.
The OUTPUT key-value store record keeps a lightweight run summary with operation, request count, page summaries, warnings, and failure details. Full result rows are in the Dataset.
API Usage
Run and get Dataset items synchronously:
curl "https://api.apify.com/v2/acts/socialdatax~socialdatax-zhihu-data-api/run-sync-get-dataset-items?token=$APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"operation": "search_contents","keyword": "露营","content_type": "all","sort_type": "general","publish_time_range": "all","max_items": 20,"auto_paginate": true}'
For detail and comment operations, use content_url returned by search/detail rows. Supported content URL examples:
https://www.zhihu.com/question/{question_id}/answer/{answer_id}https://zhuanlan.zhihu.com/p/{article_id}https://www.zhihu.com/zvideo/{video_id}
For user operations, use a Zhihu profile URL like:
https://www.zhihu.com/people/{url_token}
Pricing
Recommended Apify Pay per event setup:
apify-default-dataset-item:$0.00399 / Dataset itemapify-actor-start:$0.00005 / run
Operator Setup
Set these environment variables in Apify Console for the Actor owner:
SOCIALDATAX_API_KEY: required, stored as an Apify secret.SOCIALDATAX_API_BASE_URL: optional, defaults tohttps://mcp.socialdatax.com.
For help, visit socialdatax.com.