{"uid":"cap_-EuMn7Q_hf3fgSgZ4lEEI","slug":"screenshot-api-headless-chromium-web-capture-39a07d95","name":"Screenshot API – Headless Chromium Web Capture","description":"Headless Chromium screenshots, PDFs, full-page captures and element captures, with x402 payments.","url":"https://screenshot.payapi.market/capture/screenshot?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"The http(s) URL to capture, e.g. 'https://example.com'. Internal/loopback hosts are rejected."},"width":{"type":"integer","description":"Viewport width in pixels (320-3840). Defaults to 1280."},"height":{"type":"integer","description":"Viewport height in pixels (240-3840). Defaults to 800."},"wait_until":{"type":"string","description":"Playwright load state to wait for before capture: 'load', 'domcontentloaded', 'networkidle', or 'commit'. Defaults to 'networkidle'."}}},"responseSchema":{"type":"json","example":{"url":"https://example.com","title":"Example Domain","format":"png","viewport":{"width":1280,"height":800},"final_url":"https://example.com/","size_bytes":24680,"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAAUA... (base64-encoded PNG bytes, truncated)"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KRvFj7SD9LYxe9eCX4wd7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Captures a headless Chromium screenshot of any public URL and returns the image as a base64-encoded PNG along with page metadata.","exampleAgentPrompt":"Take a screenshot of https://stripe.com using a 1920x1080 viewport and wait until the page is fully loaded with no network activity before capturing.","exampleUseCases":[{"title":"Visual regression monitoring for landing pages","prompt":"Grab a screenshot of https://mycompany.com at 1280x800, waiting for networkidle, so I can compare it to what it looked like last week and check for unexpected layout changes."},{"title":"Social media link preview thumbnail","prompt":"Capture a screenshot of https://techcrunch.com/latest at a 1200x630 viewport, waiting until the page finishes loading, so I can use it as a preview thumbnail for a shared link."},{"title":"Client proof of ad placement","prompt":"Take a screenshot of https://publisher-site.com/sponsored-article at 1280x800 so I can show my client proof that their ad is live and rendering correctly on the page."}],"resultDescription":"Returns a JSON object containing the original URL, the page title, the image format (PNG), the viewport dimensions used, the final redirected URL, the image size in bytes, and the full screenshot as a base64-encoded PNG string ready for display or storage.","failureModes":["Internal/loopback hosts (e.g. localhost, 192.168.x.x) are rejected with an error","Invalid or unreachable URLs return a capture failure response","Viewport dimensions outside allowed ranges (width 320-3840, height 240-3840) are rejected","Payment failure or insufficient USDC balance prevents the call from completing","Pages with aggressive bot detection may render incompletely or show CAPTCHA screens","Very slow pages may time out before the requested load state is reached"],"whenToPreferThis":"Choose this endpoint when you need a real browser-rendered screenshot of a public web URL returned as a base64 PNG — especially when accurate visual fidelity, JavaScript rendering, and configurable viewport sizes matter. It is ideal for visual monitoring, proof-of-render tasks, and thumbnail generation. Prefer it over HTML scrapers when you need the visual appearance rather than raw text content, and over static image fetchers when the page relies on JavaScript to render correctly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:38:41.410Z","isFirstParty":false,"canonicalSlug":"screenshot-api-headless-chromium-web-capture-39a07d95"}