Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Zhihu Topic Search (V3)

API 文档
https://api.sandbase.ai/v1/api/zhihu/web/topic-search-v3

Searches Zhihu topics by keyword and returns matching topic profiles, follower metrics, and highlighted text matches with pagination support.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 2 个可选
每天 100 次免费调用每天前 100 次调用免费(按组织共享)· UTC 00:00 重置。之后按次计费。

Playground

输入
Search Keywords
Number of topics per page
Offset
输出示例
响应outputs · 7.7 KB · 183 行
[
  {
    "data": {
      "ab_params": "dm_l2_ab=1;dm_ks_memory=0;dm_preset_opt=1;sb_cr=0;bt_holdback_2025=0;dm_ai_card_cache=0;dm_aicard_mutex=0;dm_vote_score=0;dm_l1_rel=1;dm_router_rewrite=0;sb_novel_member=1;sb_sku_rel=1;sb_cardfilter=1;sb_eduzhi=1;dm_correct=1;dm_question_limit=2;dm_l2_ctr_v4=0;dm_ai_hot_recall=0;sb_storytag=1;sb_slot_time=2;dm_test=1;sb_slot_domain=2;sb_fea_0914=0;dm_hot_pin=1;dm_queryrewrite_r=0;sb_sku_ui=1;dm_pre_docs=2;dm_l3_multi3=1;dm_ai_prompt=3;sb_vip_xunzhi=1;sb_paid_recency=0;sb_nvip_ecpm=1;dm_l2_snp_v2=1;dm_query_rewrite=2;sb_story_ca=1;sb_ff=0;sb_sku_time=1;bt_member_verify=1;dm_ai_corner1=0;dm_tag_…",
      "data": [
        {
          "highlight": {
            "description": "由 Elon Musk, Peter Thiel, Sam Altman",
            "title": "<em>OpenAI</em>"
          },
          "hit_labels": null,
          "id": "20083046",
          "index": 0,
          "object": {
            "agreed_count": 0,
            "ai_ranking_list_url": "",
            "aliases": [],
            "attached_info_bytes": "OvEBCgtwbGFjZWhvbGRlchIgZTgxMzEzOWUwZjkzOGZhZTQ2ZTJlMzI1ZjFhMzk0NDMYAiIGMTgwNDc2KggyMDA4MzA0NkoGb3BlbmFpUABYA2ABagZPcGVuQUlwBIAB2rj9ybSllwOYAQCgAQCoAQCwAQG4AQDQAdGBrskF6AGUM4ACAbgCAIoDAJIDEzIwNTQ5MDAxMDY1MDgzODI2MzOaAwCiAwkxMDFfM18zLjCqAwDCAwx6c2VhcmNoX3Jvb3TgBAD6BACCBSBlODEzMTM5ZTBmOTM4ZmFlNDZlMmUzMjVmMWEzOTQ0M4oFBuWFtuS7lg==",
            "avatar_url": "https://pic4.zhimg.com/80/v2-4a85355a9ea1acc515ddabc2b3d1d4b1_qhd.jpg",
            "description": "由 Elon Musk, Peter Thiel, Sam Altman",
            "excerpt": "由 Elon Musk, Peter Thiel, Sam Altman",
            "follower_count": 6548,
            "followers_count": 6548,
            "has_meta": true,
            "id": "20083046",
            "introduction": "由 Elon Musk, Peter Thiel, Sam Altman",
            "is_following": false,
            "liked": false,
            "meta": {
              "category": "n_wiki",
              "description": "",
              "description1": "OpenAI是一家人工智能公司,成立于2015年12月。OpenAI会和谷歌、苹果、IBM等知名公司创办的其它一系列项目一道探索先进计算机技术,解决面部识别或语言翻译等问题。2015年12月12日,非盈利性的人工智能项目—OpenAI宣布正式启动。",
              "description2": "",
              "id": 1023629754540343300,
              "subtitle": "",
              "template": {
                "avatar_type": 1,
                "meta_template_type": 0
              },
              "title": "OpenAI",
              "type": "metapedia"
            },
            "name": "<em>OpenAI</em>",
            "questions_count": 14586,
            "score": 10.955694198608398,
            "sub_category": "",
            "top_answer_count": 767067,
            "topic_type": "NORMAL",
            "type": "topic",
            "url": "https://api.zhihu.com/topics/20083046",
            "visit_count": 1414373870
          },
          "type": "search_result"
        },
        {
          "highlight": {
            "description": "",
            "title": "<em>OpenAI</em>发布当前最强模型GPT5.2"
          },
          "hit_labels": null,
          "id": "1982653700737610541",
          "index": 1,
          "object": {
            "agreed_count": 0,
            "ai_ranking_list_url": "",
            "aliases": [],
            "attached_info_bytes": "OvwBCgtwbGFjZWhvbGRlchIgZTgxMzEzOWUwZjkzOGZhZTQ2ZTJlMzI1ZjFhMzk0NDMYAiIHNDI0OTcwMSoTMTk4MjY1MzcwMDczNzYxMDU0MUoGb3BlbmFpUABYA2ABagZPcGVuQUlwBIAB2rj9ybSllwOYAQCgAQGoAQCwAQG4AQDQAYa47MkG6AEAgAIBuAIAigMAkgMTMjA1NDkwMDEwNjUwODM4MjYzM5oDAKIDCTEwMV8zXzMuMKoDAMIDDHpzZWFyY2hfcm9vdOAEAPoEAIIFIGU4MTMxMzllMGY5MzhmYWU0NmUyZTMyNWYxYTM5NDQzigUG5YW25LuW",
            "avatar_url": "https://picx.zhimg.com/80/v2-40e779d5c5e6bcebda41e92d50594618.jpg?source=4e949a73",
            "description": "",
            "excerpt": "",
            "follower_count": 0,
            "followers_count": 0,
            "has_meta": true,
            "id": "1982653700737610541",
            "introduction": "",
            "is_following": false,
            "liked": false,
            "meta": {
              "category": "basic",
              "description": "",
              "id": 0,
              "template": {
                "avatar_type": 1,
                "meta_template_type": 0
              },
              "title": "OpenAI发布当前最强模型GPT5.2",
              "type": "metapedia"
            },
            "name": "<em>OpenAI</em>发布当前最强模型GPT5.2",
            "questions_count": 3,
            "score": 0.9963617324829102,
            "sub_category": "",
            "top_answer_count": 406,
            "topic_type": "NORMAL",
            "type": "topic",
            "url": "https://api.zhihu.com/topics/1982653700737610541",
            "visit_count": 792660
          },
          "type": "search_result"
        },
        {
          "highlight": {
            "description": "",
            "title": "<em>OpenAI</em>发布GPT5.5"
          },
          "hit_labels": null,
          "id": "2030951359864909854",
          "index": 2,
          "object": {
            "agreed_count": 0,
            "ai_ranking_list_url": "",
            "aliases": [],
            "attached_info_bytes": "OvwBCgtwbGFjZWhvbGRlchIgZTgxMzEzOWUwZjkzOGZhZTQ2ZTJlMzI1ZjFhMzk0NDMYAiIHNDYzODc0OSoTMjAzMDk1MTM1OTg2NDkwOTg1NEoGb3BlbmFpUABYA2ABagZPcGVuQUlwBIAB2rj9ybSllwOYAQCgAQKoAQCwAQG4AQDQAbmhq88G6AEAgAIBuAIAigMAkgMTMjA1NDkwMDEwNjUwODM4MjYzM5oDAKIDCTEwMV8zXzMuMKoDAMIDDHpzZWFyY2hfcm9vdOAEAPoEAIIFIGU4MTMxMzllMGY5MzhmYWU0NmUyZTMyNWYxYTM5NDQzigUG5YW25LuW",
            "avatar_url": "https://pica.zhimg.com/80/v2-40e779d5c5e6bcebda41e92d50594618.jpg?source=4e949a73",
            "description": "",
            "excerpt": "",
            "follower_count": 0,
            "followers_count": 0,
            "has_meta": true,
            "id": "2030951359864909854",
            "introduction": "",
            "is_following": false,
            "liked": false,
            "meta": {
              "category": "basic",
              "description": "",
              "id": 0,
              "template": {
                "avatar_type": 1,
                "meta_template_type": 0
              },
              "title": "OpenAI发布GPT5.5",
              "type": "metapedia"
            },
            "name": "<em>OpenAI</em>发布GPT5.5",
            "questions_count": 2,
            "score": 0.9953414797782898,
            "sub_category": "",
            "top_answer_count": 59,
            "topic_type": "NORMAL",
            "type": "topic",
            "url": "https://api.zhihu.com/topics/2030951359864909854",
            "visit_count": 22206
          },
          "type": "search_result"
        },
        "… 17 more items in the full response"
      ],
      "domain_info": {
        "first_category": ""
      },
      "filter_items": null,
      "hit_labels": null,
      "is_brand_word": false,
      "is_koc_words": false,
      "item_in_view": [
        {
          "index": 5,
          "token": "b62a7302709544129797697d76efeb6c",
          "type": "user_survey"
        },
        {
          "index": 9,
          "type": "ask_question"
        }
      ],
      "paging": {
        "is_end": false,
        "next": "https://api.zhihu.com/search_v3?advert_count=0&correction=1&filter_fields=&gk_version=gz-gaokao&lc_idx=0&limit=20&offset=20&q=OpenAI&search_hash_id=e813139e0f938fae46e2e325f1a39443&search_source=Normal&show_all_topics=0&t=topic&vertical_info=0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0"
      },
      "pendant": null,
      "related_search_result": [],
      "search_action_info": {
        "attached_info_bytes": "OqQBEiBlODEzMTM5ZTBmOTM4ZmFlNDZlMmUzMjVmMWEzOTQ0M0oGb3BlbmFpUABYA2ABagZPcGVuQUlwBIAB2rj9ybSllwOAAgG4AgCKAwCSAxMyMDU0OTAwMTA2NTA4MzgyNjMzmgMAogMJMTAxXzNfMy4w4AQA+gQAggUgZTgxMzEzOWUwZjkzOGZhZTQ2ZTJlMzI1ZjFhMzk0NDOKBQblhbbku5Y=",
        "isfeed": false,
        "lc_idx": 20,
        "search_hash_id": "e813139e0f938fae46e2e325f1a39443"
      },
      "sensitive_level": -1,
      "warning": ""
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Zhihu Topic Search (V3) API

This API searches Zhihu topics by keyword. It returns a list of matching topics with their IDs, names, follower counts, and highlighted text. It needs one input, keyword.

Use cases

  • Find the Zhihu topic ID for a brand or subject such as OpenAI.
  • Compare follower_count across topics that match the same keyword to see which has the largest audience.
  • Show matched terms in a search UI by using the <em> tags in the highlight text.
  • Collect topic avatars and descriptions to build a directory of topics on one theme.

Request

curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/topic-search-v3" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch Keywords
limitstringNoNumber of topics per page
offsetstringNoOffset

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "ab_params": "dm_ai_search_safe=1;dm_recency_ab=1;sb_cr=1;sb_vip_tag=1;sb_sku_time=1;dm_correc…",
  "data": [
    {
      "highlight": {
        "description": "由 Elon Musk, Peter Thiel, Sam Altman",
        "title": "<em>OpenAI</em>"
      },
      "hit_labels": null,
      "id": "20083046",
      "index": 0,
      "object": {
        "agreed_count": 0,
        "ai_ranking_list_url": "",
        "aliases": [],
        "attached_info_bytes": "OvEBCgtwbGFjZWhvbGRlchIgZjYyOWJjOGQwZDRmMDljZmNkMDgzMWYyYTFkNzI3OTQYAiIGMTgwNDc2…",
        "avatar_url": "https://pic1.zhimg.com/80/v2-4a85355a9ea1acc515ddabc2b3d1d4b1_qhd.jpg",
        "description": "由 Elon Musk, Peter Thiel, Sam Altman",
        "excerpt": "由 Elon Musk, Peter Thiel, Sam Altman",
        "follower_count": 6574
      },
      "type": "search_result"
    }
  ],
  "domain_info": {
    "first_category": ""
  },
  "filter_items": null,
  "hit_labels": null,
  "is_brand_word": false,
  "is_koc_words": false,
  "item_in_view": [
    {
      "index": 5,
      "token": "b62a7302…",
      "type": "user_survey"
    }
  ],
  "paging": {
    "is_end": false,
    "next": "https://api.zhihu.com/search_v3?advert_count=0&correction=1&filter_fields=&gk_ve…"
  },
  "pendant": null,
  "related_search_result": [],
  "search_action_info": {
    "attached_info_bytes": "OqQBEiBmNjI5YmM4ZDBkNGYwOWNmY2QwODMxZjJhMWQ3Mjc5NEoGb3BlbmFpUABYA2ABagZPcGVuQUlw…",
    "isfeed": false,
    "lc_idx": 20,
    "search_hash_id": "f629bc8d0d4f09cfcd0831f2a1d72794"
  }
}

Response fields

FieldMeaning
data[].idID of the matching topic, as a string.
data[].typeResult type. Here it is search_result.
data[].indexPosition of the result in the list, starting at 0.
data[].highlight.titleTopic title with the matched keyword wrapped in <em> tags.
data[].highlight.descriptionTopic description with matches highlighted. It can be an empty string.
data[].object.description / data[].object.excerptShort text describing the topic. Both can be empty.
data[].object.follower_countNumber of followers of the topic. Many topics show 0.
data[].object.avatar_urlImage URL for the topic.
data[].object.aliasesList of alternative names for the topic. It is empty in this response.
paging.is_end / paging.nextis_end tells you whether more results exist. next is a URL for the next page of results.

Notes

  • Use limit and offset to page through results. Both are sent as strings, and limit defaults to 25 and offset to 0.
  • Check paging.is_end to know when to stop paging.
  • Strip the <em> tags from highlight.title if you need the plain topic name.
  • To search content instead of topics, try Zhihu Article Search or Zhihu Search Suggestions.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Zhihu$0.001 每次调用JSON
Zhihu$0.005 每次调用JSON
Zhihu$0.001 每次调用JSON
Zhihu$0.001 每次调用JSON
Zhihu$0.001 每次调用JSON
Zhihu$0.001 每次调用JSON

指南:Best Zhihu API in 2026: Pricing Compared

问题

常见问题

如何使用 Zhihu Topic Search (V3) API?

向 https://api.sandbase.ai/v1/api/zhihu/web/topic-search-v3 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Zhihu Topic Search (V3) API 的价格是多少?

每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。

Zhihu Topic Search (V3) API 接受哪些参数?

必填:keyword (string)。 可选:limit (string) 和 offset (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Zhihu Topic Search (V3) API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Zhihu 开发者账户或 API key 吗?

不需要。Zhihu Topic Search (V3) 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Zhihu API 访问权限。