# Quant Agent Shop PDF Text Extractor

> Quant Agent Shop PDF Text Extractor is a paid API for AI agents from quantagentshop.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-23).

Extracts plain text content from a PDF (by URL or base64), returning per-page text, page count, title, and a truncation flag — no OCR, encrypted PDFs refused.

## Facts

- Endpoint: POST https://quantagentshop.com/v1/pdf-text?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quant-agent-shop-pdf-text-extractor-03a3d885
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MAHdF1nj6S9U2kVAO_tIR

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 quant-agent-shop-pdf-text-extractor-03a3d885 -d '<json body>'
```

Example prompt: Can you extract all the text from this PDF — https://arxiv.org/pdf/2301.00001 — and tell me how many pages it has and what the title is?

## When to prefer this

Choose this endpoint when you need machine-readable text from a digital (non-scanned) PDF — reports, academic papers, SEC filings, invoices, or contracts — accessible via a public URL or encodable as base64 under 10 MB. If the PDF is scanned/image-based, use the OCR endpoint instead. Prefer this over a full webpage-to-PDF pipeline when you already have the PDF URL directly.

## Known failure modes

- Encrypted or password-protected PDFs are rejected with an error
- Scanned/image-only PDFs return empty strings per page (no OCR performed)
- Files exceeding 10 MB are refused
- Malformed or non-PDF URLs return an error
- Inaccessible URLs (404, auth-gated) cause a failure — failed calls are not charged
- Documents over 200 pages or 2,000,000 characters are truncated with truncated=true

## How this service works

PDF text. Send a public PDF URL or the file as base64 (up to 10 MB); returns the plain text of each page, the page count, the title and a truncated flag (first 200 pages and 2,000,000 characters). Use to read reports, papers, filings or invoices. No OCR: scanned pages come back empty (send page images to /v1/ocr); encrypted PDFs are refused. Typical response 1 to 5 s. Failed calls are not charged.

## Output

Returns a JSON object containing an array of plain-text strings (one per page, up to 200 pages), the total page count, the document title if detectable, and a boolean truncated flag indicating whether the document was cut off at the 200-page or 2,000,000-character limit. Scanned pages with no embedded text return empty strings. Response typically arrives in 1–5 seconds.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "url": {
       "anyOf": [
        {
         "type": "string",
         "format": "uri",
         "maxLength": 2083,
         "minLength": 1
        },
        {
         "type": "null"
        }
       ],
       "title": "Url",
       "default": null,
       "description": "Public http or https URL of the PDF."
      },
      "pdf_base64": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 13800000,
         "minLength": 8
        },
        {
         "type": "null"
        }
       ],
       "title": "Pdf Base64",
       "default": null,
       "description": "The PDF file as base64, up to 10 MB decoded. Send url or pdf_base64."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/quant-agent-shop-pdf-text-extractor-03a3d885/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quantagentshop.com](https://www.zero.xyz/host/quantagentshop.com/llms.txt)
