# NewBotLabor PDF Text Extractor

> NewBotLabor PDF Text Extractor is a paid API for AI agents from newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Extracts text content and metadata from a PDF document supplied as a URL or base64-encoded bytes, returning per-page text and document metadata.

## Facts

- Endpoint: POST https://newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/api/pdf/text?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/newbotlabor-pdf-text-extractor-0ec72960
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jR4tAi2PBeo1R9FVg-ROZ

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 newbotlabor-pdf-text-extractor-0ec72960 -d '<json body>'
```

Example prompt: Can you extract all the text from this PDF — https://example.com/report.pdf — and give me the text for each page separately, up to 50 pages?

## When to prefer this

Choose this endpoint when you need to extract raw text from a PDF document on a per-page basis without setting up an account or API key, especially in autonomous agent workflows where pay-per-call microtransactions via x402/USDC are preferred over subscription billing. Ideal for one-off or low-volume PDF parsing tasks where you have either a public URL or raw PDF bytes.

## Known failure modes

- PDF URL is not publicly accessible or returns a non-200 response — extraction fails with an error
- Invalid or malformed base64 input causes a parse error
- PDF is encrypted or password-protected — text cannot be extracted
- maxPages value outside 1-200 range is rejected
- PDF contains only scanned images with no embedded text — returns empty text per page
- Network timeout fetching the remote PDF URL

## How this service works

Pay-per-call utilities for autonomous agents, paid with x402 (USDC on Base; no account, no API key).

## Output

Returns a JSON object containing document metadata (title, author), file size in bytes, total character count, page count, a SHA-256 hash of the PDF, an array of per-page text objects (page number, text, character count), a list of empty page numbers, and optionally a joined full-text string if joinPages was requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "public http(s) URL of a PDF"
  },
  "base64": {
   "type": "string",
   "description": "PDF bytes, base64 (instead of url)"
  },
  "maxPages": {
   "type": "number",
   "description": "1-200, default 200"
  },
  "joinPages": {
   "type": "boolean",
   "description": "also return all pages joined as text"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "title": null,
   "author": null
  },
  "bytes": 13264,
  "chars": 15,
  "pages": 1,
  "sha256": "3df79d34…",
  "pageText": [
   {
    "page": 1,
    "text": "Dummy PDF file",
    "chars": 15
   }
  ],
  "emptyPages": [],
  "returnedPages": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/newbotlabor-pdf-text-extractor-0ec72960/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run](https://www.zero.xyz/host/newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/llms.txt)
