# PDF Text Extraction

> PDF Text Extraction is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Extracts existing text from the first five pages of a base64-encoded PDF, returning page numbers, JSON, and plain text output.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-pdf-text-extraction?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pdf-text-extraction-751eaf0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V09p0qvAB-fuYFck7ZhxX

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-text-extraction-751eaf0a -d '<json body>'
```

Example prompt: Can you extract the text from this PDF for me? Here's the file as a base64 string: [base64 string]. I need the text from the first five pages returned as both JSON and plain text.

## When to prefer this

Choose this endpoint when you need fast, structured extraction of embedded text from a known digital PDF (not scanned). It is ideal for processing invoices, contracts, reports, or other machine-generated PDFs where the text layer already exists. Avoid it when dealing with scanned documents requiring OCR, encrypted PDFs, or files larger than 600 KB.

## Known failure modes

- Encrypted or password-protected PDFs are unsupported and will fail
- Scanned PDFs with no embedded text return empty results since no OCR is performed
- PDF files exceeding 600 KB or the base64 size limit will be rejected
- Malformed or invalid base64 input causes a parse error
- PDFs with more than 50 pages may have content beyond page 50 silently truncated

## How this service works

PDF Text Extraction: Extract existing text from the first five pages of one base64 PDF, up to 600 KB and 50 total pages. Returns page numbers, JSON and plain text. No OCR of scanned pages; encrypted PDFs are unsupported. 0.01 USDC includes up to 5 PDF pages.

## Output

Returns extracted text from up to the first five pages of the PDF (up to 600 KB, 50 total pages supported), structured as JSON with page numbers and a plain text version. No OCR is applied — only existing embedded text is returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pdf_base64": {
   "type": "string",
   "default": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovUHJvZHVjZXIgKHB5cGRmKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDEKL0tpZHMgWyA0IDAgUiBdCj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAyIDAgUgo+PgplbmRvYmoKNCAwIG9iago8PAovVHlwZSAvUGFnZQovUmVzb3VyY2VzIDw8Ci9Gb250IDw8Ci9GMSA1IDAgUgo+Pgo+PgovTWVkaWFCb3ggWyAwLjAgMC4wIDYxMiA3OTIgXQovUGFyZW50IDIgMCBSCi9Db250ZW50cyA2IDAgUgo+PgplbmRvYmoKNSAwIG9iago8PAovVHlwZSAvRm9udAovU3VidHlwZSAvVHlwZTEKL0Jhc2VGb250IC9IZWx2ZXRpY2EKPj4KZW5kb2JqCjYgMCBvYmoKPDwKL0xlbmd0aCA5OAo+PgpzdHJlYW0KQlQgL0YxIDE4IFRmIDUwIDcwMCBUZCAoQWdlbnQgTWFya2V0IHNhbXBsZSBkb2N1bWVudCkgVGogMCAtMzAgVGQgKEludm9pY2UgdG90YWw6IDEyLjUwIFVTRCkgVGogRVQKZW5kc3RyZWFtCmVuZG9iagp4cmVmCjAgNwowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwMDA1NCAwMDAwMCBuIAowMDAwMDAwMTEzIDAwMDAwIG4gCjAwMDAwMDAxNjIgMDAwMDAgbiAKMDAwMDAwMDI5NCAwMDAwMCBuIAowMDAwMDAwMzY0IDAwMDAwIG4gCnRyYWlsZXIKPDwKL1NpemUgNwovUm9vdCAzIDAgUgovSW5mbyAxIDAgUgo+PgpzdGFydHhyZWYKNTEyCiUlRU9GCg==",
   "maxLength": 800000,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pdf-text-extraction-751eaf0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
