# Agent Hub Document to Text Converter

> Agent Hub Document to Text Converter is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Converts PDF, Word, Excel, ODS/ODT, CSV, HTML, XML, or image files into clean Markdown text via a public URL or base64-encoded file

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/document?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-document-to-text-converter-2f17da37
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Oopu6HNDUQryXxxcRgSKx

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 agent-hub-document-to-text-converter-2f17da37
```

Example prompt: Can you convert this PDF into clean Markdown text for me? The file is at https://example.com/reports/annual-report.pdf

## When to prefer this

Choose this endpoint when you need to extract readable, structured Markdown text from a wide variety of document formats (PDF, Word, Excel, images, HTML, CSV, XML, ODS/ODT) without setting up local parsing infrastructure. It is ideal for agents that receive document URLs or binary files and need clean text for downstream processing, summarization, or analysis. At $0.01 per call it is cost-effective for on-demand document parsing tasks.

## Known failure modes

- File exceeds 15 MB limit — returns an error
- Unsupported file type — returns an error indicating the format is not accepted
- Invalid or inaccessible public URL — returns a fetch or permission error
- Malformed base64 string — returns a decoding error
- Missing filename when using file_base64 — returns a validation error
- Payment not provided or insufficient — returns 402 Payment Required

## How this service works

Document to text: convert PDF, Word (docx), Excel (xlsx/xls), ODS/ODT, CSV, HTML, XML or images to clean Markdown. Send a public file URL or base64 file plus filename (max 15 MB). Also callable as GET with the same fields as query parameters.

## Output

Returns clean Markdown text extracted from the submitted document, preserving structure such as headings, tables, lists, and paragraphs as closely as possible to the original file's layout.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "description": "Public URL of the document"
      },
      "filename": {
       "type": "string",
       "description": "Required with file_base64, e.g. report.pdf"
      },
      "file_base64": {
       "type": "string",
       "description": "Alternative to url"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-hub-document-to-text-converter-2f17da37/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
