# 知乎 专栏搜索 API (zhihu.column_search)

- Canonical page: https://everyinfra.com/zhihu-api/column_search
- Endpoint: POST /api/v1/social with {"platform": "zhihu", "action": "column_search", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, one page of 20 per call (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

知乎专栏搜索按 `keyword` 找相关的知乎专栏，每个带专栏名、封面、关注人数 `follower_count`、收录的文章数 `article_count`、点赞数，以及作者昵称和主页链接 `author_url`。它回答「这个领域在知乎上有哪些持续写作的专栏、谁在写」，适合找专业作者合作、做内容竞品调研，或者为一个主题收集深度长文的来源。每页固定 20 个专栏，最后一页可能更少，`limit` 照收但不起作用。`cover_image_url` 是专栏封面，做作者名单或选题看板时可以直接配图。

结果按页返回，要更多就把 `next_page_token` 作为 `page_token` 传回取下一页；结果里的 `type` 都是 column。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=zhihu&action=column_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 按关键词找知乎专栏，例如 人工智能。 |
| page_token | not declared | no | not declared | 翻页令牌。第一页不传；之后把上一页响应里的 next_page_token 原样传回取下一页。每页 20 个专栏，每页算一次调用。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| type | 内容类型（answer 回答 / article 文章 / video 视频；hot_list 上是 question 问题；user_pins 是 pin 想法；column_search 是 column 专栏；salt_search 是盐选商品类型，如 paid_column_chapter 付费专栏的一篇；scholar_search 是 paper 论文）。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| cover_image_url | 封面图。 |
| follower_count | 关注人数：hot_list 是关注这个问题的人数；user_search 是账号粉丝数；column_search 是关注这个专栏的人数。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| article_count | 文章数：profile、user_search 是这个账号的文章总数；column_search 是这个专栏收录的文章数。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_name | 作者昵称（显示名）。 |
| author_url | 作者主页链接。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "zhihu",
  "action": "column_search",
  "params": {
    "keyword": "python"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "zhihu",
        "action": "column_search",
        "params": {
            "keyword": "python",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "zhihu",
  "action": "column_search",
  "results": [
    {
      "id": …,
      "type": …,
      "url": …,
      "title": …,
      "text": …,
      "cover_image_url": …,
      "follower_count": …,
      "like_count": …,
      "article_count": …,
      "author_id": …,
      "author_name": …,
      "author_url": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 怎么判断一个专栏是否值得关注？

同时看 `follower_count` 和 `article_count`：关注人数多说明读者认可，文章数多说明作者一直在写。关注人数高而文章数少，说明读者是被少量内容吸引的；文章数多而关注人数低，说明产出多但读者有限。两项都高的专栏最值得先看。做名单时，把每页的 `follower_count`、`article_count`、`like_count` 存成一张表再排序；每页算一次调用。`like_count` 为 null 表示接口不公开，不等于 0。

### 专栏搜索和盐选搜索有什么区别？

专栏搜索以专栏为单位返回，适合找作者和长期的内容来源；盐选搜索找的是盐选付费内容，以单篇为单位返回，并标出所属的付费专栏或故事集。和学术论文搜索那一页相比，这里没有论文的作者署名、期刊和年份，多出的是封面、关注人数、文章数和作者链接，所以它适合找人和找来源，不适合查文献。盐选搜索的结果不带作者字段，想从搜索结果里找到作者，用专栏搜索。

### 怎么读到专栏作者的文章？

结果里的 `url` 是专栏链接，`author_url` 是作者主页。把作者主页链接交给知乎的用户文章，就能列出这位作者写的文章。`article_count` 是这个专栏收录的文章数，不等于作者在知乎写过的全部文章数，要后者请读用户文章。`author_id` 可以用来把同一作者的专栏归到一起比较，`author_name` 只是显示名。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=zhihu
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
