# ScrapFly Book Search API

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

Searches for books by query string and returns structured book data including titles, authors, and metadata.

## Facts

- Endpoint: POST https://scravfly.vercel.app/api/search/books
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-book-search-api-83b08a71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__QNx4W5wdLPIi687o4RVI

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-book-search-api-83b08a71 -d '<json body>'
```

Example prompt: Search for the top 5 books about machine learning and give me a list with authors and titles.

## When to prefer this

Choose this endpoint when you need to search for books by title, author, or topic and receive structured metadata. It is especially useful for agents building reading lists, doing bibliographic research, or powering book recommendation features. Prefer this over general web scraping endpoints when the specific target domain is books and you want pre-structured results rather than raw HTML.

## Known failure modes

- Missing required 'query' field returns a validation error
- Empty or vague query may return no results or low-relevance books
- Network or upstream scraping failure may return success: false
- Rate limiting or payment failure via x402 may block the request
- Requesting a very large 'num' value may time out or return partial results

## How this service works

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

## Output

Returns a JSON object with a success boolean and a data object containing book search results including titles, authors, and related book metadata matching the query.

## 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-book-search-api-83b08a71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scravfly.vercel.app](https://www.zero.xyz/host/scravfly.vercel.app/llms.txt)
