{"uid":"cap_Oopu6HNDUQryXxxcRgSKx","slug":"agent-hub-document-to-text-converter-2f17da37","name":"Agent Hub Document to Text Converter","description":"Document to text: convert PDF, Word (docx), Excel (xlsx/xls), ODS/ODT, CSV, HTML, XML or images to clean Markdown. Send a public file URL or base64 file plus filename (max 15 MB). Also callable as GET with the same fields as query parameters.","url":"https://agents.torbrooknews.com/v1/document?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string","description":"Public URL of the document"},"filename":{"type":"string","description":"Required with file_base64, e.g. report.pdf"},"file_base64":{"type":"string","description":"Alternative to url"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_PFjeljjERW6B3ekpyeT8u","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":"Converts PDF, Word, Excel, ODS/ODT, CSV, HTML, XML, or image files into clean Markdown text via a public URL or base64-encoded file","exampleAgentPrompt":"Can you convert this PDF into clean Markdown text for me? The file is at https://example.com/reports/annual-report.pdf","exampleUseCases":[{"title":"Extract text from financial report PDF","prompt":"I have a public PDF of our Q3 financial report at https://example.com/q3-report.pdf — can you convert it to clean Markdown so I can read and summarize it?"},{"title":"Parse Word doc from base64 upload","prompt":"I've got a Word document I want to extract text from — here it is as a base64 string, the filename is contract-draft.docx. Can you convert it to Markdown?"},{"title":"Convert Excel spreadsheet to readable text","prompt":"Can you turn this Excel file into Markdown? The file is at https://example.com/data/budget.xlsx — I need the tables in a readable text format."}],"resultDescription":"Returns clean Markdown text extracted from the submitted document, preserving structure such as headings, tables, lists, and paragraphs as closely as possible to the original file's layout.","failureModes":["File exceeds 15 MB limit — returns an error","Unsupported file type — returns an error indicating the format is not accepted","Invalid or inaccessible public URL — returns a fetch or permission error","Malformed base64 string — returns a decoding error","Missing filename when using file_base64 — returns a validation error","Payment not provided or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to extract readable, structured Markdown text from a wide variety of document formats (PDF, Word, Excel, images, HTML, CSV, XML, ODS/ODT) without setting up local parsing infrastructure. It is ideal for agents that receive document URLs or binary files and need clean text for downstream processing, summarization, or analysis. At $0.01 per call it is cost-effective for on-demand document parsing tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:45:23.833Z","isFirstParty":false,"canonicalSlug":"agent-hub-document-to-text-converter-2f17da37"}