Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Zhihu Ebook Search

Docs da API
https://api.sandbase.ai/v1/api/zhihu/web/ebook-search-v3

Searches Zhihu for ebooks matching a query term. Returns publication details including commodity IDs, SKU IDs, and direct product links.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 3 opcionais

Playground

Entrada
Search Keywords
Number of ebooks per page
Offset
Search Hash ID
SaídaExemplo
Respostaoutputs · 9.5 KB · 197 linhas
[
  {
    "data": {
      "ab_params": "adflow=0;sb_storyai=0;sb_xg_search=1;dm_ai_hot_recall=0;dm_pre_docs=2;sb_slot_domain=2;sb_fea_0914=0;dm_ai_model=6;dm_pu_sug=0;sb_zhiedu=1;dm_ai_search_safe=1;dm_correct=0;dm_v_member_zag=2;dm_l1_rel=1;sb_slot_time=2;bt_vertical_mem=1;sb_nvip_ecpm=1;dm_ai_corner1=1;dm_l3_multi3=1;dm_ai_card_cache=0;d_new_search_h2=0;sb_zhiad=1;sb_ff=0;sb_kvip_xz=1;dm_skill_cmb=0;dm_ai_medical=1;dm_ai_rerank=3;dm_vote_score=0;dm_a1_suppress=0;bt_member_verify=1;dm_question_limit=2;dm_search_pregen=1;dm_l2_ab=1;dm_fine_rel=2;dm_member_py=1;sb_domain_2025=0;dm_ai_hot_more=0;dm_mark=2;dm_user_follower=1;sb_pe=0;bt…",
      "data": [
        {
          "highlight": {},
          "hit_labels": null,
          "id": 674492,
          "index": 0,
          "object": {
            "ab_id_list": [
              "adflow=0",
              "sb_storyai=0",
              "sb_xg_search=1",
              "… 92 more items in the full response"
            ],
            "attached_info_bytes": "OrwECgtwbGFjZWhvbGRlchIgODA3M2ZjYzUzMzQ2OWIzOTNlZGIxNmQ3Y2MxNDc4ZDEYDyIGNjc0NDkyKgkxMjA0ODA5ODFKBm9wZW5haVAAWAdgAWoGT3BlbkFJcASAAcjUw+O0pZcDmAEAoAEAqAEAsAEBwgEA2AEA4AEAgAIBsgLaAnsiY29udGVudF9pZCI6Njc0NDkyLCJjb250ZW50X3R5cGUiOiJFQm9vayIsImNvbnRlbnRfdG9rZW4iOjEyMDQ4MDk4MSwic3ViX2NvbnRlbnRfaWQiOjAsInN1Yl9jb250ZW50X3Rva2VuIjowLCJzdWJfY29udGVudF90eXBlIjoiIiwibWF0ZXJpYWxfaWQiOjE4MjMwMDAyODA4ODQ3MTE0MjYsInNrdV9pZCI6MTgyMTU2ODAyMjgzMTMxNjk5MiwiaXNfaW50ZXJ2ZW5lIjpmYWxzZSwicmVjYWxsX3Njb3JlIjowLjE1NjcwNzE2OTM3MTY1NzA3LCJyZWNhbGxfc291cmNlIjoiU09VUkNFX1NFQVJDSF9LTk4iLCJyZWNhbGxfcmFuayI6MCwiaXNfdmlwIjpmYWxz…",
            "body": {
              "authors": [
                {
                  "bio": "",
                  "icon": "",
                  "name": "雷韦春",
                  "url_token": ""
                }
              ],
              "description": "<em>OpenAI</em> API 是一个为开发者、企业和研究者打造的平台。通过这个 API,用户可以轻松地融合和应用最前沿的 AI 技术",
              "images": [
                "https://picx.zhimg.com/v2-f22e1778a7fab84b1a2b9278761879ef.jpg?source=31184dd1"
              ],
              "play_icon": "",
              "publish_at": 1727417136,
              "show_author": "",
              "show_image": "",
              "title": "<em>OpenAI</em> API 接口应用实战"
            },
            "card_type": "",
            "card_version": "1",
            "commodity_id": "120480981",
            "commodity_type": "publication",
            "footer": "",
            "header": {
              "card_title": "",
              "no_more": false
            },
            "sku_id": "1821568022831316992",
            "slave_url": "https://www.zhihu.com/kvip/sku/ebook/120480981",
            "source": "DEFAULT",
            "tab_type": "publication",
            "url": "https://www.zhihu.com/kvip/sku/ebook/120480981"
          },
          "type": "knowledge_ad"
        },
        {
          "highlight": {},
          "hit_labels": null,
          "id": 313009,
          "index": 1,
          "object": {
            "ab_id_list": [
              "adflow=0",
              "sb_storyai=0",
              "sb_xg_search=1",
              "… 92 more items in the full response"
            ],
            "attached_info_bytes": "OscECgtwbGFjZWhvbGRlchIgODA3M2ZjYzUzMzQ2OWIzOTNlZGIxNmQ3Y2MxNDc4ZDEYDyIGMzEzMDA5KgkxMTk1ODI2MTVKBm9wZW5haVAAWAdgAWoGT3BlbkFJcASAAcjUw+O0pZcDmAEAoAEBqAEAsAEBwgEA2AEA4AEAgAIBsgLlAnsiY29udGVudF9pZCI6MzEzMDA5LCJjb250ZW50X3R5cGUiOiJFQm9vayIsImNvbnRlbnRfdG9rZW4iOjExOTU4MjYxNSwic3ViX2NvbnRlbnRfaWQiOjAsInN1Yl9jb250ZW50X3Rva2VuIjowLCJzdWJfY29udGVudF90eXBlIjoiIiwibWF0ZXJpYWxfaWQiOjExODQ5MTA1MzI5NTAzODQ2NDAsInNrdV9pZCI6MTA1NzAwNTA1NDk4ODUxMzI4MCwiaXNfaW50ZXJ2ZW5lIjpmYWxzZSwicmVjYWxsX3Njb3JlIjowLjAxNjQ2MTk5Njg3ODIwNjI2NCwicmVjYWxsX3NvdXJjZSI6IlNPVVJDRV9TRUFSQ0hfUkVMRVZBTkNFX0tOTiIsInJlY2FsbF9yYW5rIjoxLCJp…",
            "body": {
              "authors": [
                {
                  "bio": "",
                  "icon": "",
                  "name": "王伟",
                  "url_token": ""
                },
                {
                  "bio": "",
                  "icon": "",
                  "name": "孙冰",
                  "url_token": ""
                },
                {
                  "bio": "",
                  "icon": "",
                  "name": "刘龙",
                  "url_token": ""
                }
              ],
              "description": "本书汇集了各类基于 OpenWrt 系统的路由器、物联网、智能家居方向的技能和行业内知名企业的技术经验。本书区别于传统嵌入式系统书籍,并没有一上来介绍那些晦涩的软硬件知识,本书所介绍的内容门槛更低,更适合读者循序渐进地完成学习。书中使用更轻松的表达方式,让读者开开心心便可以完成智能路由器的开发。由于路由器大量采用了开源操作系统,哥伦比亚大学法学院教授 Eben Moglen 向路由器厂商提出了开源路由器系统部分的要求,这样,2004 年 OpenWrt 诞生了 White Russian 版,之后每一两年便发布一个新的版本。现今,OpenWrt 系统在智能路由器行业已是事实性标准,大量的芯片厂商及路由器厂商(包括小米、极路由、极企科技等知名互联网科技企业)均采用该系统作为路由器或智能家居控制中心,即使宣称没有使用 OpenWrt 的厂商,也多是在该系统基础之上进行了业务定制。OpenWrt 作为开源组织采取松散管理,很难找到一份比较系统的专业技术文档用于爱好者学习。因此 2012 年由 hoowa 发起、众多技术「大神」参与的「跟 hoowa 学智能路由」在线培训开始启航,本书所有内容均原滋原味来源于此。本书遵循「学中做,做中学」的理念,将内容分为 19 章,读者可以跟着本书内容,边学边做,终完成一个智能路由器的开发。本书主要从 OpenWrt 这个系统的角度来介绍,但书中内容不局…",
              "images": [
                "https://picx.zhimg.com/v2-18d5b06a077abc9180e1950c1efa925a.jpg?source=31184dd1"
              ],
              "play_icon": "",
              "publish_at": 1575280535,
              "show_author": "",
              "show_image": "",
              "title": "OpenWrt 智能路由系统开发"
            },
            "card_type": "",
            "card_version": "1",
            "commodity_id": "119582615",
            "commodity_type": "publication",
            "footer": "",
            "header": {
              "card_title": "",
              "no_more": false
            },
            "sku_id": "1057005054988513280",
            "slave_url": "https://www.zhihu.com/kvip/sku/ebook/119582615",
            "source": "DEFAULT",
            "tab_type": "publication",
            "url": "https://www.zhihu.com/kvip/sku/ebook/119582615"
          },
          "type": "knowledge_ad"
        },
        {
          "highlight": {},
          "hit_labels": null,
          "id": 1283907859663413200,
          "index": 2,
          "object": {
            "ab_id_list": [
              "adflow=0",
              "sb_storyai=0",
              "sb_xg_search=1",
              "… 92 more items in the full response"
            ],
            "attached_info_bytes": "OosFCgtwbGFjZWhvbGRlchIgODA3M2ZjYzUzMzQ2OWIzOTNlZGIxNmQ3Y2MxNDc4ZDEYDyITMTI4MzkwNzg1OTY2MzQxMzI0OCoJMTE5OTM4MzY1SgZvcGVuYWlQAFgHYAFqBk9wZW5BSXAEgAHI1MPjtKWXA5gBAKABAqgBALABAcIBANgBAOABAIACAbICnAN7ImNvbnRlbnRfaWQiOjEyODM5MDc4NTk2NjM0MTMyNDgsImNvbnRlbnRfdHlwZSI6IkVCb29rIiwiY29udGVudF90b2tlbiI6MTE5OTM4MzY1LCJzdWJfY29udGVudF9pZCI6MTI4MzkwNzg1OTY2MzQxMzI0OCwic3ViX2NvbnRlbnRfdG9rZW4iOjEyODM5MDc4NTk2NjM0MTMyNDgsInN1Yl9jb250ZW50X3R5cGUiOiJFQm9va19DaGFwdGVyIiwibWF0ZXJpYWxfaWQiOjEyODM5MDc4NTk2NjM0MTMyNDgsInNrdV9pZCI6MTI4MzkwMTY0ODY5Njg2MDY3MiwiaXNfaW50ZXJ2ZW5lIjpmYWxzZSwicmVjYWxsX3Njb3JlIjowLjAxMzM1NTMx…",
            "body": {
              "authors": [
                {
                  "name": "来自「 Red Hat Enterprise Linux 6.0 服务器构建」",
                  "url_token": ""
                }
              ],
              "description": "19.3 OpenVPN 安装及配置19.3.1 OpenVPN 简介OpenVPN 允许参与创建 VPN 的单点使用公开密钥、电子证书或者用户名/密码来进行身份验证。它大量使用了 OpenSSL 加密库中的 SSLv3/TLSv1 协议函数库。目前 OpenVPN 能在 Solaris、Linux、OpenBSD、FreeBSD、NetBSD、Mac OS X 与 Windows 2000/XP",
              "images": [],
              "play_icon": "",
              "publish_at": 1600776508,
              "show_author": "",
              "show_image": "",
              "title": "OpenVPN 安装及配置"
            },
            "card_type": "",
            "card_version": "1",
            "commodity_id": "1283907859663413248",
            "commodity_type": "publication_chapter",
            "footer": "",
            "header": {
              "card_title": "电子书",
              "no_more": false
            },
            "sku_id": "1283901648696860672",
            "slave_url": "https://www.zhihu.com/kvip/sku/ebook/119938365",
            "source": "DEFAULT",
            "tab_type": "publication",
            "url": "https://www.zhihu.com/kvip/sku/ebook/119938365"
          },
          "type": "knowledge_ad"
        },
        "… 8 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=%7B%27advanced_filter%27%3A+%27keywords%2Ctitle%2Cauthors%2Cabstract%27%2C+%27indexed_by%27%3A+%27%27%2C+%27classification%27%3A+%27%27%7D&gk_version=gz-gaokao&lc_idx=0&limit=20&offset=11&q=OpenAI&search_hash_id=8073fcc533469b393edb16d7cc1478d1&search_source=Normal&show_all_topics=0&t=publication&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": "OqQBEiA4MDczZmNjNTMzNDY5YjM5M2VkYjE2ZDdjYzE0NzhkMUoGb3BlbmFpUABYB2ABagZPcGVuQUlwBIAByNTD47SllwOAAgG4AgCKAwCSAxMyMDU1MzY1MjI5NTkzMjQzNjk2mgMAogMJMTAxXzNfMy4w4AQA+gQAggUgODA3M2ZjYzUzMzQ2OWIzOTNlZGIxNmQ3Y2MxNDc4ZDGKBQblhbbku5Y=",
        "isfeed": false,
        "lc_idx": 11,
        "search_hash_id": "8073fcc533469b393edb16d7cc1478d1"
      },
      "sensitive_level": -1,
      "warning": ""
    }
  }
]

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da API

Zhihu Ebook Search API

Searches Zhihu for ebooks that match a keyword. Each result gives the title, authors, description, cover image, publish time and the commodity_id of the ebook. It needs one input, keyword.

Use cases

  • Build a list of Zhihu ebooks on a topic such as OpenAI, with titles, authors and cover images.
  • Collect commodity_id values to index ebooks in a catalog.
  • Track publication dates of ebooks about a subject over time.
  • Page through all matches for a keyword to compare how many ebooks cover it.

Request

curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/ebook-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 ebooks per page
offsetstringNoOffset
search_hash_idstringNoSearch Hash ID

Example response

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

{
  "ab_params": "dm_a1_abc=0;sb_nvip_ecpm=1;sb_zhiedu=1;sb_vip_tag=1;dm_ai_search_safe=1;dm_AI_ho…",
  "data": [
    {
      "highlight": {},
      "hit_labels": null,
      "id": 674492,
      "index": 0,
      "object": {
        "ab_id_list": [
          "dm_a1_abc=0"
        ],
        "attached_info_bytes": "OrwECgtwbGFjZWhvbGRlchIgMDEzMWY4YmEzYjM5MGQyNGQxNGQzMDhhZGZlZGEzZTcYDyIGNjc0NDky…",
        "body": {
          "authors": [
            {
              "bio": "",
              "icon": "",
              "name": "雷韦春",
              "url_token": ""
            }
          ],
          "description": "<em>OpenAI</em> API 是一个为开发者、企业和研究者打造的平台。通过这个 API,用户可以轻松地融合和应用最前沿的 AI 技术",
          "images": [
            "https://picx.zhimg.com/v2-f22e1778a7fab84b1a2b9278761879ef.jpg?source=31184dd1"
          ],
          "play_icon": "",
          "publish_at": 1727417136,
          "show_author": "",
          "show_image": "",
          "title": "<em>OpenAI</em> API 接口应用实战"
        },
        "card_type": "",
        "card_version": "1",
        "commodity_id": "120480981",
        "commodity_type": "publication",
        "footer": ""
      },
      "type": "knowledge_ad"
    }
  ],
  "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=%7B%27…"
  },
  "pendant": null,
  "related_search_result": [],
  "search_action_info": {
    "attached_info_bytes": "OqQBEiAwMTMxZjhiYTNiMzkwZDI0ZDE0ZDMwOGFkZmVkYTNlN0oGb3BlbmFpUABYB2ABagZPcGVuQUlw…",
    "isfeed": false,
    "lc_idx": 9,
    "search_hash_id": "0131f8ba3b390d24d14d308adfeda3e7"
  }
}

Response fields

FieldMeaning
data[].object.commodity_idID of the ebook as a string. Use it to identify the ebook across calls.
data[].object.commodity_typeKind of item. Here the value is publication.
data[].object.body.titleEbook title. Matched search terms are wrapped in <em> tags.
data[].object.body.authors[].nameName of each author. Books with several authors return several rows.
data[].object.body.descriptionShort description of the ebook. It is cut off for long texts and may contain <em> tags around matched terms.
data[].object.body.images[]Cover image URLs for the ebook.
data[].object.body.publish_atPublish time as a Unix timestamp in seconds.
data[].index / data[].idPosition of the result in the list, and a numeric ID for the result row.
paging.is_end / paging.nextis_end is false when more results exist. next holds the URL for the next page.
search_action_info.search_hash_idHash ID for this search. Send it back as search_hash_id on later pages.

Notes

  • Use limit for page size and offset to move through results. Both are sent as strings.
  • Pass the search_hash_id from search_action_info in follow-up page requests for the same keyword.
  • Strip the <em> tags from title and description before showing them as plain text.
  • To find other Zhihu content on the same keyword, try Zhihu Article Search or Zhihu Video Search (V3).

Pricing

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

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Zhihu$0.001 por chamadaJSON
Zhihu$0.005 por chamadaJSON
Zhihu$0.001 por chamadaJSON
Zhihu$0.001 por chamadaJSON
Zhihu$0.001 por chamadaJSON
Zhihu$0.001 por chamadaJSON

Guias:Best Zhihu API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API Zhihu Ebook Search?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/zhihu/web/ebook-search-v3 com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Zhihu Ebook Search?

$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Zhihu Ebook Search aceita?

Obrigatórios: keyword (string). Opcionais: limit (string), offset (string) e search_hash_id (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Zhihu Ebook Search retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Zhihu ou de uma chave de API?

Não. Zhihu Ebook Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Zhihu separadamente.