{"uid":"cap_ROAEALT5mgkLxkrH5PeRw","slug":"x402-markdown-extractor-pdf-to-markdown-3a977789","name":"x402-markdown-extractor PDF to Markdown","description":"Fetch a PDF by URL and extract its text as Markdown, with page count and word count. Lets AI agents read PDF documents, reports and papers. (Text-based PDFs; scanned/image-only PDFs are not OCR'd.)","url":"https://x402.valkyry.fr/pdf-to-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Absolute http(s) URL. Must be publicly reachable; private/loopback/metadata addresses are rejected."}}},"responseSchema":{"type":"json","example":{"url":"https://example.com/doc.pdf","pages":12,"markdown":"Extracted text…","wordCount":3400}},"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_OgBpVpxE9tkXbEoJjkcmL","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":"Converts a publicly accessible PDF URL into extracted markdown text, returning page count and word count","exampleAgentPrompt":"Can you extract the text from this PDF and give it to me as markdown? The file is at https://example.com/report.pdf","exampleUseCases":null,"resultDescription":"A JSON object containing the original URL, total page count (integer), extracted markdown text of the full PDF content, and a word count integer.","failureModes":["Private, loopback, or metadata IP addresses are rejected with an error — URL must be publicly reachable","Non-PDF URLs or URLs that return non-PDF content will fail to parse","Very large PDFs may time out or return partial content","Scanned/image-only PDFs with no embedded text will return empty or minimal markdown","Payment failure via x402 protocol returns HTTP 402 before processing occurs","Malformed or non-absolute URLs are rejected by input validation"],"whenToPreferThis":"Use this endpoint when you need to extract the full text content of a remotely hosted PDF as markdown, especially for AI pipelines that need to process or summarize document content. It is ideal for single-document extraction where a public URL is available and you want structured markdown output with metadata like page and word count. Prefer this over general web scrapers when your target is specifically a PDF file.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:32:09.912Z","isFirstParty":false,"canonicalSlug":"x402-markdown-extractor-pdf-to-markdown-3a977789"}