Skip to content
Fourohtwo

Document Extract to JSON

x402.freeq.one/tools/document_extract

Document Extract to JSON: Extract structured JSON from a document: sections, tables, key-values and caller-named fields. PDF, DOCX, PPTX, XLSX, CSV, EPUB, HTML, text. Deterministic parsing — no OCR, no LLM inference. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/document_extract.

BaseUnchecked
POSThttps://x402.freeq.one/tools/document_extract

UptimeNot checked yet

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://x402.freeq.one/tools/document_extract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://x402.freeq.one/samples/report.pdf","fields":[],"file_b64":"file_b64","filename":"report.pdf","max_length":100000,"document_url":"https://x402.freeq.one/samples/report.pdf"}),
});
console.log(await res.json());

Example input

{
  "url": "https://x402.freeq.one/samples/report.pdf",
  "fields": [],
  "file_b64": "file_b64",
  "filename": "report.pdf",
  "max_length": 100000,
  "document_url": "https://x402.freeq.one/samples/report.pdf"
}

More from x402-gateway