# Tanod Docs PDF Text Extractor

> Tanod Docs PDF Text Extractor is a paid API for AI agents from docs.tanod.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Extracts text content and metadata from a public PDF URL, returning structured text, page count, and document metadata

## Facts

- Endpoint: POST https://docs.tanod.dev/v1/pdf?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-docs-pdf-text-extractor-1a3fc8bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yyKe9Li9y1-WTBmB6KI2Q

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-docs-pdf-text-extractor-1a3fc8bc -d '<json body>'
```

Example prompt: Can you extract the text from this PDF — https://www.rfc-editor.org/rfc/rfc9110.pdf — and give me the title, author, and the first 50 pages of content?

## When to prefer this

Choose this endpoint when you need to extract plain text and metadata from a publicly accessible PDF file by URL, especially when you need structured output including author, title, creation date, and page count. Prefer this over generic OCR endpoints when the input is specifically a PDF. Best suited for research papers, reports, contracts, or any text-heavy PDF up to 200 pages and 20 MB. If you need to convert PDFs to Word, fill DOCX templates, or convert Office files to PDF, other endpoints on the same platform cover those operations.

## Known failure modes

- PDF URL is not publicly accessible or returns a non-200 status — extraction fails
- PDF exceeds 20 MB size limit — request rejected
- PDF is encrypted/password-protected — text cannot be extracted
- max_pages out of range (must be 1–200) — validation error
- URL is not a valid http/https URL — request rejected
- PDF has no extractable text (e.g. scanned image without OCR layer) — empty or partial text returned
- Network timeout fetching the remote PDF — extraction fails

## How this service works

Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.

## Output

Returns a JSON object containing extracted plain text from the PDF, total page count, number of pages actually extracted, document metadata (title, author, creation date, modification date, producer), a flag indicating whether the output was truncated, whether the PDF is encrypted, the resolved final URL after any redirects, and a count of any page-level errors encountered during extraction.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "description": "Public http(s) URL of a PDF (at most 20 MB)."
  },
  "max_pages": {
   "type": "integer",
   "default": 50,
   "maximum": 200,
   "minimum": 1,
   "description": "Pages to extract text from, from the first (1-200, default 50)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://www.rfc-editor.org/rfc/rfc9110.pdf",
  "text": "RFC 9110\nHTTP Semantics\nAbstract\nThe Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed,\ncollaborative, hypertext information systems. ...",
  "pages": 194,
  "metadata": {
   "title": "RFC 9110: HTTP Semantics",
   "author": "Roy T. Fielding, Mark Nottingham, Julian Reschke",
   "created": "2022-06-06T11:15:02+07:00",
   "modified": "2022-06-06T11:15:19-07:00",
   "producer": "cairo 1.16.0 (https://cairographics.org)"
  },
  "encrypted": false,
  "final_url": "https://www.rfc-editor.org/rfc/rfc9110.pdf",
  "truncated": true,
  "page_errors": 0,
  "extracted_pages": 50,
  "untrusted_content": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-docs-pdf-text-extractor-1a3fc8bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from docs.tanod.dev](https://www.zero.xyz/host/docs.tanod.dev/llms.txt)
