# PDF to Text Extractor (Upload)

> PDF to Text Extractor (Upload) is a paid API for AI agents from agents.crowdspark.me, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-31).

Extracts text from an uploaded PDF file (raw bytes, multipart, or base64), returning plain text or markdown with optional format selection.

## Facts

- Endpoint: POST https://agents.crowdspark.me/v1/pdf/text/upload?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pdf-to-text-extractor-upload-4e5be6b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CuJ1ynUYYyZoxv4bXeebY

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 pdf-to-text-extractor-upload-4e5be6b8 -d '<json body>'
```

Example prompt: Can you extract all the text from this PDF file I have — just upload the raw bytes and give me back the content as plain text?

## When to prefer this

Use this endpoint when you have a PDF file available as raw bytes, a multipart upload, or base64-encoded content and need to extract its text layer quickly and cheaply. Prefer this over the URL-based PDF endpoint when the PDF is already in memory or on disk rather than hosted at a URL. For scanned PDFs without a text layer, use the OCR-capable document parsing endpoint instead.

## Known failure modes

- HTTP 400 if file does not start with %PDF (not a real PDF)
- HTTP 400 if file exceeds 20 MB limit
- HTTP 400 if PDF has no text layer (e.g. scanned image-only PDF without OCR)
- HTTP 400 with hint message for malformed or corrupt PDF files
- Network timeout on very large documents near the size limit

## How this service works

PDF to text from uploaded bytes. POST the raw PDF as the body (content-type application/pdf); multipart 'file' or JSON {"base64"} also work. Real PDF only (starts with %PDF), max 20 MB, with a text layer. Optional ?format=text|markdown. Bad files get HTTP 400 with a hint and are not charged. Sample: https://agents.crowdspark.me/samples/sample.pdf

## Output

Returns the extracted text content of the PDF as plain text or markdown (depending on the optional ?format= parameter). Covers all text layers present in the document. Bad or non-text PDFs return HTTP 400 with a descriptive hint and are not billed.

## 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",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "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/pdf-to-text-extractor-upload-4e5be6b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.crowdspark.me](https://www.zero.xyz/host/agents.crowdspark.me/llms.txt)
