{"uid":"cap_V09p0qvAB-fuYFck7ZhxX","slug":"pdf-text-extraction-751eaf0a","name":"PDF Text Extraction","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-pdf-text-extraction?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"pdf_base64":{"type":"string","default":"JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovUHJvZHVjZXIgKHB5cGRmKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDEKL0tpZHMgWyA0IDAgUiBdCj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAyIDAgUgo+PgplbmRvYmoKNCAwIG9iago8PAovVHlwZSAvUGFnZQovUmVzb3VyY2VzIDw8Ci9Gb250IDw8Ci9GMSA1IDAgUgo+Pgo+PgovTWVkaWFCb3ggWyAwLjAgMC4wIDYxMiA3OTIgXQovUGFyZW50IDIgMCBSCi9Db250ZW50cyA2IDAgUgo+PgplbmRvYmoKNSAwIG9iago8PAovVHlwZSAvRm9udAovU3VidHlwZSAvVHlwZTEKL0Jhc2VGb250IC9IZWx2ZXRpY2EKPj4KZW5kb2JqCjYgMCBvYmoKPDwKL0xlbmd0aCA5OAo+PgpzdHJlYW0KQlQgL0YxIDE4IFRmIDUwIDcwMCBUZCAoQWdlbnQgTWFya2V0IHNhbXBsZSBkb2N1bWVudCkgVGogMCAtMzAgVGQgKEludm9pY2UgdG90YWw6IDEyLjUwIFVTRCkgVGogRVQKZW5kc3RyZWFtCmVuZG9iagp4cmVmCjAgNwowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwMDA1NCAwMDAwMCBuIAowMDAwMDAwMTEzIDAwMDAwIG4gCjAwMDAwMDAxNjIgMDAwMDAgbiAKMDAwMDAwMDI5NCAwMDAwMCBuIAowMDAwMDAwMzY0IDAwMDAwIG4gCnRyYWlsZXIKPDwKL1NpemUgNwovUm9vdCAzIDAgUgovSW5mbyAxIDAgUgo+PgpzdGFydHhyZWYKNTEyCiUlRU9GCg==","maxLength":800000,"minLength":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cYCbIqPcjimMC9Cp2T3Ma","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts existing text from the first five pages of a base64-encoded PDF, returning page numbers, JSON, and plain text output.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Invoice data extraction from PDF","prompt":"I have a PDF invoice encoded in base64 — can you pull out all the text from its pages so I can read the line items and total amount?"},{"title":"Contract review text pull","prompt":"Extract the text from the first five pages of this base64-encoded contract PDF so I can review the key clauses without opening the file manually."},{"title":"Report summarization preprocessing","prompt":"I need the raw text content from this base64 PDF report — grab the text from each page so I can feed it into a summarization step."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:35:43.303Z","isFirstParty":false,"canonicalSlug":"pdf-text-extraction-751eaf0a"}