81trust / 100

Proxy Doc Parse

by Document to Markdown Parser in Documents & files

x402 APIPassing, checked 3 h ago

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), max_chars (1000 to 200000, default 50000).

POST https://agentsvc.io/api/v1/proxy/doc-parse

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
32 ms typical, 32 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/doc-parse" \
  -H "content-type: application/json" \
  -d '{"max_chars":5000,"url":"https://agentsvc.io/docs"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fdoc-parse
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"
}

Example output

{
  "data": {
    "author": null,
    "characters": 2000,
    "date": null,
    "format": "html",
    "heading_count": 8,
    "image_count": 0,
    "language": "en",
    "markdown": "<div hidden=\"\">\n\n</div>\n\n<div style=\"border-bottom:1px solid var(--border);background-color:rgba(10, 14, 26, 0.92);backdrop-filter:blur(12px);position:sticky;top:0;z-index:50\">\n\n<div class=\"container\" style=\"display:flex;align-items:center;justify-content:space-between;min-height:60px;gap:1rem\">\n…",
    "outline": [
      {
        "level": 1,
        "text": "Pay per call. Nothing else to set up."
      },
      {
        "level": 2,
        "text": "Free trial, no wallet"
      },
      {
        "level": 1,
        "text": "GET works too and uses the example input:"
      }
    ],
    "source": "https://agentsvc.io/docs",
    "table_count": 0,
    "title": "Docs: how agents pay per call with x402 · agentsvc.io",
    "truncated": true,
    "word_count": 8068
  },
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed40232 ms$0.009