# tokenguard API – Book Search

> tokenguard API – Book Search is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Searches a book catalog by query string and returns matching titles, authors, edition counts, and publication years

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/data/books?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-api-book-search-1e72b203
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0blh2FjqzyBa8BKUXhau_

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 tokenguard-api-book-search-1e72b203 -d '<json body>'
```

Example prompt: Search for 'Dune' by Frank Herbert and tell me how many editions it has and when it was first published.

## When to prefer this

Use this endpoint when you need to look up book metadata such as titles, authors, edition counts, and publication dates from a catalog. Best suited for queries about well-known published books where you want structured bibliographic data rather than full text or purchase links.

## Known failure modes

- No results found for obscure or misspelled query — returns empty results array with count 0
- Malformed POST body causes 400 error
- Service unavailable on HuggingFace Space — 503 during cold start or downtime
- Payment not included or insufficient — 402 Payment Required
- Query too vague returns unrelated books

## How this service works

Book search over Open Library: title, authors, first publication year, subjects, ISBNs and edition count

## Output

Returns a JSON object with a count of results, the original query string, and an array of matching books each containing title, list of authors, number of editions, and year first published.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "description": "1-25 results (default 10)"
  },
  "query": {
   "type": "string",
   "description": "Search terms"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "query": "dune frank herbert",
  "results": [
   {
    "title": "Dune",
    "authors": [
     "Frank Herbert"
    ],
    "editions": 400,
    "first_published": 1965
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-api-book-search-1e72b203/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
