# library.forgemesh.io Mars (Planet) Fiction Shelf

> library.forgemesh.io Mars (Planet) Fiction Shelf 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-16).

Returns a ranked list of up to 150 public-domain Mars-themed fiction books (including Burroughs classics) with drill-down routes for full-text retrieval.

## Facts

- Endpoint: POST https://library.forgemesh.io/mars-planet-fiction
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/library-forgemesh-io-mars-planet-fiction-shelf-4c42ec97
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TJkRHbaDW4OvyBNnH7h1Y

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-mars-planet-fiction-shelf-4c42ec97 -d '<json body>'
```

Example prompt: Can you show me up to 30 public-domain Mars fiction books from the library catalog — I'm looking for classic sci-fi like A Princess of Mars or The Gods of Mars?

## When to prefer this

Choose this endpoint when you need a curated, pre-ranked list of public-domain Mars fiction books specifically, especially when you want classic titles like the Burroughs Barsoom series. Prefer this over a general full-text search when you want a browsable shelf rather than passage-level results, and when no API key or license is required.

## Known failure modes

- Limit parameter exceeds max of 50 — endpoint may clamp or return an error
- No results if the shelf index is temporarily unavailable
- Unexpected schema if the endpoint has been updated and metadata is stale
- Payment failure (x402) if USDC balance is insufficient for the $0.003 per-call fee

## How this service works

Curated shelf: Mars (Planet) -- Fiction — 150 public-domain books including Thuvia, maid of Mars, The gods of Mars, A princess of Mars. Returns a ranked list with drill-down routes for full-text retrieval. No license, no API key required.

## Output

A ranked list of Mars-themed public-domain fiction books (up to the requested limit, default 20, max 50 out of 150 available), each entry including title, author, and a drill-down route for full-text retrieval. No authentication or license required.

## 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": "Thuvia, maid of Mars",
    "author": "Burroughs, Edgar Rice",
    "book_id": 72,
    "subjects": [],
    "download_count": 43298
   }
  ],
  "count": 5,
  "shelf": "Mars (Planet) -- Fiction",
  "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-mars-planet-fiction-shelf-4c42ec97/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)
