# Paperknife — PDF to Clean JSON for Agents

> Paperknife — PDF to Clean JSON for Agents is a paid API for AI agents from paperknife-api.davidgoparkid369.chatgpt.site, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-13).

Extracts text content from a PDF URL and returns it as structured JSON, paid per-call via x402 with no account or API key required.

## Facts

- Endpoint: POST https://paperknife-api.davidgoparkid369.chatgpt.site/a2a?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/paperknife-pdf-to-clean-json-for-agents-3e759aad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xJaw9wgnphUMO4PaCH19s

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 paperknife-pdf-to-clean-json-for-agents-3e759aad -d '<json body>'
```

Example prompt: Can you pull all the text out of this PDF and give it back to me as clean JSON? Here's the link: https://example.com/report.pdf

## When to prefer this

Choose this endpoint when you need a zero-setup, pay-per-call PDF text extraction with no API key or account registration required. It is ideal for agents that encounter PDFs opportunistically and need structured JSON output compatible with the A2A protocol. Prefer this over heavyweight document-processing platforms when cost per call matters, volume is low or unpredictable, and the PDFs contain embedded text (not scanned images requiring OCR).

## Known failure modes

- PDF URL is not publicly accessible (returns error or empty result)
- URL points to a non-PDF file type (may return extraction error)
- PDF is password-protected or encrypted (text extraction fails)
- PDF contains only scanned images with no embedded text (returns empty text)
- Invalid or malformed JSON-RPC request format (returns JSON-RPC error response)
- Payment not fulfilled via x402 (returns 402 Payment Required before processing)
- Network timeout fetching large PDF files

## How this service works

A pay-per-call PDF text extraction API. No account, no key, just x402.

## Output

A JSON-RPC 2.0 response containing an agent message with one or more parts, each holding extracted text content and page count from the PDF. The result includes the role (ROLE_AGENT), a unique message ID, and structured data fields for the text body and number of pages parsed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": [
    "string",
    "number"
   ]
  },
  "method": {
   "enum": [
    "SendMessage",
    "message/send"
   ]
  },
  "params": {
   "type": "object",
   "description": "A2A SendMessage request. Include a public HTTPS PDF URL in a data part as {url}, or in a text part."
  },
  "jsonrpc": {
   "const": "2.0"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "1",
  "result": {
   "message": {
    "role": "ROLE_AGENT",
    "parts": [
     {
      "data": {
       "text": "Dummy PDF file",
       "pages": 1
      }
     }
    ],
    "messageId": "uuid"
   }
  },
  "jsonrpc": "2.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/paperknife-pdf-to-clean-json-for-agents-3e759aad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from paperknife-api.davidgoparkid369.chatgpt.site](https://www.zero.xyz/host/paperknife-api.davidgoparkid369.chatgpt.site/llms.txt)
