# Zhihu Ebook Search API

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

Source: https://www.sandbase.ai/apis/zhihu/web/ebook-search-v3
API reference: https://www.sandbase.ai/apis/zhihu/web/ebook-search-v3/docs

## Facts

- Provider: Zhihu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/zhihu/web/ebook-search-v3`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, zhihu
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/zhihu/web/ebook-search-v3` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `keyword` | string | yes |  |
| `limit` | string | no |  |
| `offset` | string | no |  |
| `search_hash_id` | string | no |  |

## FAQ

### How do I use the Zhihu Ebook Search API?

Send a POST request to https://api.sandbase.ai/v1/api/zhihu/web/ebook-search-v3 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Zhihu Ebook Search API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Zhihu Ebook Search API accept?

Required: keyword (string). Optional: limit (string), offset (string) and search_hash_id (string). The Parameters table and the Playground on this page list every field.

### What does the Zhihu Ebook Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Zhihu developer account or API key?

No. Zhihu Ebook Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Zhihu API access separately.

## README

### Zhihu Ebook Search API

Search for ebooks and publications on Zhihu using `keyword`. Results support pagination using `limit` and `offset` parameters.

#### Use cases

- Search for digital books and publications on Zhihu by keyword.
- Retrieve Zhihu ebook commodity IDs and SKU IDs for catalog indexing.
- Collect direct links to Zhihu ebook store pages.

#### Request

```bash
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"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `keyword` | string | Yes | Search Keywords |
| `limit` | string | No | Number of ebooks per page |
| `offset` | string | No | Offset |
| `search_hash_id` | string | No | Search Hash ID |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "data": [
    {
      "id": 674492,
      "type": "knowledge_ad",
      "object": {
        "commodity_id": "120480981",
        "commodity_type": "publication",
        "sku_id": "1821568022831316992",
        "slave_url": "https://www.zhihu.com/kvip/sku/ebook/120480981",
        "tab_type": "publication",
        "url": "https://www.zhihu.com/kvip/sku/ebook/120480981"
      }
    }
  ]
}
```

#### Notes

- Control pagination using the `limit` and `offset` query parameters.
- An optional `search_hash_id` can be supplied to track search sessions.

#### Related APIs

- [Zhihu AI Search Stream](/model/zhihu/web/ai-search-stream): Returns streaming AI search results from Zhihu based on a query prompt.
- [Zhihu Answer Details](/model/zhihu/web/answer-detail): Retrieves detailed information for a specific Zhihu answer using its numeric ID, including answer text, timestamps, and share links.
- [Zhihu Article Search](/model/zhihu/web/article-search-v3): Search Zhihu articles and answers by keyword and get titles, excerpts, authors, vote and comment counts, with sorting, content type and time filters plus offse…
