{"openapi":"3.1.0","info":{"title":"BenjiWorks Render","version":"1.1.0","description":"JS-rendered web extraction: three paid micro-services in USDC on Base mainnet via x402. POST /api/render renders a URL in a real headless browser and returns rendered text and markdown ($0.02/call). POST /api/batch-render renders up to 5 URLs in one call ($0.05/call). POST /api/screenshot returns the rendered page as a PNG ($0.05/call)."},"servers":[{"url":"https://benjiworks-render.vercel.app"}],"paths":{"/api/render":{"post":{"summary":"JS-Rendered Web Extraction","description":"Renders a URL in a real headless browser (30s timeout) and returns title, final URL, rendered text and markdown. Price $0.02 in USDC on Base mainnet, paid via x402.","security":[],"x-payment-info":{"scheme":"exact","network":"eip155:8453","amount":"20000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xE4BC17f7F9537dd5933Bf33Ed52802D89130fE9c","price":"$0.02","description":"JS-Rendered Web Extraction — $0.02 per call, Base mainnet USDC","mimeType":"application/json"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Absolute http(s) URL to render, max 2048 characters."},"max_chars":{"type":"integer","description":"Max characters for text and markdown each. Default 20000, cap 100000."}},"required":["url"]},"example":{"url":"https://example.com"}}}},"responses":{"200":{"description":"Render result.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":"string"},"title":{"type":"string"},"url_final":{"type":"string"},"text":{"type":"string"},"markdown":{"type":"string"}}}}}},"400":{"description":"Bad request (missing, oversized, non-http(s), or private-host URL)."},"402":{"description":"Payment Required — $0.02 USDC on Base mainnet via x402.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/batch-render":{"post":{"summary":"Batch Render","description":"Renders up to 5 URLs in one call in a real headless browser (50s whole-call budget; pages that cannot start in budget return verdict timeout) and returns rendered text per URL. Price $0.05 in USDC on Base mainnet, paid via x402.","security":[],"x-payment-info":{"scheme":"exact","network":"eip155:8453","amount":"50000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xE4BC17f7F9537dd5933Bf33Ed52802D89130fE9c","price":"$0.05","description":"Batch Render — $0.05 per call, Base mainnet USDC","mimeType":"application/json"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string"},"description":"1-5 absolute http(s) URLs to render, each max 2048 characters."},"max_chars":{"type":"integer","description":"Max characters for text and markdown per page. Default 20000, cap 100000."}},"required":["urls"]},"example":{"urls":["https://example.com","https://example.org"]}}}},"responses":{"200":{"description":"Batch render result.","content":{"application/json":{"schema":{"type":"object","properties":{"counts":{"type":"object"},"results":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Bad request (urls missing, not an array, more than 5, or not strings)."},"402":{"description":"Payment Required — $0.05 USDC on Base mainnet via x402.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/screenshot":{"post":{"summary":"Screenshot","description":"Renders a URL in a real headless browser (30s timeout) and returns the page as a PNG image. Price $0.05 in USDC on Base mainnet, paid via x402.","security":[],"x-payment-info":{"scheme":"exact","network":"eip155:8453","amount":"50000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xE4BC17f7F9537dd5933Bf33Ed52802D89130fE9c","price":"$0.05","description":"Screenshot — $0.05 per call, Base mainnet USDC","mimeType":"image/png"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Absolute http(s) URL to screenshot, max 2048 characters."},"width":{"type":"integer","description":"Viewport width in pixels. Default 1280, range 320-1920."},"height":{"type":"integer","description":"Viewport height in pixels. Default 800, range 240-1080."},"full_page":{"type":"boolean","description":"Capture the full page height. Default false."}},"required":["url"]},"example":{"url":"https://example.com","width":1280,"height":800,"full_page":false}}}},"responses":{"200":{"description":"PNG image of the rendered page.","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request (missing, oversized, non-http(s), or private-host URL; width/height out of range)."},"402":{"description":"Payment Required — $0.05 USDC on Base mainnet via x402.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"502":{"description":"Page could not be captured (navigation/DNS failure)."}}}},"/health":{"get":{"summary":"Health check","responses":{"200":{"description":"Service is up.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"service":{"type":"string"},"version":{"type":"string"}}}}}}},"security":[]}}}}