{"name":"DocQA — Agent Output Verification API","tagline":"Verify document extractions before your business acts on them. Catches hallucinations, transposed digits, and arithmetic errors that slip past LLMs.","status":"running","primary":{"method":"POST","path":"/docqa/verify","price":"$0.05","description":"Agent Output Verification Layer: Verify any agent's document extraction before your business acts on it. Catches hallucinated values, transposed digits, and arithmetic errors that slip past LLMs. Basic tier ($0.05): pattern validation + arithmetic checks (no document needed). Standard tier ($0.50): full independent re-extraction + field-by-field comparison. Compatible with Textract, Azure Document Intelligence, ABBYY, Nanonets, LLM-based extractors, or custom pipelines. Supports mode:'gate' for boolean pass/fail responses in agentic workflows."},"endpoints":{"core":[{"method":"POST","path":"/docqa/verify","price":"$0.05","description":"Agent Output Verification Layer: Verify any agent's document extraction before your business acts on it. Catches hallucinated values, transposed digits, and arithmetic errors that slip past LLMs. Basic tier ($0.05): pattern validation + arithmetic checks (no document needed). Standard tier ($0.50): full independent re-extraction + field-by-field comparison. Compatible with Textract, Azure Document Intelligence, ABBYY, Nanonets, LLM-based extractors, or custom pipelines. Supports mode:'gate' for boolean pass/fail responses in agentic workflows."}],"supporting":[{"method":"POST","path":"/pdf-extract","price":"$0.02","description":"Extract structured text and tables from PDF documents (base64 input). Returns textQuality and warning for scanned PDFs."},{"method":"POST","path":"/ocr","price":"$0.01","description":"OCR: Extract text from images using Tesseract (base64 input). Returns confidence score."},{"method":"POST","path":"/convert","price":"$0.01","description":"Convert documents between formats. Input: pdf, md, json, txt. Output: txt, md, json."},{"method":"POST","path":"/context/url","price":"$0.005","description":"Extract structured content from any URL. Returns title, clean text, markdown content, links, and metadata. 10-100x cheaper than an agent parsing HTML itself. Cached results return instantly."},{"method":"POST","path":"/context/structure","price":"$0.003","description":"Convert unstructured text to structured JSON. Auto-detects content type (error messages, log lines, key-value pairs, CSV, tables, lists) and returns structured data. No LLM needed — instant results."}],"peripheral":[{"method":"GET","path":"/scrape","price":"$0.005","description":"Scrape any URL and return cleaned text/HTML content. Pass ?url=<target_url>"},{"method":"POST","path":"/extract","price":"$0.01","description":"Extracts common web page fields (title, price, author, date, description, image, tags, links) from a URL. Best for product pages and articles. Custom field names outside these categories may return null."},{"method":"POST","path":"/scrape-batch","price":"$0.05","description":"Batch scrape up to 20 URLs in one request. Flat rate of $0.05 per batch."},{"method":"POST","path":"/html-to-markdown","price":"$0.003","description":"Convert HTML to clean markdown. Pass 'html' (raw HTML string) or 'url' (fetches and converts). Strips nav/scripts/ads. Returns markdown text."},{"method":"POST","path":"/extract-links","price":"$0.005","description":"Fetch a URL and extract all links, categorized as internal, external, media, or documents. Includes link text and absolute href."},{"method":"POST","path":"/diff","price":"$0.003","description":"Generate a unified diff between two text strings. Returns added/removed/unchanged line counts and a unified diff string with configurable context lines."},{"method":"POST","path":"/agent-shield/check","price":"$0.001","description":"AgentShield: Check an AI agent's spend against a configurable budget limit. Returns allowed/denied, remaining budget, and warnings. Prevents runaway LLM costs."},{"method":"POST","path":"/forensics/analyze","price":"$5","description":"AgentCost — AI Agent Spend Analysis. Upload an AI agent session log (JSONL) and get waste pattern detection, per-tool cost attribution, and optimization recommendations. Free preview available at POST /forensics/preview (no payment required). Pro tier ($5): waste patterns + recommendations. Full tier ($15): + benchmarks, savings projections, exportable report. Works with Claude Code session logs from ~/.claude/projects/. Also available as CLI: npx agent-forensics analyze."}]}}