# 知乎 学术论文搜索 API (zhihu.scholar_search)

- Canonical page: https://everyinfra.com/zhihu-api/scholar_search
- Endpoint: POST /api/v1/social with {"platform": "zhihu", "action": "scholar_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 up to 20 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- 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` 在知乎学术频道收录的中文期刊论文里检索，匹配范围是标题、关键词、作者和摘要。每条结果带标题、`text`、作者署名 `author_names`、期刊 `journal`、发表年份 `year`、卷号 `volume`、期号 `issue` 和论文自带的关键词 `keywords`。它回答「这个主题在中文期刊上有哪些论文、发在哪里」，适合做文献摸底和选题调研。

`keyword` 可以填大语言模型、碳中和这类主题词。每页最多 20 条，条数不固定，多为 10 篇上下，所以一页条数少不代表翻到底了，只有响应里没有 `next_page_token` 才是最后一页。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 按关键词搜知乎学术频道收录的中文期刊论文，例如 大语言模型、碳中和；在标题、关键词、作者和摘要里匹配。 |
| page_token | not declared | no | not declared | 翻页令牌。第一页不传；之后把上一页响应里的 next_page_token 原样传回取下一页。每页条数不固定（多为 10 篇上下），最后一页没有 next_page_token；每页算一次调用。 |

## 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 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| author_names | 论文作者，按署名顺序（scholar_search）。 |
| keywords | 论文关键词（scholar_search）。 |
| journal | 刊登论文的期刊名（scholar_search）。 |
| year | 论文发表年份（scholar_search）。 |
| volume | 期刊卷号（scholar_search）；没有卷号的期刊没有这个字段。 |
| issue | 期刊期号（scholar_search）。 |
| next_page_token | platform-native meaning |
| 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": "scholar_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": "scholar_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": "scholar_search",
  "results": [
    {
      "id": …,
      "type": …,
      "url": …,
      "title": …,
      "text": …,
      "author_names": …,
      "keywords": …,
      "journal": …,
      "year": …,
      "volume": …,
      "issue": …,
      "next_page_token": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 找论文用学术论文搜索，还是专栏搜索？

找期刊论文、要作者署名、期刊和年份时用这一页；找持续写作的专栏和作者、要关注人数和文章数时，用专栏搜索。两页都按 `keyword` 检索、都靠 `page_token` 翻页，但返回的对象不同：这里的 `type` 是 paper，专栏那一页是 column。

### 论文的作者、期刊和年份怎么读？

`author_names` 按署名顺序给出作者，`journal` 是期刊名，`year` 是发表年份，`volume` 和 `issue` 是卷号和期号。没有卷号的期刊不返回 `volume`，读取时按字段缺失处理，不要当成空字符串。`keywords` 是论文自带的关键词，可以拿来做主题聚类。

### 怎么判断论文搜索翻到头了？

看响应顶层有没有 `next_page_token`：没有才是最后一页。这里每页条数不固定，所以不能用「这一页不满 20 条」判断到底；`limit` 不起作用，每页给多少条由平台决定。每翻一页算一次调用，按页数估算调用量。

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