# ScrapFly Books Search API

> ScrapFly Books Search API is a paid API for AI agents from scrapfly.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-24).

Searches for books by query string and returns structured book data results

## Facts

- Endpoint: POST https://scrapfly.vercel.app/api/search/books?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-books-search-api-920d4be7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NkYHZxbwIXwsoaQOR_z1O

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 scrapfly-books-search-api-920d4be7 -d '<json body>'
```

Example prompt: Can you search for the top 5 books about machine learning and return their titles and details?

## When to prefer this

Use this endpoint when you need to search and retrieve book data programmatically, especially when building reading lists, doing literary research, or discovering books by topic or keyword. Prefer this over general web search when you specifically want structured book data rather than raw web pages.

## Known failure modes

- Missing required 'query' field returns an error
- Invalid or empty query string may return zero results
- Network or scraping failures may result in success: false
- Requesting too many results (high 'num' value) may time out or return partial data
- Service unavailability results in HTTP error or failed payment

## How this service works

69 endpoints for data, content generation, and web scraping. Pay per request via x402 on Base chain.

## Output

Returns a success boolean and a data object containing structured book search results matching the query, potentially including titles, authors, descriptions, and other book metadata for the requested number of results.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapfly-books-search-api-920d4be7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrapfly.vercel.app](https://www.zero.xyz/host/scrapfly.vercel.app/llms.txt)
