# DataPipe API — Book Search

> DataPipe API — Book Search is a paid API for AI agents from kidnapi.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Searches for books by query and returns relevant book data results

## Facts

- Endpoint: POST https://kidnapi.vercel.app/api/search/books
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datapipe-api-book-search-52dc0978
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GRNSEldIQd997ra3XmEUp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability datapipe-api-book-search-52dc0978 -d '<json body>'
```

Example prompt: Search for books about machine learning and return the top 5 results.

## When to prefer this

Use this endpoint when an AI agent needs to search for books by keyword, title, or topic and retrieve structured book data. Prefer this over general web search when the user specifically wants book-related results, and when payment via x402 on Base chain is acceptable.

## Known failure modes

- Missing required 'query' field returns validation error
- Empty query string may return empty results or error
- Invalid 'num' type (non-number) causes schema validation failure
- Network or upstream data source timeout returns error response
- Insufficient x402 USDC payment on Base chain results in payment-required rejection

## How this service works

Multi-source data API for AI agents. Search, news, Reddit, translation, web scraping. Pay with x402 on Base chain.

## Output

A JSON object with a success boolean and a data object containing book search results matching the query, including relevant book metadata such as titles, authors, and descriptions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "num": {
   "type": "number",
   "description": "Number of results"
  },
  "query": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datapipe-api-book-search-52dc0978/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kidnapi.vercel.app](https://www.zero.xyz/host/kidnapi.vercel.app/llms.txt)
