Extract structured JSON from PDF invoices, contracts, and papers ($0.02 USDC).
x402 Endpoint: POST https://agentx402.fyi/x402/pdf/extract
Remote MCP: POST https://agentx402.fyi/mcp (Streamable HTTP JSON-RPC 2.0)
PayTo Wallet (USDC): 0x71256BBb403B88A347E67b7ADad89ed28b4e16d6 (Gasless via Coinbase CDP Facilitator)
curl -i -X POST https://agentx402.fyi/x402/pdf/extract \
-H 'Content-Type: application/json' \
-d '{"pdf_url": "https://example.com/invoice.pdf", "schema_hint": "Extract invoice number, date, total."}'import { wrapFetchWithPayment } from "@x402/fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, walletClient);
const res = await fetchWithPay("https://agentx402.fyi/x402/pdf/extract", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"pdf_url": "https://example.com/invoice.pdf", "schema_hint": "Extract invoice number, date, total."})
});
console.log(await res.json());{
"pdf_url": "https://example.com/invoice.pdf",
"schema_hint": "Extract invoice number, date, total."
}{
"document_type": "invoice",
"total": 120.0,
"pages": 1
}