{"openapi":"3.1.0","info":{"title":"Agent Browser API (MPP): screenshots, JS rendering, PDF","version":"1.0.0","description":"Pay-per-call headless Chrome for AI agents: website screenshots (viewport or full page, PNG/JPEG, mobile, dark mode), JavaScript-rendered page content as Markdown, text or HTML, and print-to-PDF. No account or API key: pay per call with MPP on Tempo (USDC.e or pathUSD). Invalid input, unreachable pages, a busy browser or reached daily capacity return 402 and are not charged.","x-guidance":"POST JSON (or GET with query params) to any /mpp/* route and pay the MPP 402 challenge on Tempo (USDC.e or pathUSD). Bad input or an upstream failure returns 402 with an error and you are not charged.","contact":{"url":"https://mpp-browser.fmf-x402.workers.dev/"}},"servers":[{"url":"https://mpp-browser.fmf-x402.workers.dev"}],"paths":{"/mpp/browser/screenshot":{"post":{"operationId":"browser_screenshot","summary":"Website screenshot (real Chrome, JS rendered)","description":"Screenshot any public URL in headless Chrome after JavaScript runs: viewport or full page, PNG or JPEG, custom width/height, mobile and dark mode, extra wait. Returns the image. Daily capacity is limited; when it is reached, or the browser is momentarily busy, you get 402 and are not charged. Price $0.005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"wait_ms":{"type":"integer","description":"extra wait after load for JS, 0-4000 (default 500)"},"mobile":{"type":"boolean","description":"iPhone viewport + UA"},"dark":{"type":"boolean","description":"prefers-color-scheme: dark"},"width":{"type":"integer","description":"320-1920 (default 1280)"},"height":{"type":"integer","description":"240-2000 (default 800)"},"full_page":{"type":"boolean"},"format":{"type":"string","enum":["png","jpeg"]},"quality":{"type":"integer","description":"jpeg 30-95 (default 80)"}},"required":["url"]},"example":{"url":"https://mpp.dev","width":1280,"height":800,"format":"png"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"Result","content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/browser/render":{"post":{"operationId":"browser_render","summary":"Render a JS-heavy page to Markdown, text or HTML","description":"Load a URL in headless Chrome, let JavaScript run (SPAs, client-rendered sites), then return clean Markdown (default), visible text, or the rendered HTML, plus title, final URL, HTTP status and links. Daily capacity is limited; when it is reached, or the browser is momentarily busy, you get 402 and are not charged. Price $0.004 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"wait_ms":{"type":"integer","description":"extra wait after load for JS, 0-4000 (default 500)"},"mobile":{"type":"boolean","description":"iPhone viewport + UA"},"dark":{"type":"boolean","description":"prefers-color-scheme: dark"},"format":{"type":"string","enum":["markdown","text","html"]},"max_chars":{"type":"integer","description":"1000-200000 (default 50000)"}},"required":["url"]},"example":{"url":"https://mpp.dev","format":"markdown"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.004"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/browser/pdf":{"post":{"operationId":"browser_pdf","summary":"Print a web page to PDF","description":"Render a URL in headless Chrome and print it to PDF (A4 or Letter, portrait or landscape, backgrounds on). Returns the PDF. Daily capacity is limited; when it is reached, or the browser is momentarily busy, you get 402 and are not charged. Price $0.006 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"wait_ms":{"type":"integer","description":"extra wait after load for JS, 0-4000 (default 500)"},"mobile":{"type":"boolean","description":"iPhone viewport + UA"},"dark":{"type":"boolean","description":"prefers-color-scheme: dark"},"paper":{"type":"string","enum":["A4","Letter"]},"landscape":{"type":"boolean"}},"required":["url"]},"example":{"url":"https://mpp.dev","paper":"A4"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.006"}},"responses":{"200":{"description":"Result","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}}}}