# agent402.tools PDF Text Extractor

> agent402.tools PDF Text Extractor is a paid API for AI agents from agent402.tools, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Fetches a PDF from a public URL and extracts its full text content, page count, and document metadata

## Facts

- Endpoint: POST https://agent402.tools/api/pdf
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-pdf-text-extractor-dc61eba4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0GXXz_ftePJaXSRtgxqUP

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 agent402-tools-pdf-text-extractor-dc61eba4 -d '<json body>'
```

Example prompt: Can you fetch the PDF at https://example.com/report.pdf and extract all the text from it so I can read through the contents?

## When to prefer this

Use this endpoint when you need to read or extract text from a PDF available at a public URL, especially when you want page count and document metadata alongside the full text content. Ideal for processing reports, research papers, or any document-formatted content hosted online up to 20MB.

## Known failure modes

- URL is not publicly accessible or returns a non-200 response
- URL does not point to a valid PDF file
- PDF exceeds 20MB size limit
- PDF is password-protected or encrypted
- PDF contains only scanned images with no extractable text layer
- Network timeout when fetching large PDFs

## How this service works

Fetch a PDF from a URL and extract its text content. Returns page count, document info, and the full text (up to 20MB PDFs).

## Output

Returns the full extracted text content of the PDF, the total page count, and document metadata/info such as author, title, and creation date. Handles PDFs up to 20MB.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public http(s) URL of a PDF"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://bitcoin.org/bitcoin.pdf",
  "info": {
   "title": null
  },
  "text": "Bitcoin: A Peer-to-Peer Electronic Cash System\n…",
  "pages": 9,
  "wordCount": 3604
 }
}
```

## More

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