# 知乎 搜索发现 API (zhihu.search_discover)

- Canonical page: [https://everyinfra.com/zhihu-api/search_discover](https://everyinfra.com/zhihu-api/search_discover?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "zhihu", "action": "search_discover", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 12 per target, no next_page_token (to read further, page one target at a time with the single-target action; limit is ignored)
- Mode: sync; add "mode": "async" for slow tasks

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|


## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | 名次，从 1 开始：hot_list 是热榜名次；search_suggest、search_presets、search_discover 是词在知乎显示的顺序。 |
| keyword | 搜索框里的词：search_suggest 是对传入的词给出的联想词，search_presets 是搜索框里轮换显示的预设词，search_discover 是搜索页「搜索发现」里的词。 |
| label | 知乎给这个词标的角标（search_presets、search_discover），如 hot 热、new 新；没有角标时没有这个字段。 |
| 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": "search_discover",
  "params": {}
}'
```

```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": "search_discover",
        "params": {},
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:25:12Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 12. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "zhihu",
  "action": "search_discover",
  "results": [
    {
      "rank": 1,
      "keyword": "多所高校不向2027级研究生提供宿舍",
      "label": "hot",
      "platform": "zhihu"
    },
    {
      "rank": 2,
      "keyword": "AI证明黎曼猜想",
      "label": "hot",
      "platform": "zhihu"
    }
  ],
  "count": 12,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

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