# Afterwren Books API

> Afterwren Books API is a paid API for AI agents from afterwren.cybermaxtools.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Search for books by title, author, or ISBN and retrieve metadata, replacing the retired Goodreads API

## Facts

- Endpoint: GET https://afterwren.cybermaxtools.com/x402/api/books?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/afterwren-books-api-661712a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kl0juXkXccLth4947ABse

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 afterwren-books-api-661712a8
```

Example prompt: Search for books about 'The Name of the Wind' by Patrick Rothfuss and return the top 3 results with their ISBNs and descriptions.

## When to prefer this

Use this endpoint when you need bibliographic data for books (by title, author, or ISBN) and Goodreads API is unavailable or retired. It is ideal for agents building reading lists, validating ISBNs, or enriching book catalogs. Prefer it over generic web search when you need structured, machine-readable book metadata rather than unstructured text.

## Known failure modes

- No books found for the given query or ISBN — empty results array returned
- Invalid ISBN format causes a 400 bad request
- Rate limiting or payment failure results in a 402 response requiring USDC payment
- Ambiguous title/author query returns unrelated books
- limit parameter out of range (not 1-10) may cause a validation error

## How this service works

Retired APIs, back in one key. Clearbit API alternative, geocoder and Goodreads API replacement: one REST API + MCP server Try it free in one click, no sign-up.

## Output

A JSON array of book records matching the query, each containing bibliographic metadata such as title, author(s), ISBN, description, publication date, and cover image URL, up to the specified limit (default 5, max 10).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "q": {
       "type": "string",
       "description": "Title and/or author"
      },
      "isbn": {
       "type": "string",
       "description": "ISBN-10 or ISBN-13 instead of q"
      },
      "limit": {
       "type": "string",
       "description": "1-10, default 5"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/afterwren-books-api-661712a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from afterwren.cybermaxtools.com](https://www.zero.xyz/host/afterwren.cybermaxtools.com/llms.txt)
