# APEX PDF to Text

> APEX PDF to Text is a paid API for AI agents from apexfaucet.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Extracts the full text content of any public PDF file, returned page by page with page markers, total page count, and file size.

## Facts

- Endpoint: GET https://apexfaucet.xyz/api/x402/pdf-text?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apex-pdf-to-text-9e89ff1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5MxT6jXu2HycQGAWtTkua

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 apex-pdf-to-text-9e89ff1f
```

Example prompt: Can you extract the text from this PDF whitepaper for me? Here's the URL: https://example.com/whitepaper.pdf — I need all the pages as readable text.

## When to prefer this

Choose this endpoint when you need to extract machine-readable text from a publicly accessible PDF URL quickly and cheaply ($0.003 per call). It is ideal for whitepapers, research papers, SEC filings, invoices, and other text-based PDFs. It parses using pdf.js and returns structured page-by-page output. Prefer alternatives if you need OCR for scanned/image PDFs, or if the PDF is not publicly accessible via HTTPS URL.

## Known failure modes

- File is not a valid PDF — rejected with an error before charge
- PDF exceeds 15 MB size limit — rejected
- PDF exceeds 200 page limit — rejected
- PDF has no text layer (scanned image PDF) — rejected before charge
- URL is not publicly accessible or returns a non-200 response — rejected
- URL points to a non-PDF file type — rejected

## How this service works

PDF to text: extract the text of any public PDF, page by page. The text of a public PDF, page by page: pass ?url= of a whitepaper, filing, invoice or paper and get every page's text with page markers, the page count and the file size. Parsed with pdf.js; up to 15 MB and 200 pages. A file that is not a PDF, will not open, or has no text layer (scanned images) is refused before any charge.

## Output

Returns the extracted text of each page in the PDF, organized with page markers (e.g. '--- Page 1 ---'), the total number of pages, and the file size. Supports PDFs up to 15 MB and 200 pages. Files that are not PDFs, are inaccessible, or are scanned image-only PDFs (no text layer) are rejected before any charge is incurred.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "The http(s) URL of a PDF file."
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apex-pdf-to-text-9e89ff1f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apexfaucet.xyz](https://www.zero.xyz/host/apexfaucet.xyz/llms.txt)
