Skip to content
Fourohtwo

Document parser

agentsvc.io/api/v1/proxy/doc-parse

Document parser: turn a document into clean, agent-ready Markdown with metadata: DOCX, ODT, EPUB, RTF, HTML, RST, LaTeX and more. Returns title, author, date, language, word count, heading outline, table and image counts and the Markdown (headings and tables preserved). For PDF use pdf-extract; PPTX and XLSX are not supported. Params: file_base64 or url or content (one required), from (optional),

BaseSolanaPolygonArbitrumAnswering
POSThttps://agentsvc.io/api/v1/proxy/doc-parse

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agentsvc.io/api/v1/proxy/doc-parse", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_chars":5000,"url":"https://agentsvc.io/docs"}),
});
console.log(await res.json());

Example input

{
  "max_chars": 5000,
  "url": "https://agentsvc.io/docs"
}