# ForgeMesh Library Book Chapter Retrieval

> ForgeMesh Library Book Chapter Retrieval is a paid API for AI agents from library.forgemesh.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Retrieves the full text of a specific chapter from a Project Gutenberg public-domain book by book ID and chapter number

## Facts

- Endpoint: POST https://library.forgemesh.io/book-chapter
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-library-book-chapter-retrieval-5f326705
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__IYUhz1aQFrltIyDEDHRW

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 forgemesh-library-book-chapter-retrieval-5f326705 -d '<json body>'
```

Example prompt: Can you fetch chapter 4 of Moby Dick — that's Gutenberg book ID 2701 — so I can read it?

## When to prefer this

Use this endpoint when you need the full text of a specific chapter from a public-domain Gutenberg book and already know (or can look up) the book_id and valid chapter range. It is ideal for sequential reading, chapter-by-chapter analysis, or extracting a targeted portion of a long work. Prefer /book-metadata first to discover valid chapter numbers. Use the full-text search sibling endpoint instead if you want passages matching a query rather than a specific numbered chapter.

## Known failure modes

- Invalid book_id returns an error — use /book-metadata first to confirm the book exists
- Chapter number out of valid range returns an error — use /book-metadata to check chapter_range before calling
- Chapter 0 may be empty or minimal if no front matter exists before the first heading
- Network or service errors may return HTTP 5xx responses
- Payment failure via x402 protocol may block access if USDC balance is insufficient

## How this service works

Retrieve the full text of one chapter from an indexed book by book_id and chapter number. Chapter 0 is front matter before the first detected heading. Use /book-metadata first to see a book's valid chapter range. No license, no API key required.

## Output

The full plain text of the requested chapter from the specified Gutenberg book, enabling reading, analysis, or further processing of public-domain literary content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "book_id": {
   "type": "integer",
   "description": "Gutenberg book id"
  },
  "chapter": {
   "type": "integer",
   "description": "Chapter number — see chapter_range from /book-metadata"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Alice was beginning to get very tired of sitting by her sister on the bank...",
  "title": "Alice's Adventures in Wonderland",
  "author": "Carroll, Lewis, 1832-1898",
  "book_id": 11,
  "chapter": 1,
  "chunk_count": 8,
  "chapter_detection": "heading"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-library-book-chapter-retrieval-5f326705/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from library.forgemesh.io](https://www.zero.xyz/host/library.forgemesh.io/llms.txt)
