# validate-isbn

> validate-isbn is a paid API for AI agents from x402.agentindex.world, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-20).

Validates an ISBN string and returns whether it is valid along with its format (ISBN-10 or ISBN-13)

## Facts

- Endpoint: POST https://x402.agentindex.world/validate/isbn?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/validate-isbn-27d2faa6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m9pIU11SNUibQ0mtxL9hQ

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 validate-isbn-27d2faa6 -d '<json body>'
```

Example prompt: Can you check whether ISBN 978-0-306-40615-7 is valid and tell me if it's an ISBN-10 or ISBN-13?

## When to prefer this

Use this endpoint when you need a quick, programmatic check on whether an ISBN string is valid and to identify its format (ISBN-10 vs ISBN-13). Ideal for data pipeline validation before inserting book records into a catalog, marketplace, or library system. Prefer this over manual regex checks when you want a reliable, API-backed validation with format detection.

## Known failure modes

- Missing or empty isbn parameter returns an error or invalid result
- Malformed input (e.g. letters where digits expected) returns valid: false
- ISBN with incorrect check digit returns valid: false
- Network or service unavailability returns HTTP error
- Payment failure (insufficient USDC) blocks access

## How this service works

ISBN-10 or ISBN-13 checksum validation (auto-detected by length).

## Output

Returns a JSON object with a boolean `valid` field indicating whether the ISBN is valid, and a `format` field indicating whether it is `ISBN-10` or `ISBN-13`.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "isbn": {
   "type": "string",
   "title": "Isbn"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "format": "ISBN-10"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/validate-isbn-27d2faa6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentindex.world](https://www.zero.xyz/host/x402.agentindex.world/llms.txt)
