# Doc Tools – PDF to Text Extractor

> Doc Tools – PDF to Text Extractor is a paid API for AI agents from agentpay-tools.agentpay-apis.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Fetches a PDF from a given URL and returns its full text content as structured JSON

## Facts

- Endpoint: GET https://agentpay-tools.agentpay-apis.workers.dev/tools/v1/pdf-text?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/doc-tools-pdf-to-text-extractor-4426f75e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TzlFgFQQRJNEid29P31xX

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 doc-tools-pdf-to-text-extractor-4426f75e
```

Example prompt: Can you pull out all the text from this PDF for me? Here's the URL: https://example.com/report.pdf

## When to prefer this

Use this endpoint when you need to programmatically extract plain text from a PDF hosted at a public URL, especially in agent workflows where you need to read, summarize, or process document content. It costs only $0.01 USDC per call via x402 micropayment, making it suitable for on-demand per-document extraction rather than bulk batch pipelines.

## Known failure modes

- Invalid or inaccessible PDF URL returns an error
- URL points to a non-PDF resource causing a parse failure
- Large PDFs may time out or return partial content
- Password-protected PDFs cannot be extracted
- Scanned/image-only PDFs yield little or no text (no OCR)

## How this service works

PDF to text, RSS/Atom feeds to JSON, sitemaps to URL lists.

## Output

Returns the full extracted plain text content of the PDF document as JSON, including all readable text parsed from the document pages

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL of a PDF"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/doc-tools-pdf-to-text-extractor-4426f75e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay-tools.agentpay-apis.workers.dev](https://www.zero.xyz/host/agentpay-tools.agentpay-apis.workers.dev/llms.txt)
