# 知乎 API

按关键词搜索知乎内容，读取内容详情、评论及回复，按链接获取作者主页与文章，读取热榜，按问题链接列出问题下的回答。

- Domain: social · 15 data actions
- Canonical page: https://everyinfra.com/zhihu-api
- Failures and empty results never form a final charge.

## Actions

### search — 关键词搜索
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: keyword

- Optional: content_type, sort
- Allowed values: content_type (all/answer/article/video), sort (general/time_descending/upvote_count_descending)

- 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

### content_detail — 内容详情
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: url

- 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

### content_comments — 内容评论
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: url

- Returns fields: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform

### comment_replies — 评论回复
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: url, comment_id

- Returns fields: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform

### profile — 主页或对象详情
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: url

- 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

### user_articles — 用户文章
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: url

- 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

### hot_list — 热榜
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: —

- Returns fields: rank, id, type, title, text, url, hot_value, answer_count, follower_count, comment_count, posted_at, cover_image_url, platform

### question_answers — 问题下的回答
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: url

- Optional: sort
- Allowed values: sort (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

### user_answers — 用户回答
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: url

- Optional: page_token

- 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

### user_pins — 用户想法
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: url

- Optional: page_token

- 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

### user_search — 账号搜索
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: keyword

- Optional: page_token

- Returns fields: user_id, username, display_name, url, bio, avatar_url, gender, follower_count, answer_count, article_count, received_upvote_count, verification_label, platform

### column_search — 专栏搜索
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: keyword

- Optional: page_token

- Returns fields: id, type, url, title, text, cover_image_url, follower_count, like_count, article_count, author_id, author_name, author_url, platform

### scholar_search — 学术论文搜索
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: keyword

- Optional: page_token

- Returns fields: id, type, url, title, text, author_names, keywords, journal, year, volume, issue, next_page_token, platform

### salt_search — 盐选搜索
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: keyword

- Optional: page_token

- Returns fields: id, type, url, title, text, column_title, cover_image_url, posted_at, like_count, comment_count, platform

### pin_comments — 想法评论
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: url

- Returns fields: id, text, like_count, posted_at, reply_count, author_id, author_name, author_avatar_url, platform

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog
- Agents guide: https://everyinfra.com/agents.md
