agents.writerslogic.com/api/v1/doc-to-markdown
Converts a PDF (text layer), DOCX, XLSX or PPTX file, or normalizes an HTML, Markdown, text, CSV or JSON file, into Markdown (or plain text) for an agent that must read or cite a document. Give an https URL or up to 4 MB as base64. Returns the content plus one unit per page, sheet or slide with its exact character range in the content and a SHA-256 of that unit's text, so later quote and citation
POST
https://agents.writerslogic.com/api/v1/doc-to-markdownUptime100% of 3 checks 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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/doc-to-markdown", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://www.irs.gov/pub/irs-pdf/fw9.pdf","pages":"1-2","describe":true,"max_chars":20000}),
});
console.log(await res.json());Example input
{
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"pages": "1-2",
"describe": true,
"max_chars": 20000
}