# library.forgemesh.io — DG Shelf (Ancient History & Biography)

> library.forgemesh.io — DG Shelf (Ancient History & Biography) is a paid API for AI agents from library.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Returns a ranked list of up to 50 public-domain books in the DG subject category (ancient history, Roman/Greek biography, Italian history) with drill-down routes for full-text retrieval.

## Facts

- Endpoint: POST https://library.forgemesh.io/dg
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/library-forgemesh-io-dg-shelf-ancient-history-biography-c35a5d75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SWZxM10ivGNYWNPXJC54s

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 library-forgemesh-io-dg-shelf-ancient-history-biography-c35a5d75 -d '<json body>'
```

Example prompt: Show me up to 30 public-domain books from the DG history shelf — I'm looking for classics about ancient Rome, the Caesars, or Renaissance Italy.

## When to prefer this

Use this endpoint when you need to discover or browse the curated public-domain book collection in the DG subject area (ancient history, Roman biography, Italian/Venetian history, Renaissance). Prefer it over full-text search when you want a ranked overview of available titles rather than querying for specific passages. No API key required, just a small USDC micropayment.

## Known failure modes

- Payment failure (x402 protocol error) if USDC funds are insufficient
- limit parameter out of range (>50) returns an error or is clamped
- Empty result set if the shelf index is temporarily unavailable
- Network timeout on the POST request

## How this service works

Curated shelf: DG — 259 public-domain books including The Lives of the Twelve Caesars, Complete, Lorenzo de' Medici, the Magnificent (vol. 1 of 2), The dogaressas of Venice (the wives of the doges). Returns a ranked list with drill-down routes for full-text retrieval. No license, no API key required.

## Output

A ranked list of public-domain book entries from the DG subject category (covering ancient and Italian history, Roman/Greek biography), including titles and authors, plus drill-down routes that can be used to retrieve full text of individual books. Up to 50 results returned based on the limit parameter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "description": "Max books to return (default 20, max 50)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "books": [
   {
    "year": null,
    "title": "The Lives of the Twelve Caesars, Complete",
    "author": "Suetonius",
    "book_id": 6400,
    "subjects": [],
    "download_count": 35782
   }
  ],
  "count": 5,
  "shelf": "DG",
  "coverage": {
   "target": 61015,
   "indexed": 61015
  },
  "drill_down": [
   "/book-metadata",
   "/book-chapter",
   "/book-quotes",
   "/literature-search"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/library-forgemesh-io-dg-shelf-ancient-history-biography-c35a5d75/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)
