# 402utils PDF Text Extractor

> 402utils PDF Text Extractor is a paid API for AI agents from 402utils.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Extracts full text, per-page text, and metadata from a PDF file (text layer only, no OCR), accepting either raw PDF bytes or a public URL.

## Facts

- Endpoint: POST https://402utils.com/v1/pdf-extract
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/402utils-pdf-text-extractor-a4a5a3e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1e3J4lkZW47PedVdKS3MX

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 402utils-pdf-text-extractor-a4a5a3e3 -d '<json body>'
```

Example prompt: Can you pull all the text out of this PDF for me? Here's the public URL: https://example.com/report.pdf — I need the full text and per-page breakdown.

## When to prefer this

Use this endpoint when you need to extract the text layer from a PDF document — either by uploading the raw bytes or providing a public URL. Best for text-based PDFs (not scanned images). Prefer this over general document converters when you specifically need per-page text breakdown and PDF metadata (title, author, page count) in a single call.

## Known failure modes

- Scanned or image-only PDF returns empty text with a no_text_layer warning — OCR is not performed
- PDF exceeds 10 MB size limit — request is rejected
- Invalid or inaccessible public URL returns a fetch/network error
- Malformed PDF bytes result in a parsing error
- Password-protected PDFs may fail to parse

## How this service works

Extract text from a PDF: send the PDF bytes directly, or a JSON body with a public {url}. Returns the full text, per-page text, and metadata (page count, title, author). Text layer only — scanned/image-only PDFs return empty text with a no_text_layer warning (no OCR). Max 10 MB.

## Output

Returns the complete extracted text from the PDF, an array of per-page text strings, and metadata including page count, document title, and author. If the PDF has no text layer (e.g. scanned images), returns empty text with a no_text_layer warning. Max supported file size is 10 MB.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Public http(s) URL of a PDF (alternative to sending bytes)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "title": "Invoice",
   "pageCount": 1
  },
  "text": "Invoice #1042 …",
  "pages": [
   {
    "page": 1,
    "text": "Invoice #1042 …"
   }
  ]
 }
}
```

## More

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