{"service":"Doc to JSON","version":"0.1.0","tagline":"Web pages, PDFs and feeds turned into clean structured JSON for AI agents: metadata, schema.org data, tables, headings, readable text, per-page PDF text, feed items. Pay per call over x402, no API key.","payment":{"protocol":"x402","version":2,"mode":"mainnet","facilitator":"payai","networks":"Base + Solana mainnet","alsoAccepts":["MPP (Machine Payments Protocol): same routes answer with a WWW-Authenticate: Payment challenge"],"accepts":[{"network":"eip155:8453","asset":"USDC","payTo":"0xc42cbF077aF05D1a613d455067c201CA44e9CAFb"}],"howTo":"Call any endpoint. You get HTTP 402 with a PAYMENT-REQUIRED header. Sign the USDC payment with any x402 client (@x402/fetch, Coinbase Payments MCP, AgentCash, OpenClaw x402 skill), retry with PAYMENT-SIGNATURE, receive JSON. Failed requests (4xx/5xx) are never settled."},"endpoints":[{"method":"GET","path":"/v1/page","url":"https://doc-json.agent-utils.workers.dev/v1/page","price":"$0.01","summary":"Web page to structured JSON in one call: title, description, canonical, language, author, published date, all meta/OpenGraph/Twitter tags, parsed schema.org JSON-LD (products, prices, articles, events, organizations), heading outline, HTML tables as headers+rows, link counts and readable main text without navigation or scripts. Use instead of raw HTML when an agent needs the facts on a page.","tags":["extraction","web","html","json-ld","tables","metadata","scraping","documents"],"example":"https://doc-json.agent-utils.workers.dev/v1/page?url=https%3A%2F%2Fexample.com%2F&maxChars=20000"},{"method":"GET","path":"/v1/pdf","url":"https://doc-json.agent-utils.workers.dev/v1/pdf","price":"$0.02","summary":"PDF to text by page with document metadata (title, author, dates, producer), page count, characters and a flag when the PDF is scanned images with no text layer. Handles papers, reports, invoices, manuals up to 15 MB. Use when an agent is given a PDF link and needs its contents as JSON.","tags":["pdf","extraction","documents","text","papers","reports"],"example":"https://doc-json.agent-utils.workers.dev/v1/pdf?url=https%3A%2F%2Fwww.w3.org%2FWAI%2FER%2Ftests%2Fxhtml%2Ftestfiles%2Fresources%2Fpdf%2Fdummy.pdf"},{"method":"GET","path":"/v1/feed","url":"https://doc-json.agent-utils.workers.dev/v1/feed","price":"$0.005","summary":"RSS, Atom or JSON Feed to clean JSON: feed title, link, language, last update and items with title, link, id, published/updated dates, author, plain-text summary, categories and enclosures (podcast audio, images). Use to watch news sources, blogs, releases, podcasts or job boards without parsing XML.","tags":["rss","atom","feed","news","podcast","monitoring","json"],"example":"https://doc-json.agent-utils.workers.dev/v1/feed?url=https%3A%2F%2Fhnrss.org%2Ffrontpage&limit=10"},{"method":"POST","path":"/v1/html","url":"https://doc-json.agent-utils.workers.dev/v1/html","price":"$0.01","summary":"Same structured extraction as /v1/page but for HTML you already have (scraped, emailed, generated): pass the markup and an optional base URL, get title, metadata, JSON-LD, headings, tables, links and readable text as JSON.","tags":["extraction","html","tables","json-ld","documents"],"example":{"method":"POST","url":"https://doc-json.agent-utils.workers.dev/v1/html","body":{"html":"<html><head><title>Hi</title></head><body><h1>Hi</h1><table><tr><th>a</th><th>b</th></tr><tr><td>1</td><td>2</td></tr></table></body></html>","baseUrl":"https://example.com/"}}}],"free":["https://doc-json.agent-utils.workers.dev/health","https://doc-json.agent-utils.workers.dev/openapi.json","https://doc-json.agent-utils.workers.dev/llms.txt"],"coverage":{"html":"2 MB","pdf":"15 MB","feeds":["rss","atom","json-feed"]},"attribution":["Cloudflare Workers HTMLRewriter","unpdf / PDF.js","fast-xml-parser"]}