{"openapi":"3.0.3","info":{"title":"Web Render API","version":"1.0.0","description":"Screenshots, page-to-PDF and clean content extraction from any URL.\n\nA managed headless Chromium with cookie-banner hiding, ad blocking and full-page capture. Give it a URL or raw HTML and get back a PNG, a PDF, or structured page content.","contact":{"url":"https://173-249-18-142.sslip.io"}},"servers":[{"url":"https://173-249-18-142.sslip.io"}],"tags":[{"name":"Web Render API","description":"Screenshots, page-to-PDF and clean content extraction from any URL."}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your Smallapis key. Omit it to use the demo quota."}}},"security":[{"apiKey":[]}],"paths":{"/v1/render/screenshot":{"post":{"tags":["Web Render API"],"summary":"Screenshot a URL or raw HTML","description":"Cookie banners and ad networks are hidden by default, so captures look like a clean first visit.","operationId":"v1_render_screenshot","responses":{"200":{"description":"The produced file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid parameters"},"401":{"description":"Missing or invalid API key"},"413":{"description":"Payload larger than the plan allows"},"429":{"description":"Plan quota exhausted"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Page to capture. Either this or `html` is required."},"html":{"type":"string","description":"Raw HTML to render instead of a URL."},"fullPage":{"type":"boolean","description":"Capture the whole scrollable page.","default":false},"width":{"type":"integer","description":"Viewport width.","default":1280},"height":{"type":"integer","description":"Viewport height.","default":800},"scale":{"type":"number","description":"Device pixel ratio, 1-3.","default":1},"format":{"type":"string","description":"png, jpeg or webp.","default":"png"},"selector":{"type":"string","description":"Capture only the element matching this CSS selector."},"mobile":{"type":"boolean","description":"Emulate a mobile device.","default":false},"darkMode":{"type":"boolean","description":"Request the dark colour scheme.","default":false},"hideCookieBanners":{"type":"boolean","description":"Hide consent and paywall overlays.","default":true},"blockAds":{"type":"boolean","description":"Block known ad and tracker hosts.","default":true},"delay":{"type":"integer","description":"Extra wait in milliseconds after load, max 15000.","default":0},"waitForSelector":{"type":"string","description":"Wait until this CSS selector appears."},"base64":{"type":"boolean","description":"Return JSON with a base64 payload instead of a binary body.","default":false}}}}}}}},"/v1/render/pdf":{"post":{"tags":["Web Render API"],"summary":"Turn a URL or HTML into a PDF","description":"Turn a URL or HTML into a PDF","operationId":"v1_render_pdf","responses":{"200":{"description":"The produced file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid parameters"},"401":{"description":"Missing or invalid API key"},"413":{"description":"Payload larger than the plan allows"},"429":{"description":"Plan quota exhausted"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Page to print. Either this or `html` is required."},"html":{"type":"string","description":"Raw HTML to print instead of a URL."},"paperFormat":{"type":"string","description":"A0-A5, Letter, Legal, Ledger or Tabloid.","default":"A4"},"landscape":{"type":"boolean","description":"Landscape orientation.","default":false},"margin":{"type":"string","description":"CSS length applied to all four margins.","default":"10mm"},"printBackground":{"type":"boolean","description":"Keep background colours and images.","default":true},"mediaType":{"type":"string","description":"print or screen.","default":"print"}}}}}}}},"/v1/render/content":{"post":{"tags":["Web Render API"],"summary":"Extract title, meta, headings and readable text from a page","description":"Runs the page in a real browser first, so single-page apps return their rendered content rather than an empty shell.","operationId":"v1_render_content","responses":{"200":{"description":"Result payload","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid parameters"},"401":{"description":"Missing or invalid API key"},"413":{"description":"Payload larger than the plan allows"},"429":{"description":"Plan quota exhausted"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Page to read."},"text":{"type":"boolean","description":"Include the readable text body.","default":true},"links":{"type":"boolean","description":"Include up to 500 outgoing links.","default":false}},"required":["url"]}}}}}}}}