# Tanod pdfpeek – PDF Page Extraction

> Tanod pdfpeek – PDF Page Extraction is a paid API for AI agents from tanod.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Extracts selected pages from a PDF and returns them as a new standalone PDF document.

## Facts

- Endpoint: POST https://tanod.dev/v1/pdf/extract-pages?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-pdfpeek-pdf-page-extraction-ebd8d1e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kWiMkIghS_LbrUNgwsugi

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 tanod-pdfpeek-pdf-page-extraction-ebd8d1e8 -d '<json body>'
```

Example prompt: Can you extract pages 2 through 5 and the last page from this PDF — https://example.com/report.pdf — and give me just those pages as a new PDF?

## When to prefer this

Choose this endpoint when you need to extract a specific subset of pages from an existing PDF and receive a new PDF containing only those pages. It supports flexible page range notation (individual pages, ranges, open-ended ranges, and 'last'). Prefer it over full-PDF text extraction endpoints when the goal is page-level PDF manipulation rather than text parsing, and over PDF generation endpoints when the source document already exists.

## Known failure modes

- PDF URL is unreachable or returns a non-PDF file — request fails with an error
- PDF exceeds the 20 MB URL limit or 10 MB base64 limit — rejected with size error
- Page range refers to pages that don't exist in the PDF (e.g. page 50 in a 10-page document) — returns an error or empty result
- Malformed page range string that doesn't match the allowed pattern — validation error
- Password-protected PDF that cannot be opened — extraction fails
- Neither url nor pdf_base64 provided — missing input error

## How this service works

One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.

## Output

A new PDF file containing only the requested pages, returned as binary PDF content. The page numbering in the output reflects the extracted subset, not the original document's page numbers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 2048,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
  },
  "pages": {
   "type": "string",
   "pattern": "^[0-9a-zA-Z ,\\-]+$",
   "maxLength": 200,
   "minLength": 1,
   "description": "1-based: N, N-M, N- (to the end), -M, last; comma separated, in this order."
  },
  "output": {
   "enum": [
    "base64",
    "url"
   ],
   "type": "string",
   "default": "base64",
   "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."
  },
  "pdf_base64": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 13398872,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "The PDF as base64 (at most 10 MB decoded per request); or use url."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "file": {
   "name": "extracted.pdf",
   "bytes": 58827,
   "pages": 3,
   "data_base64": "JVBERi0xLjcKJb/3... (trimmed: 78,436 base64 characters in the reply)",
   "content_type": "application/pdf"
  },
  "operation": "extract-pages",
  "input_bytes": 140815,
  "input_pages": 6,
  "output_bytes": 58827,
  "untrusted_content": true,
  "active_content_removed": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-pdfpeek-pdf-page-extraction-ebd8d1e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tanod.dev](https://www.zero.xyz/host/tanod.dev/llms.txt)
