{"uid":"cap_xJaw9wgnphUMO4PaCH19s","slug":"paperknife-pdf-to-clean-json-for-agents-3e759aad","name":"Paperknife — PDF to Clean JSON for Agents","description":"A pay-per-call PDF text extraction API. No account, no key, just x402.","url":"https://paperknife-api.davidgoparkid369.chatgpt.site/a2a?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"type":"json","example":{"id":"1","result":{"message":{"role":"ROLE_AGENT","parts":[{"data":{"text":"Dummy PDF file","pages":1}}],"messageId":"uuid"}},"jsonrpc":"2.0"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KChXIV8dRGnF_J_ABGpKD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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","exampleUseCases":[{"title":"Extract contract text for review","prompt":"I have a PDF contract at https://contracts.example.com/agreement.pdf — can you extract all the text from it as JSON so I can search through the clauses?"},{"title":"Parse research paper content","prompt":"Grab the text from this academic paper PDF at https://arxiv.example.com/paper123.pdf and return it in structured JSON so I can summarize each section."},{"title":"Digitize invoice for accounting","prompt":"There's an invoice PDF at https://invoices.mybusiness.com/inv-2024-05.pdf — extract the text from it into JSON so I can pull out the line items and totals."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:37:39.363Z","isFirstParty":false,"canonicalSlug":"paperknife-pdf-to-clean-json-for-agents-3e759aad"}